summaryrefslogtreecommitdiff
path: root/mk/bulk/mksandbox
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2007-05-19 14:09:54 +0000
committerwiz <wiz@pkgsrc.org>2007-05-19 14:09:54 +0000
commitdbc85a3d654888c3c3951c2edd1af19baeb96166 (patch)
tree952aed95d36db2a2ba9714140b6f89d61e39285e /mk/bulk/mksandbox
parentea85b66e92b573e276c7fc94032b6416342ac7f4 (diff)
downloadpkgsrc-dbc85a3d654888c3c3951c2edd1af19baeb96166.tar.gz
On Linux (at least Red Hat Enterprise 3), openssl needs libraries
from /usr/kerberos and /dev/random in sandbox. On FreeBSD, use devfs to populate /dev in sandbox. From Sergey Svishchev.
Diffstat (limited to 'mk/bulk/mksandbox')
-rwxr-xr-xmk/bulk/mksandbox9
1 files changed, 6 insertions, 3 deletions
diff --git a/mk/bulk/mksandbox b/mk/bulk/mksandbox
index a346c6fdf12..74e5d6fad46 100755
--- a/mk/bulk/mksandbox
+++ b/mk/bulk/mksandbox
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: mksandbox,v 1.45 2006/12/15 13:15:06 martti Exp $
+# $NetBSD: mksandbox,v 1.46 2007/05/19 14:09:54 wiz Exp $
#
#
# Copyright (c) 2002 Alistair G. Crooks. All rights reserved.
@@ -100,7 +100,7 @@ Linux)
fi
paxprog=""
sedprog=/bin/sed
- sandboxMountDirs="$sandboxMountDirs /proc"
+ sandboxMountDirs="$sandboxMountDirs /proc /usr/kerberos"
;;
NetBSD)
bmakeprog=make
@@ -230,7 +230,10 @@ SunOS)
;;
Linux)
$cpprog /dev/MAKEDEV* $sandbox/dev
- (cd $sandbox/dev; ./MAKEDEV generic)
+ (cd $sandbox/dev; ./MAKEDEV generic random)
+ ;;
+FreeBSD)
+ $mountprog -t devfs devfs $sandbox/dev
;;
*)
$cpprog /dev/MAKEDEV* $sandbox/dev