summaryrefslogtreecommitdiff
path: root/mail/policyd-weight/Makefile
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2007-07-06 13:49:46 +0000
committerxtraeme <xtraeme@pkgsrc.org>2007-07-06 13:49:46 +0000
commit3220d90c6beb83f7260d9888190e17900ca289ec (patch)
treecc1540228ce6c21d908adf245ec11a928cc7698f /mail/policyd-weight/Makefile
parent3d9fa6f4c0e4a953f69d759846391e23d195af3e (diff)
downloadpkgsrc-3220d90c6beb83f7260d9888190e17900ca289ec.tar.gz
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 (limited to 'mail/policyd-weight/Makefile')
-rw-r--r--mail/policyd-weight/Makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/mail/policyd-weight/Makefile b/mail/policyd-weight/Makefile
new file mode 100644
index 00000000000..fb7f6728c6d
--- /dev/null
+++ b/mail/policyd-weight/Makefile
@@ -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
+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"