From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Sep 19 18:10:13 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC19F16A4CE for ; Sun, 19 Sep 2004 18:10:13 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB97A43D48 for ; Sun, 19 Sep 2004 18:10:13 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i8JIADtO053346 for ; Sun, 19 Sep 2004 18:10:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i8JIADwA053345; Sun, 19 Sep 2004 18:10:13 GMT (envelope-from gnats) Resent-Date: Sun, 19 Sep 2004 18:10:13 GMT Resent-Message-Id: <200409191810.i8JIADwA053345@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Xin LI Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F52216A4CE for ; Sun, 19 Sep 2004 18:04:36 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 698CA43D1F for ; Sun, 19 Sep 2004 18:04:36 +0000 (GMT) (envelope-from delphij@FreeBSD.org) Received: from freefall.freebsd.org (delphij@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i8JI4at6049219 for ; Sun, 19 Sep 2004 18:04:36 GMT (envelope-from delphij@freefall.freebsd.org) Received: (from delphij@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i8JI4aCj049218; Sun, 19 Sep 2004 18:04:36 GMT (envelope-from delphij) Message-Id: <200409191804.i8JI4aCj049218@freefall.freebsd.org> Date: Sun, 19 Sep 2004 18:04:36 GMT From: Xin LI To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/71912: [NEW PORT]: mail/postfix-gps X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Xin LI List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Sep 2004 18:10:14 -0000 >Number: 71912 >Category: ports >Synopsis: [NEW PORT]: mail/postfix-gps >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Sep 19 18:10:13 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Xin LI >Release: FreeBSD 4.10-STABLE i386 >Organization: The FreeBSD (Simplified Chinese) Project >Environment: System: FreeBSD freefall.freebsd.org 4.10-STABLE FreeBSD 4.10-STABLE #13: Fri May 28 21:29:54 PDT 2004 kensmith@freefall.freebsd.org:/c/src/sys/compile/FREEFALL i386 >Description: This is a shar(1) archive for a new port, postfix-gps, which implements a database based greylisting add-in for postfix. Superceds ports/71338 >How-To-Repeat: >Fix: (For port committer: I have some ^H's in pkg-message, is it ok to have them there? I would like to output some text in highlighted way there, but if it is not suitable please fell free to remove ^H's.) --- postfix-gps.shar 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.9.tar.gz) = a5ede393225b799a855fd91e5d017c57 XSIZE (gps-0.9.tar.gz) = 321568 XMD5 (gps-maintain.pl) = e42d47d0b093d54277de826f24ccb1bd XSIZE (gps-maintain.pl) = 3502 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 X# X# $FreeBSD$ X# X XPORTNAME= gps XPORTVERSION= 0.9 XCATEGORIES= mail security XMASTER_SITES= http://mimo.gn.apc.org/gps/ XPKGNAMEPREFIX= postfix- XDISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \ X ${SCRIPT_FILES} XEXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} X XMAINTAINER= delphij@FreeBSD.org 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 XUSE_GCC= 3.3 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 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 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 Fri Sep 17 07:55:55 2004 X+++ configure.in Mon Sep 20 01:48:31 2004 X@@ -20,9 +20,6 @@ X X AC_LANG_CPLUSPLUS X AC_PROG_CXX X-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 Wed Sep 15 05:25:25 2004 X+++ src/Makefile.am Mon Sep 20 01:49:53 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 wlmodule.h wldb.h tmplwlmod.h dbdefs.h doxygen.h wlcacheddb.h dbiquote.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 X27 * * * * /usr/local/libexec/gps-maintain.pl -delete -eq 0 -age 86400 /usr/local/etc/gps.conf X55 3 * * * /usr/local/libexec/gps-maintain.pl -delete -age 3110400 /usr/local/etc/gps.conf X======================================================================== X END-of-postfix-gps/pkg-message exit --- postfix-gps.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: