summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2002-08-12 16:33:11 +0000
committeragc <agc@pkgsrc.org>2002-08-12 16:33:11 +0000
commita4d0d788d68bc33755dbe0f728268aa2700f1466 (patch)
tree766c0ab9cf2a2188c1ec192f5089e13436d751d7 /mk
parent4a9a02e45c75d981874122c8455c8e0466cda371 (diff)
downloadpkgsrc-a4d0d788d68bc33755dbe0f728268aa2700f1466.tar.gz
Make sure that /var/games exists in the sandbox, and has the correct
permissions.
Diffstat (limited to 'mk')
-rwxr-xr-xmk/bulk/mksandbox12
1 files changed, 11 insertions, 1 deletions
diff --git a/mk/bulk/mksandbox b/mk/bulk/mksandbox
index 88c9847d9f9..56d377e18ed 100755
--- a/mk/bulk/mksandbox
+++ b/mk/bulk/mksandbox
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: mksandbox,v 1.6 2002/08/12 15:19:49 seb Exp $
+# $NetBSD: mksandbox,v 1.7 2002/08/12 16:33:11 agc Exp $
#
#
# Copyright (c) 2002 Alistair G. Crooks. All rights reserved.
@@ -47,6 +47,7 @@ case "$opsys" in
Darwin)
bmakeprog=bmake
chmodprog=/bin/chmod
+ chownprog=/usr/sbin/chown
cpprog=/bin/cp
gtarprog=/usr/bin/gnutar
mkdirprog="/bin/mkdir -p"
@@ -57,6 +58,7 @@ Darwin)
Linux)
bmakeprog=bmake
chmodprog=/bin/chmod
+ chownprog=/bin/chown
cpprog=/bin/cp
gtarprog=/bin/tar
mkdirprog="/bin/mkdir -p"
@@ -67,6 +69,7 @@ Linux)
NetBSD)
bmakeprog=make
chmodprog=/bin/chmod
+ chownprog=/usr/sbin/chown
cpprog=/bin/cp
gtarprog=/usr/bin/tar
mkdirprog="/bin/mkdir -p"
@@ -77,6 +80,7 @@ NetBSD)
SunOS)
bmakeprog=bmake
chmodprog=/usr/bin/chmod
+ chownprog=/usr/bin/chown
cpprog=/usr/bin/cp
gtarprog=""
mkdirprog="/usr/bin/mkdir -p"
@@ -88,6 +92,7 @@ SunOS)
echo "Unknown Operating System ($opsys) - good luck"
bmakeprog=bmake
chmodprog=chmod
+ chownprog=chown
cpprog=cp
gtarprog="tar"
mkdirprog="mkdir -p"
@@ -175,6 +180,11 @@ echo "Making /tmp in $sandbox"
$mkdirprog $sandbox/tmp $sandbox/var/tmp
$chmodprog 1777 $sandbox/tmp $sandbox/var/tmp
+echo "Making /var/games in $sandbox"
+$mkdirprog $sandbox/var/games
+$chownprog games:games $sandbox/var/games
+$chmodprog 2775 $sandbox/var/games
+
echo "Mount $src from $sandbox"
$mkdirprog $sandbox/usr/src
$mountprog -r -t null $src $sandbox/usr/src