summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2016-03-03 04:41:15 +0000
committeragc <agc@pkgsrc.org>2016-03-03 04:41:15 +0000
commitb5fd485ee7bcbb1227b49cf722c0f41cfbf370a4 (patch)
treefd974899036ddff01994267bb35534b6fafb0ea9 /pkgtools
parenta267f5a3cb3df3cd98cc504ecc42e26783eef8cf (diff)
downloadpkgsrc-b5fd485ee7bcbb1227b49cf722c0f41cfbf370a4.tar.gz
Patch from Silas Silva to:
+ add a --without-src command line argument which allows a sandbox to be made without mounting any src tree component + bump mksandbox package to 1.6.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/mksandbox/Makefile4
-rwxr-xr-xpkgtools/mksandbox/files/mksandbox9
2 files changed, 8 insertions, 5 deletions
diff --git a/pkgtools/mksandbox/Makefile b/pkgtools/mksandbox/Makefile
index 869810f215e..868dd165060 100644
--- a/pkgtools/mksandbox/Makefile
+++ b/pkgtools/mksandbox/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.10 2015/07/05 11:47:14 jperkin Exp $
+# $NetBSD: Makefile,v 1.11 2016/03/03 04:41:15 agc Exp $
-PKGNAME= mksandbox-1.5
+PKGNAME= mksandbox-1.6
CATEGORIES= pkgtools
MAINTAINER= agc@NetBSD.org
diff --git a/pkgtools/mksandbox/files/mksandbox b/pkgtools/mksandbox/files/mksandbox
index 0cef692a3a4..0369a7283b2 100755
--- a/pkgtools/mksandbox/files/mksandbox
+++ b/pkgtools/mksandbox/files/mksandbox
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: mksandbox,v 1.8 2015/07/05 11:47:14 jperkin Exp $
+# $NetBSD: mksandbox,v 1.9 2016/03/03 04:41:15 agc Exp $
# Copyright (c) 2002,2012 Alistair Crooks <agc@NetBSD.org>
# All rights reserved.
@@ -28,7 +28,8 @@
# Usage: mksandbox [--mounthost=host] [--rodirs=dir1,...] [--rwdirs=dir1,...]
# [--pkgsrc=dir] [--src=srcdir] [--xsrc=xsrcdir]
-# [--without-pkgsrc] [--without-x] [--verbose] sandbox-dir
+# [--without-src] [--without-pkgsrc] [--without-x]
+# [--verbose] sandbox-dir
#
# A small shell script to set up a sandbox (usually for a pkgsrc bulk
# build), using null mounts.
@@ -51,7 +52,8 @@ usage()
{
echo "usage: mksandbox [--mounthost=host] [--rodirs=dir1,...] [--rwdirs=dir1,...]"
echo " [--pkgsrc=dir] [--src=srcdir] [--xsrc=xsrcdir]"
- echo " [--without-pkgsrc] [--without-x] [--verbose] sandbox-dir"
+ echo " [--without-src] [--without-pkgsrc] [--without-x]"
+ echo " [--verbose] sandbox-dir"
exit 1
}
@@ -178,6 +180,7 @@ while [ $# -gt 0 ]; do
--rodirs=*) rodirs=`echo $1 | $sedprog -e 's|^--rodirs=||'` ;;
--rwdirs=*) rwdirs=`echo $1 | $sedprog -e 's|^--rwdirs=||'` ;;
--without-pkgsrc) with_pkgsrc=no ;;
+ --without-src) need_src=no ;;
--without-x) with_x=no ;;
--verbose) set -x ;;
-*) usage ;;