]> CyberLeo.Net >> Repos - FreeBSD/releng/9.3.git/blob - release/scripts/pkg-stage.sh
Packages for KDE4 will not immediately be available for
[FreeBSD/releng/9.3.git] / release / scripts / pkg-stage.sh
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5
6 set -e
7
8 export ASSUME_ALWAYS_YES="YES"
9 export PKG_DBDIR="/tmp/pkg"
10 export PERMISSIVE="YES"
11 export REPO_AUTOUPDATE="NO"
12 export PKGCMD="/usr/sbin/pkg -d"
13
14 DVD_PACKAGES="archivers/unzip
15 devel/subversion
16 devel/subversion-static
17 emulators/linux_base-f10
18 misc/freebsd-doc-all
19 net/mpd5
20 net/rsync
21 ports-mgmt/pkg
22 ports-mgmt/portmaster
23 shells/bash
24 shells/zsh
25 security/sudo
26 sysutils/screen
27 www/firefox
28 www/links
29 x11-drivers/xf86-video-vmware
30 x11/gnome2
31 x11-wm/xfce4
32 x11/xorg"
33
34 # If NOPORTS is set for the release, do not attempt to build pkg(8).
35 if [ ! -f /usr/ports/Makefile ]; then
36         exit 0
37 fi
38
39 if [ ! -x /usr/local/sbin/pkg ]; then
40         /usr/bin/make -C /usr/ports/ports-mgmt/pkg install clean
41 fi
42
43 PKG_ABI=$(pkg -vv | grep ^ABI | awk '{print $3}')
44 PKG_ABI="${PKG_ABI%\";}"
45 PKG_ABI="${PKG_ABI#\"}"
46 export PKG_ABI
47 export PKG_CACHEDIR="dvd/packages/${PKG_ABI}"
48
49 /bin/mkdir -p ${PKG_CACHEDIR}
50
51 # Print pkg(8) information to make debugging easier.
52 ${PKGCMD} -vv
53 ${PKGCMD} update -f
54 ${PKGCMD} fetch -d ${DVD_PACKAGES}
55
56 ${PKGCMD} repo ${PKG_CACHEDIR}
57
58 # Always exit '0', even if pkg(8) complains about conflicts.
59 exit 0