pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/postgrey Postgrey is a Postfix policy server impl...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3eb5dae80d3c
branches:  trunk
changeset: 486085:3eb5dae80d3c
user:      kim <kim%pkgsrc.org@localhost>
date:      Wed Dec 22 15:51:38 2004 +0000

description:
Postgrey is a Postfix policy server implementing greylisting developed
by David Schweikert.

Compared to greylist.pl included with Postfix (2.1.1), Postgrey has the
following additional features:
- Safer database handling: Postgrey does use the logging and transaction
  features of BerkeleyDB to maximize reliability.
- Automatical cleaning of the database: Entries that were last seen
  more than a defined amount of time get removed automatically.

diffstat:

 mail/postgrey/DESCR             |   9 ++++
 mail/postgrey/Makefile          |  88 +++++++++++++++++++++++++++++++++++++++++
 mail/postgrey/PLIST             |   7 +++
 mail/postgrey/distinfo          |   4 +
 mail/postgrey/files/postgrey.sh |  25 +++++++++++
 5 files changed, 133 insertions(+), 0 deletions(-)

diffs (153 lines):

diff -r b3b2450c0209 -r 3eb5dae80d3c mail/postgrey/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/postgrey/DESCR       Wed Dec 22 15:51:38 2004 +0000
@@ -0,0 +1,9 @@
+Postgrey is a Postfix policy server implementing greylisting developed
+by David Schweikert.
+
+Compared to greylist.pl included with Postfix (2.1.1), Postgrey has the
+following additional features:
+- Safer database handling: Postgrey does use the logging and transaction
+  features of BerkeleyDB to maximize reliability.
+- Automatical cleaning of the database: Entries that were last seen
+  more than a defined amount of time get removed automatically.
diff -r b3b2450c0209 -r 3eb5dae80d3c mail/postgrey/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/postgrey/Makefile    Wed Dec 22 15:51:38 2004 +0000
@@ -0,0 +1,88 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/12/22 15:51:38 kim Exp $
+#
+
+DISTNAME=      postgrey-1.17
+CATEGORIES=    mail
+MASTER_SITES=  http://isg.ee.ethz.ch/tools/postgrey/pub/ \
+               http://isg.ee.ethz.ch/tools/postgrey/pub/old/
+
+MAINTAINER=    kim%tac.nyc.ny.us@localhost
+HOMEPAGE=      http://isg.ee.ethz.ch/tools/postgrey/
+COMMENT=       Postfix Greylist Policy Server
+
+USE_BUILDLINK3=        yes
+USE_PKGINSTALL=        yes
+USE_PERL5=     yes
+
+DEPENDS+=      p5-BerkeleyDB-[0-9]*:../../databases/p5-BerkeleyDB
+DEPENDS+=      p5-IO-Multiplex-[0-9]*:../../devel/p5-IO-Multiplex
+DEPENDS+=      p5-Net-Server-[0-9]*:../../net/p5-Net-Server
+
+NO_CONFIGURE=  # defined
+USE_PERL5=     # defined
+
+.include "../../mk/bsd.prefs.mk"
+
+POSTGREY_USER?=                postgrey
+POSTGREY_GROUP?=       postgrey
+POSTGREY_DBDIR?=       ${VARBASE}/db/${PKGBASE}
+
+PKG_SYSCONFSUBDIR?=    postfix
+
+DOCDIR=                        share/doc/${PKGBASE}
+EGDIR=                 share/examples/${PKGBASE}
+
+RCD_SCRIPTS=           postgrey
+PKG_GROUPS=            ${POSTGREY_GROUP}
+PKG_USERS=             ${POSTGREY_USER}:${POSTGREY_GROUP}::Postgrey\\ Daemon
+
+.for i in postgrey_whitelist_clients postgrey_whitelist_recipients
+CONF_FILES+=           ${PREFIX}/${EGDIR}/$i \
+                       ${PKG_SYSCONFDIR}/$i
+.endfor
+
+OWN_DIRS+=             ${PREFIX}/${DOCDIR}
+OWN_DIRS+=             ${PREFIX}/${EGDIR}
+
+OWN_DIRS_PERMS+=       ${POSTGREY_DBDIR} \
+                       ${POSTGREY_USER} ${POSTGREY_GROUP} 0775
+
+FILES_SUBST+=          PERL="${PERL5}"
+
+PLIST_SUBST+=          DOCDIR="${DOCDIR}"
+PLIST_SUBST+=          EGDIR="${EGDIR}"
+
+SUBST_CLASSES+=                postgrey
+
+SUBST_STAGE.postgrey=  pre-build
+SUBST_FILES.postgrey=  postgrey
+# Perl
+SUBST_SED.postgrey=    -e 's,/usr/bin/perl,${PERL5},g'
+# User
+SUBST_SED.postgrey+=   -e "s,|| 'postgrey',|| '${POSTGREY_USER}',g"
+SUBST_SED.postgrey+=   -e "s,default: postgrey,default: ${POSTGREY_USER},g"
+SUBST_SED.postgrey+=   -e "s,C<postgrey>,C<${POSTGREY_USER}>,g"
+# Group
+SUBST_SED.postgrey+=   -e "s,|| 'nogroup',|| '${POSTGREY_GROUP}',g"
+SUBST_SED.postgrey+=   -e "s,default: nogroup,default: ${POSTGREY_GROUP},g"
+# Database
+SUBST_SED.postgrey+=   -e 's,/var/spool/postfix/postgrey,${POSTGREY_DBDIR},g'
+# Config
+SUBST_SED.postgrey+=   -e 's,/etc/postfix,${PKG_SYSCONFDIR},g'
+#
+SUBST_MESSAGE.postgrey=        "Fixing defaults"
+
+do-build:
+
+do-install:
+       ${INSTALL_SCRIPT} ${WRKSRC}/postgrey ${PREFIX}/sbin/postgrey
+.for i in COPYING Changes README
+       ${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/${DOCDIR}/$i
+.endfor
+.for i in postgrey_whitelist_clients postgrey_whitelist_recipients
+       ${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/${EGDIR}/$i
+.endfor
+
+
+.include "../../databases/db4/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r b3b2450c0209 -r 3eb5dae80d3c mail/postgrey/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/postgrey/PLIST       Wed Dec 22 15:51:38 2004 +0000
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/12/22 15:51:38 kim Exp $
+sbin/postgrey
+${DOCDIR}/COPYING
+${DOCDIR}/Changes
+${DOCDIR}/README
+${EGDIR}/postgrey_whitelist_clients
+${EGDIR}/postgrey_whitelist_recipients
diff -r b3b2450c0209 -r 3eb5dae80d3c mail/postgrey/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/postgrey/distinfo    Wed Dec 22 15:51:38 2004 +0000
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/12/22 15:51:38 kim Exp $
+
+SHA1 (postgrey-1.17.tar.gz) = b0320e0105673fdd37006b3b4afa26f9735194a1
+Size (postgrey-1.17.tar.gz) = 24693 bytes
diff -r b3b2450c0209 -r 3eb5dae80d3c mail/postgrey/files/postgrey.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/postgrey/files/postgrey.sh   Wed Dec 22 15:51:38 2004 +0000
@@ -0,0 +1,25 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: postgrey.sh,v 1.1.1.1 2004/12/22 15:51:38 kim Exp $
+#
+
+# PROVIDE: postgrey
+# BEFORE: mail
+# REQUIRE: DAEMON LOGIN
+
+. /etc/rc.subr
+
+name="@PKGBASE@"
+rcvar=$name
+pidfile="@VARBASE@/run/${name}.pid"
+command_interpreter="@PERL@"
+command="@PREFIX@/sbin/postgrey"
+command_args="-d --pidfile=${pidfile}"
+required_files="
+ @PKG_SYSCONFDIR@/postgrey_whitelist_clients
+ @PKG_SYSCONFDIR@/postgrey_whitelist_recipients
+"
+@PKGBASE@_flags=${@PKGBASE@_flags-"-i 2525"}
+
+load_rc_config $name
+run_rc_command "$1"



Home | Main Index | Thread Index | Old Index