ports/71338: [NEW PORT]: mail/postfix-gps
Xin LI
delphij at frontfree.net
Sat Sep 4 05:20:14 UTC 2004
The following reply was made to PR ports/71338; it has been noted by GNATS.
From: Xin LI <delphij at frontfree.net>
To: freebsd-gnats-submit at FreeBSD.org, delphij at frontfree.net
Cc:
Subject: Re: ports/71338: [NEW PORT]: mail/postfix-gps
Date: Sat, 4 Sep 2004 13:16:12 +0800
--pWyiEgJYm5f9v55/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Sorry, it seems that GNUPG's signing process would give the patch some
(unwanted) changes :-( Let's wait for the ports tree to be unfrozen
and then look at this again...
The shar can be obtained here:
http://resources.delphij.net/postfix-gps
And is re-sent 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) =3D 036a44a8f7c5ae1a144dc8587265107e
XSIZE (gps-0.7b.tar.gz) =3D 211795
XMD5 (gps-maintain.pl) =3D d6c57197a516a7a4bc91362a6606c052
XSIZE (gps-maintain.pl) =3D 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=3D gps
XPORTVERSION=3D 0.7b
XCATEGORIES=3D mail security
XMASTER_SITES=3D http://mimo.gn.apc.org/gps/
XPKGNAMEPREFIX=3D postfix-
XDISTFILES=3D ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
X ${CONF_FILES}
XEXTRACT_ONLY=3D ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
X
XMAINTAINER=3D delphij at FreeBSD.org.cn
XCOMMENT=3D Greylist Policy Service for postfix
X
XLIB_DEPENDS=3D dbi.0:${PORTSDIR}/databases/libdbi
XRUN_DEPENDS=3D ${LOCALBASE}/lib/dbd:${PORTSDIR}/databases/libdbi-drivers
X
XSCRIPT_FILES=3D gps-maintain.pl
X
XWRKSRC=3D ${WRKDIR}/${PORTNAME}-${PORTVERSION}
X
XUSE_AUTOCONF_VER=3D 259
XUSE_AUTOMAKE_VER=3D 18
XUSE_GCC=3D 3.3
XCONFIGURE_ARGS=3D --bindir=3D${PREFIX}/libexec --includedir=3D${PREFIX}/in=
clude
XCONFIGURE_ENV+=3D CPPFLAGS=3D"${CPPFLAGS} -I${PREFIX}/include" \
X CXXFLAGS=3D"${CXXFLAGS} -I${PREFIX}/include" \
X LDFLAGS=3D"${LDFLAGS} -L${PREFIX}/lib"
X
Xpre-configure:
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/f=
iles/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=20
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-g=
ps/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 =3D $(all_libraries)=20
X noinst_HEADERS =3D configreader.h db.h read.h triplet.h defs.h strtrim.h =
cfg.h
X-gps_LDADD =3D -ldbi -ldl
X+gps_LDADD =3D -ldbi
X METASOURCES =3D 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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
XConfiguration Instructions
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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
X
END-of-postfix-gps/pkg-message
exit
--pWyiEgJYm5f9v55/
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)
iD8DBQFBOU+bOfuToMruuMARAlHeAJ9v1w686/jReRBmld6Lyrg9eF0D2wCfZ34P
ey2Xb4nILFl61JmBQTA0HMs=
=tTnB
-----END PGP SIGNATURE-----
--pWyiEgJYm5f9v55/--
More information about the freebsd-ports-bugs
mailing list