summaryrefslogtreecommitdiff
path: root/mail/procmail
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2002-05-23 19:52:03 +0000
committertron <tron@pkgsrc.org>2002-05-23 19:52:03 +0000
commitff2e7b507d7aad613d34af6db467eeda2fc68525 (patch)
tree10053c37db0f5bf6935413fac2ad3c584b942576 /mail/procmail
parentda0b6d62bb3bee335c83fb5364bf205b93a52654 (diff)
downloadpkgsrc-ff2e7b507d7aad613d34af6db467eeda2fc68525.tar.gz
Add support for "${PKG_SYSCONFDIR}". The changes were contributed by
Julio Merino in PR pkg/16956.
Diffstat (limited to 'mail/procmail')
-rw-r--r--mail/procmail/MESSAGE10
-rw-r--r--mail/procmail/Makefile8
2 files changed, 12 insertions, 6 deletions
diff --git a/mail/procmail/MESSAGE b/mail/procmail/MESSAGE
index 1a7cbcfdac9..9e55cb0b89f 100644
--- a/mail/procmail/MESSAGE
+++ b/mail/procmail/MESSAGE
@@ -1,9 +1,9 @@
-=============================================================
-$NetBSD: MESSAGE,v 1.1 2001/11/01 01:01:07 zuntum Exp $
+=======================================================================
+$NetBSD: MESSAGE,v 1.2 2002/05/23 19:52:03 tron Exp $
Please note the following:
-- The system-wide procmailrc is /etc/procmailrc
-- The system-wide procmailrc directory is /etc/procmailrcs/
+- The system-wide procmailrc is ${PKG_SYSCONFDIR}/procmailrc
+- The system-wide procmailrc directory is ${PKG_SYSCONFDIR}/procmailrcs/
-=============================================================
+=======================================================================
diff --git a/mail/procmail/Makefile b/mail/procmail/Makefile
index a91a7048b96..d7c7038bd34 100644
--- a/mail/procmail/Makefile
+++ b/mail/procmail/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2001/11/08 12:05:58 bouyer Exp $
+# $NetBSD: Makefile,v 1.27 2002/05/23 19:52:03 tron Exp $
#
DISTNAME= procmail-3.22
@@ -23,6 +23,12 @@ PROCMAIL_TRUSTED_IDS?=\
pre-configure:
${ECHO} "#define TRUSTED_IDS {${PROCMAIL_TRUSTED_IDS:Q}}" \
>> ${WRKSRC}/config.h
+ ${ECHO} "#undef ETCRC" >> ${WRKSRC}/config.h
+ ${ECHO} "#undef ETCRCS" >> ${WRKSRC}/config.h
+ ${ECHO} "#define ETCRC \"${PKG_SYSCONFDIR}/procmailrc\"" \
+ >> ${WRKSRC}/config.h
+ ${ECHO} "#define ETCRCS \"${PKG_SYSCONFDIR}/procmailrcs/\"" \
+ >> ${WRKSRC}/config.h
.ifdef(PROCMAIL_MAILSPOOLHOME)
${ECHO} "#define MAILSPOOLHOME \"/${PROCMAIL_MAILSPOOLHOME}\"" \
>> ${WRKSRC}/src/authenticate.h