summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorkim <kim@pkgsrc.org>2001-04-13 04:18:33 +0000
committerkim <kim@pkgsrc.org>2001-04-13 04:18:33 +0000
commit60636e9b093464486273199a23b6532f9416c83f (patch)
tree750a80c83ae09272387e67dc069a2151411c09a8 /mail
parentbb5c145e39e0d891381c2732e06078b09c967f23 (diff)
downloadpkgsrc-60636e9b093464486273199a23b6532f9416c83f.tar.gz
Allow setting TRUSTED_IDS in procmail.
Diffstat (limited to 'mail')
-rw-r--r--mail/procmail/Makefile11
-rw-r--r--mail/procmail/patches/patch-ab13
2 files changed, 17 insertions, 7 deletions
diff --git a/mail/procmail/Makefile b/mail/procmail/Makefile
index 05907e868dd..97bfc9c9f8f 100644
--- a/mail/procmail/Makefile
+++ b/mail/procmail/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2001/04/07 01:53:24 kim Exp $
+# $NetBSD: Makefile,v 1.22 2001/04/13 04:18:34 kim Exp $
# FreeBSD Id: Makefile,v 1.24 1997/05/14 14:40:34 ache Exp
#
@@ -15,10 +15,15 @@ MAKE_ENV= SHELL=/bin/sh
.include "../../mk/bsd.prefs.mk"
-BUILD_DEFS+= PROCMAIL_MAILSPOOLHOME
+BUILD_DEFS+= PROCMAIL_MAILSPOOLHOME PROCMAIL_TRUSTED_IDS
+
+PROCMAIL_TRUSTED_IDS?=\
+"root","daemon","uucp","mail","x400","network","list","slist","lists","news",0
-.ifdef(PROCMAIL_MAILSPOOLHOME)
pre-configure:
+ ${ECHO} "#define TRUSTED_IDS {${PROCMAIL_TRUSTED_IDS:Q}}" \
+ >> ${WRKSRC}/config.h
+.ifdef(PROCMAIL_MAILSPOOLHOME)
${ECHO} "#define MAILSPOOLHOME \"/${PROCMAIL_MAILSPOOLHOME}\"" \
>> ${WRKSRC}/src/authenticate.h
.endif
diff --git a/mail/procmail/patches/patch-ab b/mail/procmail/patches/patch-ab
index f24eb783a88..bef3f3d76f9 100644
--- a/mail/procmail/patches/patch-ab
+++ b/mail/procmail/patches/patch-ab
@@ -1,10 +1,15 @@
-$NetBSD: patch-ab,v 1.4 1999/04/06 11:48:07 cjs Exp $
+$NetBSD: patch-ab,v 1.5 2001/04/13 04:18:34 kim Exp $
---- config.h~ Fri Feb 26 16:11:54 1999
-+++ config.h Mon Apr 5 23:08:11 1999
-@@ -51,7 +51,7 @@
+--- config.h.orig Tue Aug 22 00:26:34 2000
++++ config.h Fri Apr 13 00:06:57 2001
+@@ -62,10 +62,12 @@
+ list of strings; if unauthorised users use the -f option, an extra
+ >From_ field will be added in the header */
+
++#if 0
#define TRUSTED_IDS {"root","daemon","uucp","mail","x400","network",\
"list","slist","lists","news",0}
++#endif
-/*#define NO_fcntl_LOCK /* uncomment any of these three if you */
+#define NO_fcntl_LOCK /* uncomment any of these three if you */