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"
14 DVD_PACKAGES="archivers/unzip
16 devel/subversion-static
17 emulators/linux_base-f10
29 x11-drivers/xf86-video-vmware
34 # If NOPORTS is set for the release, do not attempt to build pkg(8).
35 if [ ! -f /usr/ports/Makefile ]; then
39 if [ ! -x /usr/local/sbin/pkg ]; then
40 /usr/bin/make -C /usr/ports/ports-mgmt/pkg install clean
43 export PKG_ABI=$(pkg config ABI)
44 export PKG_REPODIR="dvd/packages/${PKG_ABI}"
46 /bin/mkdir -p ${PKG_REPODIR}
48 # Print pkg(8) information to make debugging easier.
51 ${PKGCMD} fetch -o ${PKG_REPODIR} -d ${DVD_PACKAGES}
53 # Create the 'Latest/pkg.txz' symlink so 'pkg bootstrap' works
54 # using the on-disc packages.
55 mkdir -p ${PKG_REPODIR}/Latest
56 (cd ${PKG_REPODIR}/Latest && \
57 ln -s ../All/$(${PKGCMD} rquery %n-%v pkg).txz pkg.txz)
59 ${PKGCMD} repo ${PKG_REPODIR}
61 # Always exit '0', even if pkg(8) complains about conflicts.