9 echo "$(basename ${0}) /path/to/pkg-stage.conf revision"
13 if [ ! -e "${1}" ]; then
14 echo "Configuration file not specified."
19 if [ "$#" -lt 2 ]; then
23 # Source config file for this architecture.
27 # If NOPORTS is set for the release, do not attempt to build pkg(8).
28 if [ ! -f /usr/ports/Makefile ]; then
32 if [ ! -x /usr/local/sbin/pkg ]; then
33 /usr/bin/make -C /usr/ports/ports-mgmt/pkg install clean
36 /bin/mkdir -p ${PKG_CACHEDIR}
39 ${PKGCMD} fetch -d ${DVD_PACKAGES}
41 ${PKGCMD} repo ${PKG_CACHEDIR}
43 # Always exit '0', even if pkg(8) complains about conflicts.