summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorcjep <cjep>2002-12-31 17:46:12 +0000
committercjep <cjep>2002-12-31 17:46:12 +0000
commit7e02d41177f27e31c8b0f994b36852a556683b82 (patch)
treeefa8f64d4267f7d4749d6e7cebfd821b7d9c2157 /mk
parent63c8802c824c81c0f797de30fb46f3fe2549405b (diff)
downloadpkgsrc-7e02d41177f27e31c8b0f994b36852a556683b82.tar.gz
Introduce a variable called kernel which is either empty or contains the
full pathname to the kernel file (e.g. for NetBSD /netbsd, OpenBSD /bsd, etc)
Diffstat (limited to 'mk')
-rwxr-xr-xmk/bulk/mksandbox10
1 files changed, 7 insertions, 3 deletions
diff --git a/mk/bulk/mksandbox b/mk/bulk/mksandbox
index 71205a3e49b..5f8506d7eff 100755
--- a/mk/bulk/mksandbox
+++ b/mk/bulk/mksandbox
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: mksandbox,v 1.17 2002/12/31 17:42:32 cjep Exp $
+# $NetBSD: mksandbox,v 1.18 2002/12/31 17:46:12 cjep Exp $
#
#
# Copyright (c) 2002 Alistair G. Crooks. All rights reserved.
@@ -42,6 +42,7 @@
pkgsrc=/usr/pkgsrc
src=/usr/src
+kernel=""
sandboxDirs="/bin /sbin /lib /libexec /usr/X11R6 /usr/bin /usr/games /usr/include /usr/lib /usr/libdata /usr/libexec /usr/lkm /usr/share /usr/sbin /var/mail"
opsys=`uname -s`
@@ -79,6 +80,7 @@ NetBSD)
cpprog=/bin/cp
gtarprog=/usr/bin/tar
idprog=/usr/bin/id
+ kernel=/netbsd
mkdirprog="/bin/mkdir -p"
mountflags="-t null"
mountprog=/sbin/mount
@@ -162,8 +164,10 @@ r3() {
fses="\\
EOS
-echo "Copying the kernel"
-$cpprog /netbsd $sandbox
+if [ ! -z "$kernel" ]; then
+ echo "Copying the kernel"
+ $cpprog $kernel $sandbox
+fi
echo "Checking package hierarchy in $localbase and package database in $pkg_dbdir exist"
$mkdirprog $sandbox/$localbase $sandbox/$pkg_dbdir