diff options
author | wiz <wiz> | 2012-08-26 10:31:23 +0000 |
---|---|---|
committer | wiz <wiz> | 2012-08-26 10:31:23 +0000 |
commit | 3d388abe5303f0ac23f76926a52f79dcd5c7a0f1 (patch) | |
tree | c573f52e3ea60b031e4036d895486c0590d0afd4 /pkgtools/mksandbox/Makefile | |
parent | e6fa6785a0370ec31517a2a13db2399c7243d532 (diff) | |
download | pkgsrc-3d388abe5303f0ac23f76926a52f79dcd5c7a0f1.tar.gz |
Import mksandbox-1.0 as pkgtools/mksandbox.
A small shell script to set up a sandbox (usually for a pkgsrc bulk
build), using null mounts.
The file lived in pkgsrc/mk/bulk/mksandbox, but is worthy of its own
package IMHO. New: with manpage.
Diffstat (limited to 'pkgtools/mksandbox/Makefile')
-rw-r--r-- | pkgtools/mksandbox/Makefile | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgtools/mksandbox/Makefile b/pkgtools/mksandbox/Makefile new file mode 100644 index 00000000000..bd384dab19a --- /dev/null +++ b/pkgtools/mksandbox/Makefile @@ -0,0 +1,34 @@ +# $NetBSD: Makefile,v 1.1 2012/08/26 10:31:23 wiz Exp $ + +DISTNAME= mksandbox-1.0 +CATEGORIES= pkgtools +MASTER_SITES= # none +DISTFILES= # none + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://www.NetBSD.org/docs/pkgsrc/bulk.html#setting-up-a-sandbox +COMMENT= Tool for creating sandboxes +LICENSE= original-bsd + +PKG_DESTDIR_SUPPORT= user-destdir + +WRKSRC= ${WRKDIR} +NO_BUILD= yes +USE_LANGUAGES= # none +INSTALLATION_DIRS= sbin ${PKGMANDIR}/man8 + +do-extract: + cd ${FILESDIR} && cp mksandbox mksandbox.8 ${WRKSRC}/ + +.include "../../mk/bsd.prefs.mk" + +SUBST_CLASSES+= up +SUBST_STAGE.up= do-configure +SUBST_FILES.up= mksandbox mksandbox.8 +SUBST_SED.up+= -e 's,/usr/pkgsrc,${PKGSRCDIR},g' + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/mksandbox ${DESTDIR}${PREFIX}/sbin/ + ${INSTALL_MAN} ${WRKSRC}/mksandbox.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8 + +.include "../../mk/bsd.pkg.mk" |