summaryrefslogtreecommitdiff
path: root/mail/procmail/files
diff options
context:
space:
mode:
Diffstat (limited to 'mail/procmail/files')
-rw-r--r--mail/procmail/files/patch-config.h4
-rw-r--r--mail/procmail/files/patch-src-autoconf12
2 files changed, 14 insertions, 2 deletions
diff --git a/mail/procmail/files/patch-config.h b/mail/procmail/files/patch-config.h
index b5bc1b48f429..7c54253b1c1b 100644
--- a/mail/procmail/files/patch-config.h
+++ b/mail/procmail/files/patch-config.h
@@ -26,12 +26,12 @@
system mailbox. This also must be an absolute path */
-#define ETCRC "/etc/procmailrc" /* optional global procmailrc startup
-+#define ETCRC "%%PREFIX%%/etc/procmailrc" /* optional global procmailrc startup
++#define ETCRC "/usr/local/etc/procmailrc" /* optional global procmailrc startup
file (will only be read if procmail
is started with no rcfile on the command line). */
-#define ETCRCS "/etc/procmailrcs/" /* optional trusted path prefix for
-+#define ETCRCS "%%PREFIX%%/etc/procmailrcs/" /* optional trusted path prefix for
++#define ETCRCS "/usr/local/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
diff --git a/mail/procmail/files/patch-src-autoconf b/mail/procmail/files/patch-src-autoconf
index ef615cb599ba..41ab653bd40b 100644
--- a/mail/procmail/files/patch-src-autoconf
+++ b/mail/procmail/files/patch-src-autoconf
@@ -18,3 +18,15 @@
if $MAKE _autotst >$DEVNULL 2>&1
test -f _autotst
then
+@@ -1491,6 +1493,11 @@
+ fi
+ done
+
++case ":$lpath:" in
++ *:/usr/local/bin:*) ;;
++ *) lpath="$lpath:/usr/local/bin" ;;
++esac
++
+ echo "#define defPATH \"PATH=\$HOME/bin:$lpath\"" >>$ACONF
+ echo "#define defSPATH \"PATH=$lpath\"" >>$ACONF
+