diff options
author | edwin <edwin@FreeBSD.org> | 2004-12-23 15:08:17 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2004-12-23 15:08:17 +0800 |
commit | 0d96d3a55a54cd83ecf2d0550062d9c38554bad8 (patch) | |
tree | 5b266b45bdcfed1ef7d5013b7183df15551fdecd /mail | |
parent | db4608cc0aa4491debc397bff28de6dbce1b20c2 (diff) | |
download | freebsd-ports-gnome-0d96d3a55a54cd83ecf2d0550062d9c38554bad8.tar.gz freebsd-ports-gnome-0d96d3a55a54cd83ecf2d0550062d9c38554bad8.tar.zst freebsd-ports-gnome-0d96d3a55a54cd83ecf2d0550062d9c38554bad8.zip |
[NEW PORT]: mail/postfix-gps
This is a shar(1) archive for a new port, postfix-gps, which
implements a database based greylisting add-in for postfix.
PR: ports/71912
Submitted by: Xin LI <delphij@freebsd.org>
Diffstat (limited to 'mail')
-rw-r--r-- | mail/Makefile | 1 | ||||
-rw-r--r-- | mail/postfix-gps-devel/Makefile | 44 | ||||
-rw-r--r-- | mail/postfix-gps-devel/distinfo | 4 | ||||
-rw-r--r-- | mail/postfix-gps-devel/files/patch-configure.in | 12 | ||||
-rw-r--r-- | mail/postfix-gps-devel/files/patch-src::Makefile.am | 9 | ||||
-rw-r--r-- | mail/postfix-gps-devel/pkg-descr | 11 | ||||
-rw-r--r-- | mail/postfix-gps-devel/pkg-message | 17 | ||||
-rw-r--r-- | mail/postfix-gps-devel/pkg-plist | 4 | ||||
-rw-r--r-- | mail/postfix-gps/Makefile | 44 | ||||
-rw-r--r-- | mail/postfix-gps/distinfo | 4 | ||||
-rw-r--r-- | mail/postfix-gps/files/patch-configure.in | 12 | ||||
-rw-r--r-- | mail/postfix-gps/files/patch-src::Makefile.am | 9 | ||||
-rw-r--r-- | mail/postfix-gps/pkg-descr | 11 | ||||
-rw-r--r-- | mail/postfix-gps/pkg-message | 17 | ||||
-rw-r--r-- | mail/postfix-gps/pkg-plist | 4 |
15 files changed, 203 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile index 66a5a2f40c92..e6923d19e304 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -336,6 +336,7 @@ SUBDIR += postfinger SUBDIR += postfix SUBDIR += postfix-current + SUBDIR += postfix-gps SUBDIR += postfix1 SUBDIR += postfixadmin SUBDIR += postgrey diff --git a/mail/postfix-gps-devel/Makefile b/mail/postfix-gps-devel/Makefile new file mode 100644 index 000000000000..8c48735e4bdf --- /dev/null +++ b/mail/postfix-gps-devel/Makefile @@ -0,0 +1,44 @@ +# New ports collection makefile for: postfix-gps +# Date created: 2 September 2004 +# Whom: Xin LI <delphij@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= gps +PORTVERSION= 0.9 +CATEGORIES= mail security +MASTER_SITES= http://mimo.gn.apc.org/gps/ +PKGNAMEPREFIX= postfix- +DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \ + ${SCRIPT_FILES} +EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} + +MAINTAINER= delphij@FreeBSD.org +COMMENT= Greylist Policy Service for postfix + +LIB_DEPENDS= dbi.0:${PORTSDIR}/databases/libdbi +RUN_DEPENDS= ${LOCALBASE}/lib/dbd:${PORTSDIR}/databases/libdbi-drivers + +SCRIPT_FILES= gps-maintain.pl + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + +USE_AUTOCONF_VER= 259 +USE_AUTOMAKE_VER= 19 +USE_GCC= 3.3 +CONFIGURE_ARGS= --bindir=${PREFIX}/libexec --includedir=${PREFIX}/include +CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${PREFIX}/include" \ + CXXFLAGS="${CXXFLAGS} -I${PREFIX}/include" \ + LDFLAGS="${LDFLAGS} -L${PREFIX}/lib" + +pre-configure: + @cd ${WRKSRC} && ${ACLOCAL} +post-install: + @${INSTALL_DATA} ${WRKSRC}/etc/gps.conf ${PREFIX}/etc/gps.conf-dist +.for f in ${SCRIPT_FILES} + @${INSTALL_SCRIPT} ${_DISTDIR}/${f} ${PREFIX}/libexec +.endfor + @${PAGER} pkg-message + +.include <bsd.port.mk> diff --git a/mail/postfix-gps-devel/distinfo b/mail/postfix-gps-devel/distinfo new file mode 100644 index 000000000000..f88b77ba7513 --- /dev/null +++ b/mail/postfix-gps-devel/distinfo @@ -0,0 +1,4 @@ +MD5 (gps-0.9.tar.gz) = a5ede393225b799a855fd91e5d017c57 +SIZE (gps-0.9.tar.gz) = 321568 +MD5 (gps-maintain.pl) = e42d47d0b093d54277de826f24ccb1bd +SIZE (gps-maintain.pl) = 3502 diff --git a/mail/postfix-gps-devel/files/patch-configure.in b/mail/postfix-gps-devel/files/patch-configure.in new file mode 100644 index 000000000000..9b61221091ba --- /dev/null +++ b/mail/postfix-gps-devel/files/patch-configure.in @@ -0,0 +1,12 @@ +--- configure.in.orig Fri Sep 17 07:55:55 2004 ++++ configure.in Mon Sep 20 01:48:31 2004 +@@ -20,9 +20,6 @@ + + AC_LANG_CPLUSPLUS + AC_PROG_CXX +-AM_PROG_LIBTOOL +-AC_PROG_LD +-AM_PROG_LD + dnl AC_CHECK_LIB(dbi, libdbi) + + AC_HAVE_HEADERS(syslog.h) diff --git a/mail/postfix-gps-devel/files/patch-src::Makefile.am b/mail/postfix-gps-devel/files/patch-src::Makefile.am new file mode 100644 index 000000000000..f70a0fe257a9 --- /dev/null +++ b/mail/postfix-gps-devel/files/patch-src::Makefile.am @@ -0,0 +1,9 @@ +--- src/Makefile.am.orig Wed Sep 15 05:25:25 2004 ++++ src/Makefile.am Mon Sep 20 01:49:53 2004 +@@ -7,5 +7,5 @@ + # the library search path. + gps_LDFLAGS = $(all_libraries) + noinst_HEADERS = configreader.h db.h read.h triplet.h defs.h strtrim.h cfg.h wlmodule.h wldb.h tmplwlmod.h dbdefs.h doxygen.h wlcacheddb.h dbiquote.h +-gps_LDADD = -ldbi -ldl ++gps_LDADD = -ldbi + METASOURCES = AUTO diff --git a/mail/postfix-gps-devel/pkg-descr b/mail/postfix-gps-devel/pkg-descr new file mode 100644 index 000000000000..03ce142dab64 --- /dev/null +++ b/mail/postfix-gps-devel/pkg-descr @@ -0,0 +1,11 @@ +This program is an implementation of a greylist policy service for +postfix (2.1.0 and later). Greylisting is a concept to reduce the +amount of UCE ('spam') by technical means. Tests on production +systems show that greylisting is hugely effective. + +Read more about greylisting on: +WWW: http://www.greylisting.org and +WWW: http://projects.puremagic.com/greylisting/whitepaper.html + +Also, please consult homepage of this program: +WWW: http://mimo.gn.apc.org/gps/ diff --git a/mail/postfix-gps-devel/pkg-message b/mail/postfix-gps-devel/pkg-message new file mode 100644 index 000000000000..561c439a3950 --- /dev/null +++ b/mail/postfix-gps-devel/pkg-message @@ -0,0 +1,17 @@ +======================================================================== +Configuration Instructions + +You need to create a database for greylisting manually, and a user for +this, too. Additionally, please copy the gps.conf-dist found in your +local etc directory. + +After you have all these done, modify the postfix master.cf and include +gps as policy server. + +Also, you may want to include the following line into your crontab so +system will automatically do daily cleanup of the greylist table: + +27 * * * * /usr/local/libexec/gps-maintain.pl -delete -eq 0 -age 86400 /usr/local/etc/gps.conf +55 3 * * * /usr/local/libexec/gps-maintain.pl -delete -age 3110400 /usr/local/etc/gps.conf +======================================================================== + diff --git a/mail/postfix-gps-devel/pkg-plist b/mail/postfix-gps-devel/pkg-plist new file mode 100644 index 000000000000..561afea0e194 --- /dev/null +++ b/mail/postfix-gps-devel/pkg-plist @@ -0,0 +1,4 @@ +etc/gps.conf-dist +libexec/gps +libexec/gps-maintain.pl + diff --git a/mail/postfix-gps/Makefile b/mail/postfix-gps/Makefile new file mode 100644 index 000000000000..8c48735e4bdf --- /dev/null +++ b/mail/postfix-gps/Makefile @@ -0,0 +1,44 @@ +# New ports collection makefile for: postfix-gps +# Date created: 2 September 2004 +# Whom: Xin LI <delphij@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= gps +PORTVERSION= 0.9 +CATEGORIES= mail security +MASTER_SITES= http://mimo.gn.apc.org/gps/ +PKGNAMEPREFIX= postfix- +DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \ + ${SCRIPT_FILES} +EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} + +MAINTAINER= delphij@FreeBSD.org +COMMENT= Greylist Policy Service for postfix + +LIB_DEPENDS= dbi.0:${PORTSDIR}/databases/libdbi +RUN_DEPENDS= ${LOCALBASE}/lib/dbd:${PORTSDIR}/databases/libdbi-drivers + +SCRIPT_FILES= gps-maintain.pl + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + +USE_AUTOCONF_VER= 259 +USE_AUTOMAKE_VER= 19 +USE_GCC= 3.3 +CONFIGURE_ARGS= --bindir=${PREFIX}/libexec --includedir=${PREFIX}/include +CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${PREFIX}/include" \ + CXXFLAGS="${CXXFLAGS} -I${PREFIX}/include" \ + LDFLAGS="${LDFLAGS} -L${PREFIX}/lib" + +pre-configure: + @cd ${WRKSRC} && ${ACLOCAL} +post-install: + @${INSTALL_DATA} ${WRKSRC}/etc/gps.conf ${PREFIX}/etc/gps.conf-dist +.for f in ${SCRIPT_FILES} + @${INSTALL_SCRIPT} ${_DISTDIR}/${f} ${PREFIX}/libexec +.endfor + @${PAGER} pkg-message + +.include <bsd.port.mk> diff --git a/mail/postfix-gps/distinfo b/mail/postfix-gps/distinfo new file mode 100644 index 000000000000..f88b77ba7513 --- /dev/null +++ b/mail/postfix-gps/distinfo @@ -0,0 +1,4 @@ +MD5 (gps-0.9.tar.gz) = a5ede393225b799a855fd91e5d017c57 +SIZE (gps-0.9.tar.gz) = 321568 +MD5 (gps-maintain.pl) = e42d47d0b093d54277de826f24ccb1bd +SIZE (gps-maintain.pl) = 3502 diff --git a/mail/postfix-gps/files/patch-configure.in b/mail/postfix-gps/files/patch-configure.in new file mode 100644 index 000000000000..9b61221091ba --- /dev/null +++ b/mail/postfix-gps/files/patch-configure.in @@ -0,0 +1,12 @@ +--- configure.in.orig Fri Sep 17 07:55:55 2004 ++++ configure.in Mon Sep 20 01:48:31 2004 +@@ -20,9 +20,6 @@ + + AC_LANG_CPLUSPLUS + AC_PROG_CXX +-AM_PROG_LIBTOOL +-AC_PROG_LD +-AM_PROG_LD + dnl AC_CHECK_LIB(dbi, libdbi) + + AC_HAVE_HEADERS(syslog.h) diff --git a/mail/postfix-gps/files/patch-src::Makefile.am b/mail/postfix-gps/files/patch-src::Makefile.am new file mode 100644 index 000000000000..f70a0fe257a9 --- /dev/null +++ b/mail/postfix-gps/files/patch-src::Makefile.am @@ -0,0 +1,9 @@ +--- src/Makefile.am.orig Wed Sep 15 05:25:25 2004 ++++ src/Makefile.am Mon Sep 20 01:49:53 2004 +@@ -7,5 +7,5 @@ + # the library search path. + gps_LDFLAGS = $(all_libraries) + noinst_HEADERS = configreader.h db.h read.h triplet.h defs.h strtrim.h cfg.h wlmodule.h wldb.h tmplwlmod.h dbdefs.h doxygen.h wlcacheddb.h dbiquote.h +-gps_LDADD = -ldbi -ldl ++gps_LDADD = -ldbi + METASOURCES = AUTO diff --git a/mail/postfix-gps/pkg-descr b/mail/postfix-gps/pkg-descr new file mode 100644 index 000000000000..03ce142dab64 --- /dev/null +++ b/mail/postfix-gps/pkg-descr @@ -0,0 +1,11 @@ +This program is an implementation of a greylist policy service for +postfix (2.1.0 and later). Greylisting is a concept to reduce the +amount of UCE ('spam') by technical means. Tests on production +systems show that greylisting is hugely effective. + +Read more about greylisting on: +WWW: http://www.greylisting.org and +WWW: http://projects.puremagic.com/greylisting/whitepaper.html + +Also, please consult homepage of this program: +WWW: http://mimo.gn.apc.org/gps/ diff --git a/mail/postfix-gps/pkg-message b/mail/postfix-gps/pkg-message new file mode 100644 index 000000000000..561c439a3950 --- /dev/null +++ b/mail/postfix-gps/pkg-message @@ -0,0 +1,17 @@ +======================================================================== +Configuration Instructions + +You need to create a database for greylisting manually, and a user for +this, too. Additionally, please copy the gps.conf-dist found in your +local etc directory. + +After you have all these done, modify the postfix master.cf and include +gps as policy server. + +Also, you may want to include the following line into your crontab so +system will automatically do daily cleanup of the greylist table: + +27 * * * * /usr/local/libexec/gps-maintain.pl -delete -eq 0 -age 86400 /usr/local/etc/gps.conf +55 3 * * * /usr/local/libexec/gps-maintain.pl -delete -age 3110400 /usr/local/etc/gps.conf +======================================================================== + diff --git a/mail/postfix-gps/pkg-plist b/mail/postfix-gps/pkg-plist new file mode 100644 index 000000000000..561afea0e194 --- /dev/null +++ b/mail/postfix-gps/pkg-plist @@ -0,0 +1,4 @@ +etc/gps.conf-dist +libexec/gps +libexec/gps-maintain.pl + |