diff options
author | cjep <cjep@pkgsrc.org> | 2002-12-31 17:46:12 +0000 |
---|---|---|
committer | cjep <cjep@pkgsrc.org> | 2002-12-31 17:46:12 +0000 |
commit | 3bcfb2927217a15723656a2372a8a3600b0efb90 (patch) | |
tree | efa8f64d4267f7d4749d6e7cebfd821b7d9c2157 /mk | |
parent | 7b08a3ada9a1ab76bfbca01e273c7a389be801f8 (diff) | |
download | pkgsrc-3bcfb2927217a15723656a2372a8a3600b0efb90.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-x | mk/bulk/mksandbox | 10 |
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 |