summaryrefslogtreecommitdiff
path: root/mail/mailfront
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
commitf3372729ab2e1dd6f8e5969862c77666d8b45bdb (patch)
treecb614cea1d624a5581e700c292825cf7d5a200cb /mail/mailfront
parent9e4ca2161b90f8703d5aea28362f561d5d727b0a (diff)
downloadpkgsrc-f3372729ab2e1dd6f8e5969862c77666d8b45bdb.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/mailfront')
-rw-r--r--mail/mailfront/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/mail/mailfront/Makefile b/mail/mailfront/Makefile
index 86542ee55d4..2704702ad84 100644
--- a/mail/mailfront/Makefile
+++ b/mail/mailfront/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2005/12/29 06:21:50 jlam Exp $
+# $NetBSD: Makefile,v 1.6 2006/07/10 22:59:26 jlam Exp $
#
DISTNAME= mailfront-0.98
@@ -23,12 +23,14 @@ RCD_SCRIPTS= smtpfront
# 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.mailfront)
-PKG_SYSCONFDIR.mailfront!= ${PKG_INFO} -Q PKG_SYSCONFDIR ${INSTALLED_QMAIL}
-. endif
+#
+.if !defined(PKG_SYSCONFDIR.mailfront)
+PKG_SYSCONFDIR.mailfront!= \
+ ${PKG_INFO} -Q PKG_SYSCONFDIR \
+ ${DEPENDS_QMAIL:C/:.*$//:Q} 2>/dev/null || \
+ ${ECHO} "PKG_SYSCONFDIR.mailfront_not_set"
+. if empty(PKG_SYSCONFDIR.mailfront:M*not_set)
+MAKEVARS+= PKG_SYSCONFDIR.mailfront
. endif
.endif