summaryrefslogtreecommitdiff
path: root/parallel
diff options
context:
space:
mode:
authoragc <agc>2001-10-26 14:09:59 +0000
committeragc <agc>2001-10-26 14:09:59 +0000
commit413aeecacaaf5d23de6324803da96b7827f553ce (patch)
treeb205911a0374704e6a0378d88ec3a73be474ef3f /parallel
parent45aacf270ab31d90097aeda2ff6652d63d3dd016 (diff)
downloadpkgsrc-413aeecacaaf5d23de6324803da96b7827f553ce.tar.gz
At present, if there is a pre-<target> or post-<target> script in
the scripts/ directory, it will be run automatically as part of the build process, by bsd.pkg.mk. There are now exactly 5 packages in pkgsrc which use this facility, and yet, for every package build, the existence of a script is checked by bsd.pkg.mk once before the target is executed, and once afterwards. This incurs needless overhead. Move the separate pre- and post- script handling out of bsd.pkg.mk into the individual package Makefiles, where it's much more obvious what is happening, anyway.
Diffstat (limited to 'parallel')
-rw-r--r--parallel/glunix/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/parallel/glunix/Makefile b/parallel/glunix/Makefile
index e0f5945d122..f3eb173351c 100644
--- a/parallel/glunix/Makefile
+++ b/parallel/glunix/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2001/09/27 23:18:34 jlam Exp $
+# $NetBSD: Makefile,v 1.21 2001/10/26 14:10:01 agc Exp $
DISTNAME= glunix-release-1-0a
PKGNAME= glunix-1.0a
@@ -46,6 +46,12 @@ USER_CMD= ${LOCALBASE}/sbin/user
GROUP_CMD= ${LOCALBASE}/sbin/group
.endif
+pre-fetch:
+ cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/pre-fetch
+
+post-patch:
+ cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/post-patch
+
# the glunix group needs to exist before building.
pre-configure:
${CP} ${FILESDIR}/Makefile-2 ${WRKSRC}/Makefile