diff options
author | manu <manu> | 2003-10-27 17:57:33 +0000 |
---|---|---|
committer | manu <manu> | 2003-10-27 17:57:33 +0000 |
commit | ccde186bc2e51cfed5292f0a65a884a1db745dbf (patch) | |
tree | 403efe2f2c219a5c2af99e576f5133411cf351e1 /mail | |
parent | badea7ebade5c6266c8b5e597e890c8b6203e6db (diff) | |
download | pkgsrc-ccde186bc2e51cfed5292f0a65a884a1db745dbf.tar.gz |
Milter-sender is a real-time sender address validation milter for sendmail
Diffstat (limited to 'mail')
-rw-r--r-- | mail/milter-sender/DESCR | 0 | ||||
-rw-r--r-- | mail/milter-sender/Makefile | 28 | ||||
-rw-r--r-- | mail/milter-sender/PLIST | 3 | ||||
-rw-r--r-- | mail/milter-sender/distinfo | 10 | ||||
-rw-r--r-- | mail/milter-sender/patches/patch-aa | 25 | ||||
-rw-r--r-- | mail/milter-sender/patches/patch-ab | 74 | ||||
-rw-r--r-- | mail/milter-sender/patches/patch-ac | 14 | ||||
-rw-r--r-- | mail/milter-sender/patches/patch-ad | 14 |
8 files changed, 168 insertions, 0 deletions
diff --git a/mail/milter-sender/DESCR b/mail/milter-sender/DESCR new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/mail/milter-sender/DESCR diff --git a/mail/milter-sender/Makefile b/mail/milter-sender/Makefile new file mode 100644 index 00000000000..0e979be17c3 --- /dev/null +++ b/mail/milter-sender/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/10/27 17:57:33 manu Exp $ +# + +DISTNAME= milter-sender-0.41 +DISTFILES= libsnert-1.23.tgz milter-sender-0.41.tgz +CATEGORIES= mail +MASTER_SITES= http://www.snert.com/Software/download/ + +MAINTAINER= manu@netbsd.org +HOMEPAGE= http://www.snert.com/Software/download/ +COMMENT= Real-time sender's e-mail validity check + +WRKSRC= ${WRKDIR}/com/snert/src/milter-sender +GNU_CONFIGURE= yes +MAKEFILE= makefile +#CFLAGS+= -I${WRKDIR} +USE_BUILDLINK2= yes + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/milter-sender.sh ${PREFIX}/etc/rc.d + ${INSTALL_PROGRAM} ${WRKSRC}/milter-sender ${PREFIX}/sbin + ${INSTALL} -d -o smmsp -g smmsp /var/milter-sender + +.include "../../mail/libmilter/buildlink2.mk" +.include "../../mail/libsnert/buildlink2.mk" +.include "../../databases/db3/buildlink2.mk" +.include "../../mk/pthread.buildlink2.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/mail/milter-sender/PLIST b/mail/milter-sender/PLIST new file mode 100644 index 00000000000..e79ebdfd72a --- /dev/null +++ b/mail/milter-sender/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/10/27 17:57:33 manu Exp $ +sbin/milter-sender +etc/rc.d/milter-sender.sh diff --git a/mail/milter-sender/distinfo b/mail/milter-sender/distinfo new file mode 100644 index 00000000000..35e25cf393c --- /dev/null +++ b/mail/milter-sender/distinfo @@ -0,0 +1,10 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/10/27 17:57:33 manu Exp $ + +SHA1 (libsnert-1.23.tgz) = 3bfdba152d1dbdd1da850809c2bb998cd272b819 +Size (libsnert-1.23.tgz) = 155678 bytes +SHA1 (milter-sender-0.41.tgz) = b2f9a63f6cab521fd6b934848a6de959b7e546b0 +Size (milter-sender-0.41.tgz) = 217042 bytes +SHA1 (patch-aa) = 50eb8ae3c3d4b449628785b8fb1dea6c5635b0e2 +SHA1 (patch-ab) = 34e5bd83b605bfc2b6292f14b8062b9380616a17 +SHA1 (patch-ac) = 3fb844d0937706ca8eb0d87d02a76543ba9a19da +SHA1 (patch-ad) = e47965c840b198dee280f005d27c93f3d92c292f diff --git a/mail/milter-sender/patches/patch-aa b/mail/milter-sender/patches/patch-aa new file mode 100644 index 00000000000..05151625c64 --- /dev/null +++ b/mail/milter-sender/patches/patch-aa @@ -0,0 +1,25 @@ +$NetBSD: patch-aa,v 1.1.1.1 2003/10/27 17:57:33 manu Exp $ +--- makefile.in.orig Tue Oct 21 17:56:46 2003 ++++ makefile.in Thu Oct 23 16:22:14 2003 +@@ -22,9 +22,9 @@ + + prefix = @prefix@ + exec_prefix = @exec_prefix@ + BINDIR = @sbindir@ +-STATEDIR = @localstatedir@/lib/$(MILTER) ++STATEDIR = @localstatedir@/$(MILTER) + STARTUP_SCRIPT = @STARTUP_SCRIPT@/$(MILTER) + + ######################################################################## + ### No further configuration beyond this point. +@@ -50,9 +50,9 @@ + CC_E = @CC_E@ + CC_O = @CC_O@ + CFLAGS = @CFLAGS@ + LDFLAGS = @LDFLAGS@ +-LIBS = @LIBSNERT@ @LIBS@ ++LIBS = @LIBSNERT@ @LIBS@ -lmilter -lpthread + + XARGSI = @XARGSI@ + RANLIB = @RANLIB@ + ARCHIVE = @ARCHIVE@ diff --git a/mail/milter-sender/patches/patch-ab b/mail/milter-sender/patches/patch-ab new file mode 100644 index 00000000000..38b9b968983 --- /dev/null +++ b/mail/milter-sender/patches/patch-ab @@ -0,0 +1,74 @@ +$NetBSD: patch-ab,v 1.1.1.1 2003/10/27 17:57:33 manu Exp $ +--- milter-sender.sh.in.orig Thu Oct 23 16:31:48 2003 ++++ milter-sender.sh.in Thu Oct 23 16:32:53 2003 +@@ -12,10 +12,10 @@ + + prefix="@prefix@" + exec_prefix="@exec_prefix@" + PROGRAM="@sbindir@/@PACKAGE_NAME@" +-OPTIONS="-d 127.0.0.1 -s /etc/mail/sendmail.cf -R -u 3 unix:@localstatedir@/lib/@PACKAGE_NAME@/socket" +-REQUIRED_DIR="@localstatedir@/lib/@PACKAGE_NAME@" ++OPTIONS="-d 127.0.0.1 -s /etc/mail/sendmail.cf -R -u 3 unix:@localstatedir@/@PACKAGE_NAME@/socket" ++REQUIRED_DIR="@localstatedir@/@PACKAGE_NAME@" + + FG_RED='\033[1;31m' + FG_GREEN='\033[1;32m' + FG_WHITE='\033[0;37m' +@@ -71,9 +71,9 @@ + printf "Starting %s" $NAME + + pid=`getpid "$PROGRAM"` + if [ X"$pid" != X ]; then +- printf '\r\033[71C['${FG_RED}'FAILED'${FG_NORMAL}']\n' ++ printf '\n' + return + fi + + # Make sure the old socket has been removed, especially for FreeBSD. +@@ -84,13 +84,13 @@ + sh -c "$PROGRAM $OPTIONS &" + + pid=`getpid "$PROGRAM"` + if [ X"$pid" = X ]; then +- printf '\r\033[71C['${FG_RED}'FAILED'${FG_NORMAL}']\n' ++ printf '\n' + return + fi + +- printf '\r\033[71C['${FG_GREEN}' OK '${FG_NORMAL}']\n' ++ #printf '\n' + } + + stop() + { +@@ -108,14 +108,14 @@ + + sleep 2 + pid=`getpid "$PROGRAM"` + if [ X"$pid" != X ]; then +- printf '\r\033[71C['${FG_RED}'FAILED'${FG_NORMAL}']\n' ++ printf '\n' + return + fi + fi + +- printf '\r\033[71C['${FG_GREEN}' OK '${FG_NORMAL}']\n' ++ printf '\n' + } + + case "$1" in + restart) +@@ -130,11 +130,11 @@ + ;; + status) + pid=`getpid "$PROGRAM"` + if [ X"$pid" != X ]; then +- printf '\r\033[72C['${FG_GREEN}${pid}${FG_NORMAL}']\n' ++ printf '\n' + else +- printf '\r\033[70C['${FG_RED}'STOPPED'${FG_NORMAL}']\n' ++ printf '\n' + fi + ;; + *) + printf 'Usage: %s {start|stop|restart|status}\n' $0 diff --git a/mail/milter-sender/patches/patch-ac b/mail/milter-sender/patches/patch-ac new file mode 100644 index 00000000000..eb0e843754c --- /dev/null +++ b/mail/milter-sender/patches/patch-ac @@ -0,0 +1,14 @@ +$NetBSD: patch-ac,v 1.1.1.1 2003/10/27 17:57:33 manu Exp $ +--- configure.orig Thu Oct 23 17:12:05 2003 ++++ configure Thu Oct 23 17:12:14 2003 +@@ -1352,9 +1352,9 @@ + statedir="$localstatedir/lib/$PACKAGE_NAME" + statedir=$statedir + + cat >>confdefs.h <<_ACEOF +-#define STATEDIR "$localstatedir/lib/$PACKAGE_NAME" ++#define STATEDIR "$localstatedir/$PACKAGE_NAME" + _ACEOF + + + ####################################################################### diff --git a/mail/milter-sender/patches/patch-ad b/mail/milter-sender/patches/patch-ad new file mode 100644 index 00000000000..40e8b7d4ccd --- /dev/null +++ b/mail/milter-sender/patches/patch-ad @@ -0,0 +1,14 @@ +$NetBSD: patch-ad,v 1.1.1.1 2003/10/27 17:57:33 manu Exp $ +--- milter-sender.c.orig Thu Oct 23 17:21:35 2003 ++++ milter-sender.c Thu Oct 23 17:21:44 2003 +@@ -72,9 +72,9 @@ + /* + * Where to keep state information. + */ + #ifndef STATEDIR +-#define STATEDIR "/var/lib/milter-sender" ++#define STATEDIR "/var/milter-sender" + #endif + + /* + * For when the mutex is a file lock. |