summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2001-10-26 14:09:59 +0000
committeragc <agc@pkgsrc.org>2001-10-26 14:09:59 +0000
commitd52dd5005a19d883c718553fa7ad3116889f3246 (patch)
treeb205911a0374704e6a0378d88ec3a73be474ef3f /mail
parent9f28ffc95eb2a823929bb7a8d76e25aeff7c9805 (diff)
downloadpkgsrc-d52dd5005a19d883c718553fa7ad3116889f3246.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 'mail')
-rw-r--r--mail/mailagent/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/mailagent/Makefile b/mail/mailagent/Makefile
index 4b51f55c75c..3a3fe03a086 100644
--- a/mail/mailagent/Makefile
+++ b/mail/mailagent/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2001/04/08 00:24:55 itojun Exp $
+# $NetBSD: Makefile,v 1.8 2001/10/26 14:10:01 agc Exp $
# FreeBSD: ports/mail/mailagent/Makefile,v 1.28 1999/08/31 06:47:24 mharo Exp
#
@@ -33,6 +33,9 @@ pre-extract:
${ECHO} "Do not build mailagent as root or it won't pass the sanity tests."; \
${FALSE}; fi
+pre-configure:
+ cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/pre-configure
+
post-install:
@${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mailagent
@${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mailagent/misc