ports/71338: [NEW PORT]: postfix-gps
Xin LI
delphij at frontfree.net
Fri Sep 3 14:20:21 UTC 2004
>Number: 71338
>Category: ports
>Synopsis: [NEW PORT]: postfix-gps
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Sep 03 14:20:21 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Xin LI
>Release: FreeBSD 5.2-delphij i386
>Organization:
The FreeBSD Simplified Chinese Project
>Environment:
System: FreeBSD beastie.frontfree.net 5.2-delphij FreeBSD 5.2-delphij #0: Tue Aug 17 14:22:25 CST 2004 delphij at beastie.frontfree.net:/usr/obj/usr/src/sys/BEASTIE i386
>Description:
postfix-gps is an implementation of postfix greylist policy server,
which can use MySQL or PostgreSQL as backends.
>How-To-Repeat:
>Fix:
--- postfix-gps begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# postfix-gps
# postfix-gps/pkg-plist
# postfix-gps/pkg-descr
# postfix-gps/distinfo
# postfix-gps/Makefile
# postfix-gps/files
# postfix-gps/files/patch-configure.in
# postfix-gps/files/patch-src::Makefile.am
# postfix-gps/pkg-message
#
echo c - postfix-gps
mkdir -p postfix-gps > /dev/null 2>&1
echo x - postfix-gps/pkg-plist
sed 's/^X//' >postfix-gps/pkg-plist << 'END-of-postfix-gps/pkg-plist'
Xetc/gps.conf-dist
Xlibexec/gps
Xlibexec/gps-maintain.pl
X
END-of-postfix-gps/pkg-plist
echo x - postfix-gps/pkg-descr
sed 's/^X//' >postfix-gps/pkg-descr << 'END-of-postfix-gps/pkg-descr'
XThis program is an implementation of a greylist policy service for
Xpostfix (2.1.0 and later). Greylisting is a concept to reduce the
Xamount of UCE ('spam') by technical means. Tests on production
Xsystems show that greylisting is hugely effective.
X
XRead more about greylisting on:
XWWW: http://www.greylisting.org and
XWWW: http://projects.puremagic.com/greylisting/whitepaper.html
X
XAlso, please consult homepage of this program:
XWWW: http://mimo.gn.apc.org/gps/
END-of-postfix-gps/pkg-descr
echo x - postfix-gps/distinfo
sed 's/^X//' >postfix-gps/distinfo << 'END-of-postfix-gps/distinfo'
XMD5 (gps-0.7b.tar.gz) = 036a44a8f7c5ae1a144dc8587265107e
XSIZE (gps-0.7b.tar.gz) = 211795
XMD5 (gps-maintain.pl) = d6c57197a516a7a4bc91362a6606c052
XSIZE (gps-maintain.pl) = 3321
END-of-postfix-gps/distinfo
echo x - postfix-gps/Makefile
sed 's/^X//' >postfix-gps/Makefile << 'END-of-postfix-gps/Makefile'
X# New ports collection makefile for: postfix-gps
X# Date created: 2 September 2004
X# Whom: Xin LI <delphij at FreeBSD.org.cn>
X#
X# $FreeBSD$
X#
X
XPORTNAME= gps
XPORTVERSION= 0.7b
XCATEGORIES= mail security
XMASTER_SITES= http://mimo.gn.apc.org/gps/
XPKGNAMEPREFIX= postfix-
XDISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
X ${CONF_FILES}
XEXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
X
XMAINTAINER= delphij at FreeBSD.org.cn
XCOMMENT= Greylist Policy Service for postfix
X
XLIB_DEPENDS= dbi.0:${PORTSDIR}/databases/libdbi
XRUN_DEPENDS= ${LOCALBASE}/lib/dbd:${PORTSDIR}/databases/libdbi-drivers
X
XSCRIPT_FILES= gps-maintain.pl
X
XWRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
X
XUSE_AUTOCONF_VER= 259
XUSE_AUTOMAKE_VER= 18
XCONFIGURE_ARGS= --bindir=${PREFIX}/libexec --includedir=${PREFIX}/include
XCONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${PREFIX}/include" \
X CXXFLAGS="${CXXFLAGS} -I${PREFIX}/include" \
X LDFLAGS="${LDFLAGS} -L${PREFIX}/lib"
X
Xpost-patch:
X @cd ${WRKSRC} && ${ACLOCAL};
Xpost-install:
X @${INSTALL_DATA} ${WRKSRC}/etc/gps.conf ${PREFIX}/etc/gps.conf-dist
X.for f in ${SCRIPT_FILES}
X @${INSTALL_SCRIPT} ${_DISTDIR}/${f} ${PREFIX}/libexec
X.endfor
X @${PAGER} pkg-message
X
X.include <bsd.port.mk>
END-of-postfix-gps/Makefile
echo c - postfix-gps/files
mkdir -p postfix-gps/files > /dev/null 2>&1
echo x - postfix-gps/files/patch-configure.in
sed 's/^X//' >postfix-gps/files/patch-configure.in << 'END-of-postfix-gps/files/patch-configure.in'
X--- configure.in.orig Wed Jul 14 04:54:26 2004
X+++ configure.in Fri Sep 3 02:24:18 2004
X@@ -8,8 +8,6 @@
X AC_LANG_CPLUSPLUS
X AC_PROG_CXX
X dnl AM_PROG_LIBTOOL
X-AC_PROG_LD
X-AM_PROG_LD
X dnl AC_CHECK_LIB(dbi, libdbi)
X
X AC_HAVE_HEADERS(syslog.h)
END-of-postfix-gps/files/patch-configure.in
echo x - postfix-gps/files/patch-src::Makefile.am
sed 's/^X//' >postfix-gps/files/patch-src::Makefile.am << 'END-of-postfix-gps/files/patch-src::Makefile.am'
X--- src/Makefile.am.orig Sun Jul 4 23:03:49 2004
X+++ src/Makefile.am Fri Sep 3 02:25:54 2004
X@@ -7,5 +7,5 @@
X # the library search path.
X gps_LDFLAGS = $(all_libraries)
X noinst_HEADERS = configreader.h db.h read.h triplet.h defs.h strtrim.h cfg.h
X-gps_LDADD = -ldbi -ldl
X+gps_LDADD = -ldbi
X METASOURCES = AUTO
END-of-postfix-gps/files/patch-src::Makefile.am
echo x - postfix-gps/pkg-message
sed 's/^X//' >postfix-gps/pkg-message << 'END-of-postfix-gps/pkg-message'
X========================================================================
XCCoonnffiigguurraattiioonn IInnssttrruuccttiioonnss
X
XYou need to create a database for greylisting manually, and a user for
Xthis, too. Additionally, please copy the gps.conf-dist found in your
Xlocal etc directory.
X
XAfter you have all these done, modify the postfix master.cf and include
Xgps as policy server.
X
XAlso, you may want to include the following line into your crontab so
Xsystem will automatically do daily cleanup of the greylist table:
X
X4 0 * * * /usr/local/libexec/gps-maintain.pl -delete -eq 0 -age 86400 /usr/local/etc/gps.conf
X========================================================================
X
END-of-postfix-gps/pkg-message
exit
--- postfix-gps ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list