pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/policyd-weight Initial import of policyd-weight-0...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4eeeeb642af0
branches:  trunk
changeset: 530706:4eeeeb642af0
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Fri Jul 06 13:49:46 2007 +0000

description:
Initial import of policyd-weight-0.1.14.5, packaged by bartosz at atom.eu.org
via pkgsrc-wip.

policyd-weight is a Perl policy daemon for the Postfix MTA (2.1 and later)
intended to eliminate forged envelope senders and HELOs (i.e. in bogus mails).
It allows you to score DNSBLs (RBL/RHSBL), HELO, MAIL FROM and client IP
addresses before any queuing is done. It allows you to REJECT messages which
have a score higher than allowed, providing improved blocking of spam and
virus mails. policyd-weight caches the most frequent client/sender
combinations (SPAM as well as HAM) to reduce the number of DNS queries.

diffstat:

 mail/policyd-weight/DESCR                   |   7 +++
 mail/policyd-weight/Makefile                |  55 +++++++++++++++++++++++++++++
 mail/policyd-weight/PLIST                   |   8 ++++
 mail/policyd-weight/distinfo                |   5 ++
 mail/policyd-weight/files/policyd_weight.sh |  41 +++++++++++++++++++++
 5 files changed, 116 insertions(+), 0 deletions(-)

diffs (136 lines):

diff -r eb38def20c44 -r 4eeeeb642af0 mail/policyd-weight/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/policyd-weight/DESCR Fri Jul 06 13:49:46 2007 +0000
@@ -0,0 +1,7 @@
+policyd-weight is a Perl policy daemon for the Postfix MTA (2.1 and later)
+intended to eliminate forged envelope senders and HELOs (i.e. in bogus mails).
+It allows you to score DNSBLs (RBL/RHSBL), HELO, MAIL FROM and client IP
+addresses before any queuing is done. It allows you to REJECT messages which
+have a score higher than allowed, providing improved blocking of spam and
+virus mails. policyd-weight caches the most frequent client/sender
+combinations (SPAM as well as HAM) to reduce the number of DNS queries.
diff -r eb38def20c44 -r 4eeeeb642af0 mail/policyd-weight/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/policyd-weight/Makefile      Fri Jul 06 13:49:46 2007 +0000
@@ -0,0 +1,55 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/07/06 13:49:46 xtraeme Exp $
+#
+
+DISTNAME=              policyd-weight-0.1.14.5
+CATEGORIES=            mail
+MASTER_SITES=          http://www.policyd-weight.org/releases/
+
+MAINTAINER=            bartosz%atom.eu.org@localhost
+HOMEPAGE=              http://www.policyd-weight.org/
+COMMENT=               Weighted policy daemon for postfix
+
+DEPENDS+=              p5-Net-DNS>=0.58:../../net/p5-Net-DNS
+
+USE_TOOLS+=            perl:run
+USE_LANGUAGES=         # none
+REPLACE_PERL+=         policyd-weight
+
+BUILD_DEFS+=           VARBASE
+
+POLICYD_WEIGHT_USER?=  polw
+POLICYD_WEIGHT_GROUP?= polw
+
+BUILD_DEFS+=           POLICYD_WEIGHT_GROUP POLICYD_WEIGHT_USER
+FILES_SUBST+=          POLICYD_WEIGHT_GROUP=${POLICYD_WEIGHT_GROUP:Q}
+FILES_SUBST+=          POLICYD_WEIGHT_USER=${POLICYD_WEIGHT_USER:Q}
+
+PKG_GROUPS=            ${POLICYD_WEIGHT_GROUP}
+PKG_USERS=             ${POLICYD_WEIGHT_USER}:${POLICYD_WEIGHT_GROUP}
+PKG_GECOS.${POLICYD_WEIGHT_USER}=      Policyd-weight User
+
+DOCDIR=                        ${PREFIX}/share/doc/policyd-weight
+EGDIR=                 ${PREFIX}/share/examples/policyd-weight
+CONF_FILES=            ${EGDIR}/policyd-weight.conf \
+                       ${PKG_SYSCONFDIR}/policyd-weight.conf
+RCD_SCRIPTS=           policyd_weight
+
+SUBST_CLASSES+=                fix-paths
+SUBST_STAGE.fix-paths= post-build
+SUBST_FILES.fix-paths= policyd-weight policyd-weight.conf.sample
+SUBST_SED.fix-paths=   -e 's,"/var/run/,"${VARBASE}/run/,g'
+SUBST_SED.fix-paths+=  -e 's,"/etc/policyd-weight.conf","${PKG_SYSCONFDIR}/policyd-weight.conf",g'
+SUBST_SED.fix-paths+=  -e 's,"polw";,"${POLICYD_WEIGHT_USER}";,g'
+
+do-build:              replace-interpreter
+
+do-install:
+       ${INSTALL_SCRIPT} ${WRKSRC}/policyd-weight ${PREFIX}/sbin
+       ${INSTALL_DATA_DIR} ${DOCDIR}
+       ${INSTALL_DATA} ${WRKSRC}/changes.txt ${DOCDIR}
+       ${INSTALL_DATA} ${WRKSRC}/documentation.txt ${DOCDIR}
+       ${INSTALL_DATA_DIR} ${EGDIR}
+       ${INSTALL_DATA} ${WRKSRC}/policyd-weight.conf.sample \
+               ${EGDIR}/policyd-weight.conf
+
+.include "../../mk/bsd.pkg.mk"
diff -r eb38def20c44 -r 4eeeeb642af0 mail/policyd-weight/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/policyd-weight/PLIST Fri Jul 06 13:49:46 2007 +0000
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/07/06 13:49:46 xtraeme Exp $
+sbin/policyd-weight
+share/doc/policyd-weight/changes.txt
+share/doc/policyd-weight/documentation.txt
+share/examples/policyd-weight/policyd-weight.conf
+share/examples/rc.d/policyd_weight
+@dirrm share/doc/policyd-weight
+@dirrm share/examples/policyd-weight
diff -r eb38def20c44 -r 4eeeeb642af0 mail/policyd-weight/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/policyd-weight/distinfo      Fri Jul 06 13:49:46 2007 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/07/06 13:49:46 xtraeme Exp $
+
+SHA1 (policyd-weight-0.1.14.5.tar.gz) = f913aee3813bdc9f6fd67da1c586e2ea80122fae
+RMD160 (policyd-weight-0.1.14.5.tar.gz) = bb5db4aa41cfcf6282a4d140ba9fd7b67e35e2bf
+Size (policyd-weight-0.1.14.5.tar.gz) = 50043 bytes
diff -r eb38def20c44 -r 4eeeeb642af0 mail/policyd-weight/files/policyd_weight.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/policyd-weight/files/policyd_weight.sh       Fri Jul 06 13:49:46 2007 +0000
@@ -0,0 +1,41 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: policyd_weight.sh,v 1.1.1.1 2007/07/06 13:49:46 xtraeme Exp $
+#
+
+# PROVIDE: policyd_weight
+# BEFORE: mail
+# REQUIRE: DAEMON LOGIN
+
+. /etc/rc.subr
+
+name="policyd_weight"
+rcvar=$name
+pidfile="@VARBASE@/run/policyd-weight.pid"
+command_interpreter="@PREFIX@/bin/perl"
+command="@PREFIX@/sbin/policyd-weight"
+extra_commands="reload"
+required_files="@PKG_SYSCONFDIR@/policyd-weight.conf"
+
+reload_cmd="policyd_weight_op"
+restart_cmd="policyd_weight_op"
+start_cmd="policyd_weight_op"
+stop_cmd="policyd_weight_stop"
+
+policyd_weight_op()
+{
+       ${command} ${rc_arg}
+}
+
+policyd_weight_stop()
+{
+       ${command} -k stop
+}
+
+if [ -f /etc/rc.subr -a -f /etc/rc.conf ]; then
+       load_rc_config $name
+       run_rc_command "$1"
+else
+       @ECHO@ -n " ${name}"
+       ${command} start
+fi



Home | Main Index | Thread Index | Old Index