Jeremy C. Reed has a large repository of the distfiles for pkgsrc in another directory outside of the chroot; mounting it and adding it to DIST_PATH should make it available, saving the bulk build process (and Matt's bandwidth) from having to download more.
-
-
-
-
mkdir /build/pbulk_chroot/archive
-
mount_null /archive /build/pbulk_chroot/archive
-
-
-
-
Should be ready to go...
-
-
-
-
chroot /build/pbulk_chroot
-
/etc/rc.d/ldconfig start
-
-
### Adding pkgsrc bootstrap
Everything past this point is in the chroot!
-
-
-
-
mkdir /bulklog
-
mkdir /scratch
-
mkdir /distfiles
-
mkdir /packages
-
-
Grab the most recent quarterly release of pkgsrc:
-
-
-
-
-
+
setenv CVSROOT anoncvs@anoncvs.NetBSD.org:/cvsroot
-
setenv CVS_RSH ssh
-
cd /usr
-
cvs -q checkout -rpkgsrc-2008Q1 -P pkgsrc
-
-
To update the pkgsrc files later
-
-
-
-
cvs -q update -dP
-
-
Put this in /root/mk-base.conf, for use later when building the first bootstrap:
-
-
-
-
WRKOBJDIR = /scratch
-
PKGSRCDIR = /usr/pkgsrc
-
DISTDIR = /distfiles
-
DIST_PATH = /archive/distfiles
-
PACKAGES = /packages
-
-
FAILOVER_FETCH= yes
-
-
-
_ACCEPTABLE= yes
-
ALLOW_VULNERABLE_PACKAGES= yes
-
-
PKG_DEVELOPER?= yes
-
-
+ PKG_DEFAULT_OPTIONS="dri inet6"
We need to create a clean bootstrap kit for later. This installs pkgsrc tools into /usr/pkg_bulk, too.