aboutsummaryrefslogtreecommitdiff
path: root/mail/postfix-gps-devel
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2004-12-23 07:08:17 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2004-12-23 07:08:17 +0000
commit86a63fb00d4af3cd9ce2486c1f2b3819b1f29f00 (patch)
treefc250a8b98531880f4a7da1499e6ae8536793285 /mail/postfix-gps-devel
parent9e19888e49500336d9aada202888274e79479309 (diff)
downloadports-86a63fb00d4af3cd9ce2486c1f2b3819b1f29f00.tar.gz
ports-86a63fb00d4af3cd9ce2486c1f2b3819b1f29f00.zip
Notes
Diffstat (limited to 'mail/postfix-gps-devel')
-rw-r--r--mail/postfix-gps-devel/Makefile44
-rw-r--r--mail/postfix-gps-devel/distinfo4
-rw-r--r--mail/postfix-gps-devel/files/patch-configure.in12
-rw-r--r--mail/postfix-gps-devel/files/patch-src::Makefile.am9
-rw-r--r--mail/postfix-gps-devel/pkg-descr11
-rw-r--r--mail/postfix-gps-devel/pkg-message17
-rw-r--r--mail/postfix-gps-devel/pkg-plist4
7 files changed, 101 insertions, 0 deletions
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
+