98c16dda3a
Change the /dev/shm handling on Linux to account for systemd being a complete nightmare and changing mount types behind your back automatically. The previous fixed works fine, until it magically changes from a tmpfs with 1777 permissions to a devtmpfs with 0755 permissions, with obvious failures resulting when building as non-root. Tested on el6 and el7, with the latter now reliably able to build Python.
31 lines
817 B
Makefile
31 lines
817 B
Makefile
# $NetBSD: Makefile,v 1.17 2021/01/22 11:59:52 jperkin Exp $
|
|
|
|
PKGNAME= mksandbox-1.10
|
|
CATEGORIES= pkgtools
|
|
|
|
MAINTAINER= agc@NetBSD.org
|
|
HOMEPAGE= https://www.NetBSD.org/docs/pkgsrc/bulk.html#setting-up-a-sandbox
|
|
COMMENT= Tool for creating sandboxes
|
|
LICENSE= 2-clause-bsd
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
NO_BUILD= yes
|
|
NO_CHECKSUM= 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"
|