summaryrefslogtreecommitdiff
path: root/mail/procmail
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1998-02-27 23:11:39 +0000
committertron <tron@pkgsrc.org>1998-02-27 23:11:39 +0000
commitdf3003768d7aabee54a5348c7a0eea264ff14e19 (patch)
tree111e2e6ee7b4767256ccac60cdc69e3a695f8051 /mail/procmail
parent7e3d43d6bb401a8e29bc99d90c2c17e626ecbe6c (diff)
downloadpkgsrc-df3003768d7aabee54a5348c7a0eea264ff14e19.tar.gz
Initial import of FreeBSD's "procmail" port.
Diffstat (limited to 'mail/procmail')
-rw-r--r--mail/procmail/Makefile25
-rw-r--r--mail/procmail/files/md51
-rw-r--r--mail/procmail/patches/patch-aa50
-rw-r--r--mail/procmail/patches/patch-ab44
-rw-r--r--mail/procmail/patches/patch-ac21
-rw-r--r--mail/procmail/patches/patch-ad12
-rw-r--r--mail/procmail/pkg/COMMENT1
-rw-r--r--mail/procmail/pkg/DESCR1
-rw-r--r--mail/procmail/pkg/PLIST10
9 files changed, 165 insertions, 0 deletions
diff --git a/mail/procmail/Makefile b/mail/procmail/Makefile
new file mode 100644
index 00000000000..a169ed05f1b
--- /dev/null
+++ b/mail/procmail/Makefile
@@ -0,0 +1,25 @@
+# New ports collection makefile for: procmail
+# Version required: 3.11pre7
+# Date created: 24 September 1994
+# Whom: adam
+#
+# $FreeBSD Id: Makefile,v 1.24 1997/05/14 14:40:34 ache Exp
+#
+
+DISTNAME= procmail-3.11pre7
+PKGNAME= procmail-3.11p7
+CATEGORIES= mail
+MASTER_SITES= ftp://ftp.informatik.rwth-aachen.de/pub/packages/procmail/
+INSTALL_TARGET= install-suid install.man
+
+MAINTAINER= ache@FreeBSD.ORG
+
+# It asks for list af directories to do test for file locking
+# (defaults to /tmp and ".", so return should suffice in most cases).
+.if !defined(PACKAGE_BUILDING) # handled in patch-aa
+IS_INTERACTIVE= yes
+.endif
+MAN1= procmail.1 formail.1 lockfile.1
+MAN5= procmailex.5 procmailrc.5 procmailsc.5
+
+.include <bsd.port.mk>
diff --git a/mail/procmail/files/md5 b/mail/procmail/files/md5
new file mode 100644
index 00000000000..7b90a016cde
--- /dev/null
+++ b/mail/procmail/files/md5
@@ -0,0 +1 @@
+MD5 (procmail-3.11pre7.tar.gz) = 065a9da6a2198d9c6d47616b2adf2315
diff --git a/mail/procmail/patches/patch-aa b/mail/procmail/patches/patch-aa
new file mode 100644
index 00000000000..6258b85dcd3
--- /dev/null
+++ b/mail/procmail/patches/patch-aa
@@ -0,0 +1,50 @@
+*** Makefile.orig Mon Apr 28 04:27:40 1997
+--- Makefile Wed May 14 18:16:50 1997
+***************
+*** 2,8 ****
+
+ # BASENAME should point to where the whole lot will be installed
+ # change BASENAME to your home directory if need be
+! BASENAME = /usr
+ # For display in the man pages
+ VISIBLE_BASENAME= $(BASENAME)
+
+--- 2,8 ----
+
+ # BASENAME should point to where the whole lot will be installed
+ # change BASENAME to your home directory if need be
+! BASENAME = $(PREFIX)
+ # For display in the man pages
+ VISIBLE_BASENAME= $(BASENAME)
+
+***************
+*** 53,59 ****
+--- 53,63 ----
+
+ # Makefile.0 - mark, don't (re)move this, a sed script needs it
+
++ .if defined(PACKAGE_BUILDING)
++ LOCKINGTEST=/tmp .
++ .else
+ LOCKINGTEST=__defaults__
++ .endif
+
+ #LOCKINGTEST=/tmp . # Uncomment and add any directories you see fit.
+ # If LOCKINGTEST is defined, autoconf will NOT
+***************
+*** 86,92 ****
+ #-Wimplicit -Wshadow -Wid-clash-6 #-Wuninitialized
+
+ # The place to put your favourite extra cc flag
+! CFLAGS0 = -O #$(GCC_WARNINGS)
+ LDFLAGS0= -s
+ # Read my libs :-)
+ LIBS=
+--- 90,96 ----
+ #-Wimplicit -Wshadow -Wid-clash-6 #-Wuninitialized
+
+ # The place to put your favourite extra cc flag
+! CFLAGS0 = #-O #$(GCC_WARNINGS)
+ LDFLAGS0= -s
+ # Read my libs :-)
+ LIBS=
diff --git a/mail/procmail/patches/patch-ab b/mail/procmail/patches/patch-ab
new file mode 100644
index 00000000000..be45797a7c3
--- /dev/null
+++ b/mail/procmail/patches/patch-ab
@@ -0,0 +1,44 @@
+*** config.h.bak Mon Oct 30 05:09:07 1995
+--- config.h Wed Aug 28 17:10:52 1996
+***************
+*** 45,51 ****
+ #define TRUSTED_IDS {"root","daemon","uucp","mail","x400","network",\
+ "list","slist","lists","news",0}
+
+! /*#define NO_fcntl_LOCK /* uncomment any of these three if you */
+ /*#define NO_lockf_LOCK /* definitely do not want procmail to make */
+ /*#define NO_flock_LOCK /* use of those kernel-locking methods */
+
+--- 45,51 ----
+ #define TRUSTED_IDS {"root","daemon","uucp","mail","x400","network",\
+ "list","slist","lists","news",0}
+
+! #define NO_fcntl_LOCK /* uncomment any of these three if you */
+ /*#define NO_lockf_LOCK /* definitely do not want procmail to make */
+ /*#define NO_flock_LOCK /* use of those kernel-locking methods */
+
+***************
+*** 69,79 ****
+ is not found, maildelivery will proceed as normal to the default
+ system mailbox. */
+
+! #define ETCRC "/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
+ 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
+--- 69,79 ----
+ is not found, maildelivery will proceed as normal to the default
+ system mailbox. */
+
+! #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 "/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/patches/patch-ac b/mail/procmail/patches/patch-ac
new file mode 100644
index 00000000000..8c4b0761768
--- /dev/null
+++ b/mail/procmail/patches/patch-ac
@@ -0,0 +1,21 @@
+*** initmake.bak Thu Apr 3 05:58:37 1997
+--- initmake Wed May 14 18:27:56 1997
+***************
+*** 380,387 ****
+ test -z "$MAKE" && echo "MAKE = make" >>_Makefile
+ test a"$cc" != a"$CC" && echo "CC = $cc" >>_Makefile
+
+! echo "CFLAGS = \$(CFLAGS1)$CFLAGS" >>_Makefile
+! echo "LDFLAGS = \$(LDFLAGS1)$LDFLAGS" >>_Makefile
+ echo >>_Makefile
+
+ MANSS=""
+--- 380,387 ----
+ test -z "$MAKE" && echo "MAKE = make" >>_Makefile
+ test a"$cc" != a"$CC" && echo "CC = $cc" >>_Makefile
+
+! echo "CFLAGS += \$(CFLAGS1)$CFLAGS" >>_Makefile
+! echo "LDFLAGS += \$(LDFLAGS1)$LDFLAGS" >>_Makefile
+ echo >>_Makefile
+
+ MANSS=""
diff --git a/mail/procmail/patches/patch-ad b/mail/procmail/patches/patch-ad
new file mode 100644
index 00000000000..c73f9f9373c
--- /dev/null
+++ b/mail/procmail/patches/patch-ad
@@ -0,0 +1,12 @@
+*** src/recommend.c.bak Wed Apr 2 07:15:45 1997
+--- src/recommend.c Tue Jun 17 21:48:49 1997
+***************
+*** 23,29 ****
+ { fprintf(stderr,"Please run this program via 'make recommend'\n");
+ return EX_USAGE;
+ }
+- strchr(mailspooldir,'\0')[-1]='\0'; /* strip last character */
+ for(p=checkf;*p;p++)
+ if(!stat(*p,&stbuf)&&stbuf.st_mode&S_ISGID)
+ { if(stbuf.st_mode&S_ISGID)
+--- 23,28 ----
diff --git a/mail/procmail/pkg/COMMENT b/mail/procmail/pkg/COMMENT
new file mode 100644
index 00000000000..41a3421e707
--- /dev/null
+++ b/mail/procmail/pkg/COMMENT
@@ -0,0 +1 @@
+A local mail delivery agent.
diff --git a/mail/procmail/pkg/DESCR b/mail/procmail/pkg/DESCR
new file mode 100644
index 00000000000..832c7d2f22e
--- /dev/null
+++ b/mail/procmail/pkg/DESCR
@@ -0,0 +1 @@
+This is ProcMail, the ultimate incoming mail processor.
diff --git a/mail/procmail/pkg/PLIST b/mail/procmail/pkg/PLIST
new file mode 100644
index 00000000000..b7532ae9ca8
--- /dev/null
+++ b/mail/procmail/pkg/PLIST
@@ -0,0 +1,10 @@
+bin/procmail
+bin/formail
+bin/lockfile
+bin/mailstat
+man/man1/procmail.1.gz
+man/man1/formail.1.gz
+man/man1/lockfile.1.gz
+man/man5/procmailex.5.gz
+man/man5/procmailrc.5.gz
+man/man5/procmailsc.5.gz