summaryrefslogtreecommitdiff
path: root/mail/procmail
diff options
context:
space:
mode:
authorfrueauf <frueauf>1998-07-03 14:57:05 +0000
committerfrueauf <frueauf>1998-07-03 14:57:05 +0000
commit5cc326ca5fba1a0765c773015d246787dbd5ba00 (patch)
treebdf617614e4a240fbdfb301af78941afbb5d7331 /mail/procmail
parent69e5928b9af40b574b680fd52947cc1d5abeee12 (diff)
downloadpkgsrc-5cc326ca5fba1a0765c773015d246787dbd5ba00.tar.gz
Don't hardcode the etc dir to /usr/local/etc.
Fixes pr 5694 by Mason Loring Bliss.
Diffstat (limited to 'mail/procmail')
-rw-r--r--mail/procmail/Makefile7
-rw-r--r--mail/procmail/patches/patch-ab4
2 files changed, 8 insertions, 3 deletions
diff --git a/mail/procmail/Makefile b/mail/procmail/Makefile
index b00eb04c2b4..6bcef455da9 100644
--- a/mail/procmail/Makefile
+++ b/mail/procmail/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 1998/06/18 15:25:25 agc Exp $
+# $NetBSD: Makefile,v 1.8 1998/07/03 14:57:05 frueauf Exp $
# FreeBSD Id: Makefile,v 1.24 1997/05/14 14:40:34 ache Exp
#
@@ -11,4 +11,9 @@ MAINTAINER= packages@netbsd.org
INSTALL_TARGET= install-suid install.man
+post-patch:
+ ${MV} ${WRKSRC}/config.h ${WRKSRC}/config.h-orig
+ ${SED} -e 's|@LOCALBASE@|${LOCALBASE}|g' < ${WRKSRC}/config.h-orig \
+ > ${WRKSRC}/config.h
+
.include "../../mk/bsd.pkg.mk"
diff --git a/mail/procmail/patches/patch-ab b/mail/procmail/patches/patch-ab
index be45797a7c3..49bb6f55060 100644
--- a/mail/procmail/patches/patch-ab
+++ b/mail/procmail/patches/patch-ab
@@ -34,11 +34,11 @@
is not found, maildelivery will proceed as normal to the default
system mailbox. */
-! #define ETCRC "/usr/local/etc/procmailrc" /* optional global procmailrc startup
+! #define ETCRC "@LOCALBASE@/etc/procmailrc" /* optional global procmailrc startup
file (will only be read if procmail
is started with no rcfile on the command line). */
-! #define ETCRCS "/usr/local/etc/procmailrcs/" /* optional trusted path prefix for
+! #define ETCRCS "@LOCALBASE@/etc/procmailrcs/" /* optional trusted path prefix for
rcfiles which will be executed with
the uid of the owner of the rcfile (this only happens if procmail is
called with the -m option, without variable assignments on the command