aboutsummaryrefslogtreecommitdiff
path: root/mail/milter-greylist-devel
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2005-02-03 18:42:24 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2005-02-03 18:42:24 +0000
commitf3839975da3efb7200ae3b3834df3d79ee67afa6 (patch)
tree461a7a75cf32f8047b244df259d52dc98a6ecce4 /mail/milter-greylist-devel
parent197d3d9a7d0a6166aa63ea732660e5ded3e0ebc9 (diff)
downloadports-f3839975da3efb7200ae3b3834df3d79ee67afa6.tar.gz
ports-f3839975da3efb7200ae3b3834df3d79ee67afa6.zip
Notes
Diffstat (limited to 'mail/milter-greylist-devel')
-rw-r--r--mail/milter-greylist-devel/Makefile56
-rw-r--r--mail/milter-greylist-devel/distinfo2
-rw-r--r--mail/milter-greylist-devel/files/milter-greylist.sh32
-rw-r--r--mail/milter-greylist-devel/files/patch-Makefile.in39
-rw-r--r--mail/milter-greylist-devel/pkg-descr11
-rw-r--r--mail/milter-greylist-devel/pkg-message10
-rw-r--r--mail/milter-greylist-devel/pkg-plist11
7 files changed, 161 insertions, 0 deletions
diff --git a/mail/milter-greylist-devel/Makefile b/mail/milter-greylist-devel/Makefile
new file mode 100644
index 000000000000..65ab8049c1c9
--- /dev/null
+++ b/mail/milter-greylist-devel/Makefile
@@ -0,0 +1,56 @@
+# New ports collection makefile for: milter-greylist-devel
+# Date created: 11 Dec 2004
+# Whom: Cyril Guibourg
+#
+# $FreeBSD$
+#
+
+PORTNAME= milter-greylist
+PORTVERSION= 1.7.5
+CATEGORIES= mail
+MASTER_SITES= ftp://ftp.espci.fr/pub/milter-greylist/
+PKGNAMESUFFIX= -devel
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= aragorn+ports@teaser.fr
+COMMENT= Easy-to-use greylist milter for sendmail (development)
+
+MAN5= greylist.conf.5
+MAN8= milter-greylist.8
+
+GNU_CONFIGURE= yes
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS+= --with-user=smmsp
+
+ALL_TARGET= milter-greylist
+
+USE_RC_SUBR= yes
+RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
+
+CONFLICTS= milter-greylist-[1-9]*.*
+
+post-extract:
+ @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
+ ${FILESDIR}/milter-greylist.sh > ${WRKSRC}/milter-greylist.sh
+
+do-install:
+ @${MKDIR} ${PREFIX}/etc/mail
+ @${INSTALL_PROGRAM} ${WRKSRC}/milter-greylist ${PREFIX}/bin
+ @${INSTALL_MAN} ${WRKSRC}/greylist.conf.5 ${PREFIX}/man/man5
+ @${INSTALL_MAN} ${WRKSRC}/milter-greylist.8 ${PREFIX}/man/man8
+ @${INSTALL_DATA} ${WRKSRC}/greylist.conf \
+ ${PREFIX}/etc/mail/greylist.conf.sample
+ @${INSTALL_SCRIPT} ${WRKSRC}/milter-greylist.sh ${PREFIX}/etc/rc.d/
+
+post-install:
+ @${MKDIR} /var/milter-greylist
+ @${CHOWN} smmsp /var/milter-greylist
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @${MKDIR} ${EXAMPLESDIR}
+ @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/greylist.conf ${EXAMPLESDIR}
+.endif
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/mail/milter-greylist-devel/distinfo b/mail/milter-greylist-devel/distinfo
new file mode 100644
index 000000000000..ab3e1d56aee1
--- /dev/null
+++ b/mail/milter-greylist-devel/distinfo
@@ -0,0 +1,2 @@
+MD5 (milter-greylist-1.7.5.tgz) = b0f0bd40a799b6745226a386d52c03b6
+SIZE (milter-greylist-1.7.5.tgz) = 113031
diff --git a/mail/milter-greylist-devel/files/milter-greylist.sh b/mail/milter-greylist-devel/files/milter-greylist.sh
new file mode 100644
index 000000000000..2bed442fc1d0
--- /dev/null
+++ b/mail/milter-greylist-devel/files/milter-greylist.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+# $FreeBSD: /tmp/pcvs/ports/mail/milter-greylist-devel/files/Attic/milter-greylist.sh,v 1.1 2005-02-03 18:42:24 ume Exp $
+
+# PROVIDE: miltergreylist
+# REQUIRE: LOGIN
+# BEFORE: sendmail
+# KEYWORD: milter-greylist
+
+# Define these miltergreylist_* variables in one of these files:
+# /etc/rc.conf
+# /etc/rc.conf.local
+# /etc/rc.conf.d/miltergreylist
+#
+# DO NOT CHANGE THESE DEFAULT VALUES HERE
+#
+miltergreylist_enable=${miltergreylist_enable-"NO"}
+miltergreylist_runas=${miltergreylist_runas-"smmsp"}
+miltergreylist_pidfile=${miltergreylist_pidfile-"/var/run/milter-greylist.pid"}
+miltergreylist_sockfile=${miltergreylist_sockfile-"/var/milter-greylist/milter-greylist.sock"}
+miltergreylist_cfgfile=${miltergreylist_cfgfile-"%%PREFIX%%/etc/mail/greylist.conf"}
+miltergreylist_flags=${miltergreylist_flags-"-P $miltergreylist_pidfile \
+-f $miltergreylist_cfgfile -p $miltergreylist_sockfile -u $miltergreylist_runas"}
+
+. %%RC_SUBR%%
+
+name="miltergreylist"
+rcvar=`set_rcvar`
+command="%%PREFIX%%/bin/milter-greylist"
+
+load_rc_config $name
+
+run_rc_command "$1"
diff --git a/mail/milter-greylist-devel/files/patch-Makefile.in b/mail/milter-greylist-devel/files/patch-Makefile.in
new file mode 100644
index 000000000000..8ec4d553edb7
--- /dev/null
+++ b/mail/milter-greylist-devel/files/patch-Makefile.in
@@ -0,0 +1,39 @@
+--- Makefile.in.orig Sun Dec 19 09:11:21 2004
++++ Makefile.in Tue Dec 28 14:36:39 2004
+@@ -29,9 +29,9 @@
+ # OF THE POSSIBILITY OF SUCH DAMAGE.
+ #
+
+-CFLAGS= @CFLAGS@ -D_BSD_SOURCE
+-LDFLAGS= @LDFLAGS@
+-LIBS= @LIBS@
++CFLAGS= -O2 -pthread
++LDFLAGS= -pthread
++LIBS= -lmilter
+ prefix= @prefix@
+ exec_prefix= @exec_prefix@
+ SYSCONFDIR= @sysconfdir@
+@@ -40,16 +40,16 @@
+ MANDIR= @mandir@
+ USER= @USER@
+
+-CC= @CC@
+-MKDEP= @MKDEP@
++#CC= @CC@
++#MKDEP= @MKDEP@
+ RM= @RM@
+ MV= @MV@
+-TEST= @TEST@
++#TEST= @TEST@
+ SED= @SED@
+-INSTALL= @INSTALL@
+-LEX= @LEX@
+-YACC= @YACC@
+-TRUE= @TRUE@
++#INSTALL= @INSTALL@
++#LEX= @LEX@
++#YACC= @YACC@
++#TRUE= @TRUE@
+
+ OBJ= milter-greylist.o pending.o sync.o \
+ conf_yacc.o dump_yacc.o conf.o autowhite.o dump.o spf.o acl.o
diff --git a/mail/milter-greylist-devel/pkg-descr b/mail/milter-greylist-devel/pkg-descr
new file mode 100644
index 000000000000..b5154e12e91f
--- /dev/null
+++ b/mail/milter-greylist-devel/pkg-descr
@@ -0,0 +1,11 @@
+This is a port of Emmanuel Dreyfus' milter-greylist.
+
+Grey listing is a wonderful spam filtering technique, which uses a behavior
+trick: spammers never resend a message when they get a temporary error,
+whereas real MTA do. The idea is to refuse any mail on first attempt, and
+accept it after some time has elapsed.
+
+milter-greylist is a stand-alone milter written in C that implement grey
+listing.
+
+WWW: http://hcpnet.free.fr/milter-greylist/
diff --git a/mail/milter-greylist-devel/pkg-message b/mail/milter-greylist-devel/pkg-message
new file mode 100644
index 000000000000..398094ce4230
--- /dev/null
+++ b/mail/milter-greylist-devel/pkg-message
@@ -0,0 +1,10 @@
+===> IMPORTANT NOTE
+
+ A sample configuration file has been installed in ${PREFIX}/etc/mail
+ directory. Copy and edit it to suit your needs before launching
+ milter-greylist.
+
+ To run milter-greylist from startup, add miltergreylist_enable="YES"
+ in your /etc/rc.conf or your /etc/rc.conf.local
+
+ See ${DOCSDIR}/README for operation details.
diff --git a/mail/milter-greylist-devel/pkg-plist b/mail/milter-greylist-devel/pkg-plist
new file mode 100644
index 000000000000..688b0775bd0d
--- /dev/null
+++ b/mail/milter-greylist-devel/pkg-plist
@@ -0,0 +1,11 @@
+bin/milter-greylist
+etc/mail/greylist.conf.sample
+etc/rc.d/milter-greylist.sh
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%EXAMPLESDIR%%/greylist.conf
+@exec /bin/mkdir -p /var/milter-greylist
+@exec /usr/sbin/chown smmsp /var/milter-greylist
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
+@unexec /bin/rmdir %D/etc/mail 2>/dev/null || true
+@unexec [ -f /var/milter-greylist/greylist.db ] || /bin/rmdir /var/milter-greylist || true