summaryrefslogtreecommitdiff
path: root/mail/qmail-run
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-07-10 22:59:26 +0000
committerjlam <jlam@pkgsrc.org>2006-07-10 22:59:26 +0000
commit06be53fba4f89e66167ca66987369cbd8668fb5c (patch)
treecb614cea1d624a5581e700c292825cf7d5a200cb /mail/qmail-run
parent33ec3f4488e7c3b1d4ceba45ab21fa339bf6adc9 (diff)
downloadpkgsrc-06be53fba4f89e66167ca66987369cbd8668fb5c.tar.gz
Completely nuke the concept of PKG_PHASE from pkgsrc except for the
purposes of caching MAKEVARS within bsd.pkg.mk and bsd.makevars.mk.
Diffstat (limited to 'mail/qmail-run')
-rw-r--r--mail/qmail-run/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/mail/qmail-run/Makefile b/mail/qmail-run/Makefile
index f0547ef7189..dbe799a4acc 100644
--- a/mail/qmail-run/Makefile
+++ b/mail/qmail-run/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2006/06/04 15:23:25 schmonz Exp $
+# $NetBSD: Makefile,v 1.19 2006/07/10 22:59:26 jlam Exp $
#
DISTNAME= qmail-run-20060604
@@ -30,12 +30,14 @@ INSTALLATION_DIRS= bin share/doc/qmail-run share/examples/qmail-run
# Detect the PKG_SYSCONFDIR of the installed qmail, so we can create
# config files there and refer to them from rc.d scripts.
-.if !empty(PHASES_AFTER_EXTRACT:M${PKG_PHASE})
-INSTALLED_QMAIL!= ${PKG_BEST_EXISTS} ${DEPENDS_QMAIL:C/:.*$//:Q:S/\ / /g}
-. if empty(INSTALLED_QMAIL:M*_not_found_)
-. if !defined(PKG_SYSCONFDIR.qmail-run)
-PKG_SYSCONFDIR.qmail-run!= ${PKG_INFO} -Q PKG_SYSCONFDIR ${INSTALLED_QMAIL}
-. endif
+#
+.if !defined(PKG_SYSCONFDIR.qmail-run)
+PKG_SYSCONFDIR.qmail-run!= \
+ ${PKG_INFO} -Q PKG_SYSCONFDIR \
+ ${DEPENDS_QMAIL:C/:.*$//:Q} 2>/dev/null || \
+ ${ECHO} "PKG_SYSCONFDIR.qmail-run_not_set"
+. if empty(PKG_SYSCONFDIR.qmail-run:M*not_set)
+MAKEVARS+= PKG_SYSCONFDIR.qmail-run
. endif
.endif