From 37780735cb9e26e8568f0700ea4a51ac61309631 Mon Sep 17 00:00:00 2001 From: mnag Date: Tue, 6 Dec 2005 16:12:44 +0000 Subject: Update to 0.1.12 Update MASTER_SITES and WWW Add SHA256 PR: 90018 Submitted by: maintainer --- mail/postfix-policyd-weight/Makefile | 7 +++-- mail/postfix-policyd-weight/distinfo | 5 ++-- mail/postfix-policyd-weight/files/pkg-message.in | 9 ++++++- mail/postfix-policyd-weight/pkg-deinstall | 16 +++++++++++ mail/postfix-policyd-weight/pkg-descr | 4 +-- mail/postfix-policyd-weight/pkg-install | 34 ++++++++++++++++++++++++ 6 files changed, 68 insertions(+), 7 deletions(-) create mode 100644 mail/postfix-policyd-weight/pkg-deinstall create mode 100644 mail/postfix-policyd-weight/pkg-install (limited to 'mail') diff --git a/mail/postfix-policyd-weight/Makefile b/mail/postfix-policyd-weight/Makefile index 221d949c23a6..8d8d7ecd696d 100644 --- a/mail/postfix-policyd-weight/Makefile +++ b/mail/postfix-policyd-weight/Makefile @@ -6,9 +6,9 @@ # PORTNAME= policyd-weight -PORTVERSION= 0.1.11 +PORTVERSION= 0.1.12 CATEGORIES= mail -MASTER_SITES= http://robtone.mine.nu/postfix/releases/ +MASTER_SITES= http://www.policyd-weight.org/releases/ PKGNAMEPREFIX= postfix- MAINTAINER= robtone@ek-muc.de @@ -24,6 +24,9 @@ do-install: ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/libexec/postfix ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.sample ${PREFIX}/etc +pre-install: + @${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL + post-install: @${CAT} ${PKGMESSAGE} diff --git a/mail/postfix-policyd-weight/distinfo b/mail/postfix-policyd-weight/distinfo index b68e7675888e..5f5b93bb911b 100644 --- a/mail/postfix-policyd-weight/distinfo +++ b/mail/postfix-policyd-weight/distinfo @@ -1,2 +1,3 @@ -MD5 (policyd-weight-0.1.11.tar.gz) = 1d4ad10437054bf47e781265c2e2e9d3 -SIZE (policyd-weight-0.1.11.tar.gz) = 20139 +MD5 (policyd-weight-0.1.12.tar.gz) = d2cdbc239ca278c4da412289ee42d12b +SHA256 (policyd-weight-0.1.12.tar.gz) = 017bdaf5d60cc48841a73c21a8a6e3dfd28395116e345ffd5ab6fab3d709f19c +SIZE (policyd-weight-0.1.12.tar.gz) = 26530 diff --git a/mail/postfix-policyd-weight/files/pkg-message.in b/mail/postfix-policyd-weight/files/pkg-message.in index 0f713affa60a..57a77418b72e 100644 --- a/mail/postfix-policyd-weight/files/pkg-message.in +++ b/mail/postfix-policyd-weight/files/pkg-message.in @@ -2,7 +2,7 @@ * To run this from %%PREFIX%%/etc/postfix/master.cf: policy unix - n n - - spawn - user=nobody argv=%%PREFIX%%/libexec/postfix/policyd-weight + user=polw argv=%%PREFIX%%/libexec/postfix/policyd-weight * To use this from Postfix SMTPD, use in %%PREFIX%%/etc/postfix/main.cf @@ -23,4 +23,11 @@ smtpd_recipient_restrictions = * edit %%PREFIX%%/etc/policyd-weight.conf * An example is provided in %%PREFIX%%/etc/policyd-weight.conf.sample * +* +* ATTENTION !!! ATTENTION +* +* if you are already using policyd-weight you MUST update your master.cf and +* change the user=nobody argument to user=polw +* +* ATTENTION !!! ATTENTION ************* diff --git a/mail/postfix-policyd-weight/pkg-deinstall b/mail/postfix-policyd-weight/pkg-deinstall new file mode 100644 index 000000000000..1ab6c165a063 --- /dev/null +++ b/mail/postfix-policyd-weight/pkg-deinstall @@ -0,0 +1,16 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +if [ "$2" != "POST-DEINSTALL" ]; then + exit 0 +fi + +USER=polw + +if pw usershow "${USER}" 2>/dev/null 1>&2; then + echo "To delete user permanently, use 'pw userdel ${USER}'" +fi + +exit 0 diff --git a/mail/postfix-policyd-weight/pkg-descr b/mail/postfix-policyd-weight/pkg-descr index ab8627b3d7f7..ced5a621f8c2 100644 --- a/mail/postfix-policyd-weight/pkg-descr +++ b/mail/postfix-policyd-weight/pkg-descr @@ -1,8 +1,8 @@ Policyd-weight is (as the name says) a weighted policyd for Postfix. It uses HELO, MAIL FROM and the MTA IP address for scoring their -correctness. It also uses definable DNSBLs in a scored fashion. +correctness. It also uses definable DNSBLs and RHSBLs in a scored fashion. -WWW: http://robtone.mine.nu/postfix/ +WWW: http://www.policyd-weight.org - Robert Felber robtone@ek-muc.de diff --git a/mail/postfix-policyd-weight/pkg-install b/mail/postfix-policyd-weight/pkg-install new file mode 100644 index 000000000000..f624005c3aa5 --- /dev/null +++ b/mail/postfix-policyd-weight/pkg-install @@ -0,0 +1,34 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +if [ "$2" != "PRE-INSTALL" ]; then + exit 0 +fi + +USER=polw +GROUP=${USER} + +if ! pw groupshow "${GROUP}" 2>/dev/null 1>&2; then + if pw groupadd ${GROUP} ; then + echo "Added group \"${GROUP}\"." + else + echo "Adding group \"${GROUP}\" failed..." + exit 1 + fi +fi + +if ! pw usershow "${USER}" 2>/dev/null 1>&2; then + if pw useradd ${USER} -g ${GROUP} -h - \ + -s "/sbin/nologin" -d "/nonexistent" \ + -c "Policyd-weight Cache Owner"; \ + then + echo "Added user \"${USER}\"." + else + echo "Adding user \"${USER}\" failed..." + exit 1 + fi +fi + +exit 0 -- cgit