diff options
author | seb <seb@pkgsrc.org> | 2002-08-12 14:47:07 +0000 |
---|---|---|
committer | seb <seb@pkgsrc.org> | 2002-08-12 14:47:07 +0000 |
commit | 5670256c19c06a00052829571fd05caa251e1e82 (patch) | |
tree | fb1516a72c28e5db0a25af064de439f96593ef6d /mk/bulk | |
parent | 09afe2685e76c908ec97844319c6c838b2a6087e (diff) | |
download | pkgsrc-5670256c19c06a00052829571fd05caa251e1e82.tar.gz |
- Remove $sandbox/etc/localtime before copying /usr/share/zoneinfo/GMT over.
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.
Diffstat (limited to 'mk/bulk')
-rwxr-xr-x | mk/bulk/mksandbox | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mk/bulk/mksandbox b/mk/bulk/mksandbox index af047466a9a..a45d938b6a5 100755 --- a/mk/bulk/mksandbox +++ b/mk/bulk/mksandbox @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: mksandbox,v 1.4 2002/08/12 10:12:09 agc Exp $ +# $NetBSD: mksandbox,v 1.5 2002/08/12 14:47:07 seb Exp $ # # # Copyright (c) 2002 Alistair G. Crooks. All rights reserved. @@ -143,6 +143,7 @@ case "$paxprog" in "") (cd /etc; $gtarprog -cf - . | (cd $sandbox/etc; $gtarprog xf - )) ;; *) (cd /etc; $paxprog -rwpe . $sandbox/etc) ;; esac +rm -f $sandbox/etc/localtime $cpprog /usr/share/zoneinfo/GMT $sandbox/etc/localtime echo "Make empty dirs upon which to mount the null mounts" @@ -167,16 +168,16 @@ echo "Making /tmp in $sandbox" $mkdirprog $sandbox/tmp $sandbox/var/tmp $chmodprog 1777 $sandbox/tmp $sandbox/var/tmp -echo "Mount /usr/src in $sandbox" +echo "Mount $src from $sandbox" $mkdirprog $sandbox/usr/src $mountprog -r -t null $src $sandbox/usr/src -echo "Mount /usr/pkgsrc in $sandbox" +echo "Mount $pkgsrc from $sandbox" $mkdirprog $sandbox/usr/pkgsrc $mountprog -t null $pkgsrc $sandbox/usr/pkgsrc echo "Mounting $packages and $distfiles from $sandbox" -$mkdirprog $packages $distfiles +$mkdirprog $sandbox/$packages $sandbox/$distfiles $mountprog -t null $packages $sandbox/$packages $mountprog -t null $distfiles $sandbox/$distfiles |