summaryrefslogtreecommitdiff
path: root/mk/bulk/mksandbox
AgeCommit message (Collapse)AuthorFilesLines
2008-04-01+ Skip mounting X11 directories if --without-x is specified.jlam1-1/+16
+ Add a "chroot" option, stolen from pkg_comp(8) that starts a root shell with a better environment setup.
2008-04-01Add missing ]jlam1-2/+2
2008-02-26Add a --without-x flag to the mksandbox script.jlam1-3/+9
2008-01-04Replaced all references to pkglint with lintpkgsrc, which has its ownrillig1-6/+6
package since a few days.
2007-05-19On Linux (at least Red Hat Enterprise 3), openssl needs librarieswiz1-3/+6
from /usr/kerberos and /dev/random in sandbox. On FreeBSD, use devfs to populate /dev in sandbox. From Sergey Svishchev.
2006-12-15Remove trailing tabs.martti1-2/+2
2006-12-14add /usr/sadm to the list of sandboxMountDirs for SunOSdmcmahill1-2/+2
2006-09-26Use /bin/mount if it exists on Linux, because some distros (e.g. Ubuntuminskim1-2/+6
Linux) do not have /sbin/mount.
2006-06-08Create /var/spool/lock in the sandbox. The directory is needed tominskim1-2/+2
build comm/minicom.
2005-11-16Interix cannot use the generic mksandbox procedure. Exit with error.tv1-1/+6
(A future Interix-specific mksandbox procedure is in work.)
2005-04-21by default don't try to include src and xsrc in the list of things todmcmahill1-11/+21
mount in the sandbox. Then in the individual OS section, turn it back on if needed. Right now, just turn on NetBSD. At some point we should probably fill out the other supported OS's or figure out a way to pull in the information from the makefiles which already define much of whats needed.
2005-02-10on Linux, we need more than just /proc in the sandbox. :)grant1-2/+2
2004-10-24Allow the xsrc directory to be specified on the command line, defaulting toagc1-3/+14
/usr/xsrc if not specified, and check for its existence.
2004-09-16Make and mount the local patches directory when relevant. Fixes PR#26951cjep1-2/+10
from Masanori Mikawa.
2004-09-02many kernel-grovelling tools in Linux need /proc mounted to dogrant1-1/+2
anything useful. make it so.
2004-07-03add /var/sadm so that Solaris pkgchk(8) can read the package database,grant1-2/+2
xpm/builtin.mk uses this to determine whether Solaris has xpm.
2004-07-01the timezone file on Solaris is /etc/TIMEZONE.grant1-2/+10
2004-06-06on Solaris, ensure /usr/tmp and /var/tmp are created in the sandbox,grant1-1/+2
as nroff(1) and others complain if these directories don't exist.
2004-06-06remove "local" variable scope, it is not required and is NetBSD sh(1)grant1-2/+2
specific.
2004-02-13on Solaris, mount /opt/SUNWspro in the sandbox if it exists.grant1-2/+2
2004-01-30print a useful error if the pkgsrc directory or src directorygrant1-3/+16
doesn't exist.
2004-01-30if an unknown option is given, don't treat it as a sandboxgrant1-3/+9
directory, print the usage message instead.
2004-01-26add /usr/5bin for Solaris.grant1-2/+2
2004-01-22sandboxed builds also need /usr/dt and /usr/ucblib on Solaris.grant1-2/+2
2004-01-20on Linux, use --bind arg to mount(8) and call 'MAKEDEV generic' togrant1-2/+6
make the device files, as this is what Linux systems seem to use...
2003-09-02Merge pkgviews-mk branch into the HEAD by running:jlam1-1/+1
cd pkgsrc/mk cvs update -Pd -A cvs update -Pd -j pkgviews-mk-base -j pkgviews-mk
2003-08-10Also create /var/log/lastlog{,x} in the sandbox if they exist in theseb1-2/+2
hosting system.
2003-07-30Rename sandboxDirs to sandboxMountDirs.seb1-14/+12
Introduce sandboxEmptyFiles a list of files to create empty in the sandbox if they exist on the hosting system. Hence put /var/run in sandboxEmptyDirs list. Use $cppprog instead of cp.
2003-07-30Whitespace.seb1-2/+1
2003-07-29Introduce sandboxEmptyDirs a list of directories to create emptyseb1-5/+14
in the sandbox if they exist on the hosting system: put /var/spool/mqueue as it was already created before and add /var/log for now (needed for various packages, like security/ssh2). Only create /var/run/utmp(x) if they exist on the hosting system. XXX this may better be an opsys dependent action.
2003-05-06Drop trailing whitespace. Ok'ed by wiz.jmmv1-2/+2
2003-04-13PR#21087. Some files are missing in bulk build sandboxes created bycjep1-1/+9
mksandbox. From Brook G. Milligan.
2002-12-31Introduce a variable called kernel which is either empty or contains thecjep1-3/+7
full pathname to the kernel file (e.g. for NetBSD /netbsd, OpenBSD /bsd, etc)
2002-12-31Loopback mount /proc on SunOS. shells/tcsh successfully builds in the sandboxcjep1-2/+9
except for one peculiar thing: bmake does not pick up a definition for CC. Something is missing (for SunOS).
2002-12-31Add /usr/ccs, /usr/ucb and /usr/xpg4 for SunOS in sandboxDirs.cjep1-2/+2
Provided that I copy a working gcc and the binaries from the bootstrap kit into the sandbox manually, this gets me as far as having a pkgsrc sandbox that can build pkg_tools/pkg_install.
2002-12-311. On SunOS populate /dev in the sandbox with devfsadm and ucblinks.cjep1-21/+20
2. Introduce sandboxDirs, a list of directories that need to be null mounted. This is different (e.g. on SunOS).
2002-12-311. Introduce mountflags so that we can tune the mount command for Solariscjep1-8/+13
(et al.). 2. Use the loopback filesystem on Solaris.
2002-12-31Introduce idprog so that Solaris survives the root test.cjep1-2/+7
2002-12-03Apply patches from Sergey Svishchev in PR 19221 to get the correct valueagc1-1/+3
for localpatches and to make that directory available in the sandbox.
2002-11-20Fixes from Robert Elz to:agc1-9/+17
+ umount filesystems in the reverse order from that which they were mounted + null-mount /lib and /libexec in a way more consistent with the original
2002-11-08Take care of -current's /lib and /libexec.seb1-2/+8
Noted by Julio Merino <jmmv at menta dot net> in PR pkg/18968, I had this in my trees for weeks and I forgot about it...
2002-08-22Merge pkgsrc/mk from the buildlink2 branch back into the main trunk.jlam1-1/+1
2002-08-15Actually Alistair was right: $packages and $distfiles also need to beseb1-1/+2
$mkdirprog'ed, it helps on a fresh/virgin/cleaned up bulk building system.
2002-08-12Make sure that /var/games exists in the sandbox, and has the correctagc1-1/+11
permissions.
2002-08-12New feature: this script now create $sandbox/sandbox, a shell scriptseb1-1/+50
to ease the use of the sandbox. $sandbox/sandbox umount Umount the null mounts from the sandbox $sandbox/sandbox mount Mount the null mounts required by the sandbox (useful across reboots, ...). $sandbox/sandbox whatever Runs the command passed as arguments, chrooted into the sandbox. Typical usage would be `$sandbox/sandbox /my/favourite/shell'. $sandbox/sandbox Same as `$sandbox/sandbox /bin/sh' Approved by agc.
2002-08-12- Remove $sandbox/etc/localtime before copying /usr/share/zoneinfo/GMT over.seb1-4/+5
This prevent surprise when /etc/localtime -previously copied over in the sandbox by pax/tar- is a symlink to /usr/share/zoneinfo/whatever. - Improve somewhat some messages. - Make sure $sandbox/$packages and $sandbox/$distfiles are created instead of $packages and $distfiles.
2002-08-12Don't null-mount all of /var - just do /var/mail for just now, so thatagc1-2/+2
the packages which expect a sane mail delivery set up can configure and build within the sandbox.
2002-08-12Also null-mount /var from inside the sandboxagc1-2/+3
2002-08-07Correct the position of a closing parenthesis in a commentagc1-2/+2
2002-08-07A small shell script to set up a sandbox (usually for a pkgsrc bulkagc1-0/+184
build), using null mounts.