summaryrefslogtreecommitdiff
path: root/mail/qmail
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-04-30 15:06:58 +0000
committerjlam <jlam@pkgsrc.org>2005-04-30 15:06:58 +0000
commit797d2663a00f7675659034f5f227a55c063dde12 (patch)
treedce668b6d47c82286ca2bbb05c9bf8e6250214dd /mail/qmail
parent88a657f75e1796ba4f9e537fb83a0ff753f998f5 (diff)
downloadpkgsrc-797d2663a00f7675659034f5f227a55c063dde12.tar.gz
Use :sh instead of != to assign QUEUE_EXTRALEN to defer evalutation of
command until it is referenced within subst.mk's make targets. This avoids needing ${EXPR} and ${WC} in the top-level make.
Diffstat (limited to 'mail/qmail')
-rw-r--r--mail/qmail/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/qmail/Makefile b/mail/qmail/Makefile
index 195b196ffd5..851cbab8857 100644
--- a/mail/qmail/Makefile
+++ b/mail/qmail/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.33 2005/04/11 21:46:23 tv Exp $
+# $NetBSD: Makefile,v 1.34 2005/04/30 15:06:58 jlam Exp $
#
DISTNAME= netqmail-1.05
@@ -81,11 +81,11 @@ PKG_FAIL_REASON+= "QMAIL_QUEUE_DIR must not be under ${QMAILDIR}"
.if !empty(QMAIL_QUEUE_EXTRA)
QUEUE_EXTRA= "T${QMAIL_QUEUE_EXTRA}\\0"
-QUEUE_EXTRALEN!= ${EXPR} `${ECHO} ${QUEUE_EXTRA} | ${WC} -c` - 2
+QUEUE_EXTRALEN_cmd= ${EXPR} `${ECHO} ${QUEUE_EXTRA} | ${WC} -c` - 2
SUBST_CLASSES+= logging
SUBST_STAGE.logging= do-configure
SUBST_FILES.logging= extra.h
-SUBST_SED.logging= -e 's|0|${QUEUE_EXTRALEN}|g'
+SUBST_SED.logging= -e 's|0|${QUEUE_EXTRALEN_cmd:sh}|g'
SUBST_SED.logging+= -e 's|""|${QUEUE_EXTRA}|g'
SUBST_MESSAGE.logging= "Setting QUEUE_EXTRA."
.endif