Date: Sat, 28 Oct 2006 13:41:40 +0200 (CEST) From: Robert Felber <robtone@ek-muc.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/104878: Update port: mail/postfix-policyd-weight Message-ID: <20061028114140.EC8B6C3884@robtone.ek-muc.de> Resent-Message-ID: <200610281150.k9SBoHaZ029175@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 104878 >Category: ports >Synopsis: Update port: mail/postfix-policyd-weight >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sat Oct 28 11:50:17 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Robert Felber >Release: FreeBSD 6.1-RELEASE-p7 i386 >Organization: Autohaus Erich Kuttendreier (Ford Main Dealer Munich) >Environment: System: 6.1-RELEASE-p7 >Description: Major port update, for details read http://www.policyd-weight.org/releases/policyd-weight-0.1.14/changes.txt >How-To-Repeat: >Fix: --- postfix-policyd-weight-0.1.14.diff begins here --- diff -ruN /usr/ports/mail/postfix-policyd-weight/Makefile ./postfix-policyd-weight-0.1.14/Makefile --- /usr/ports/mail/postfix-policyd-weight/Makefile Tue Dec 6 19:12:55 2005 +++ ./postfix-policyd-weight-0.1.14/Makefile Sat Oct 28 13:03:58 2006 @@ -2,11 +2,12 @@ # Date created: 25 Apr 2005 # Whom: Robert Felber <robtone@ek-muc.de> # -# $FreeBSD: ports/mail/postfix-policyd-weight/Makefile,v 1.8 2005/12/06 16:12:44 mnag Exp $ +# $FreeBSD: ports/mail/postfix-policyd-weight/Makefile,v 1.6 2005/09/06 07:45:05 jylefort Exp $ # PORTNAME= policyd-weight -PORTVERSION= 0.1.12 +PORTVERSION= 0.1.14 +PORTREVISION= 0 CATEGORIES= mail MASTER_SITES= http://www.policyd-weight.org/releases/ PKGNAMEPREFIX= postfix- @@ -20,14 +21,28 @@ SUB_FILES= pkg-message PLIST_FILES= libexec/postfix/${PORTNAME} etc/${PORTNAME}.conf.sample +USE_RC_SUBR+= policyd-weight + +MAN8+= policyd-weight.8 +MAN5+= policyd-weight.conf.5 + +.include <bsd.port.pre.mk> + do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/libexec/postfix - ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.sample ${PREFIX}/etc + ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/libexec/postfix/ + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.sample ${PREFIX}/etc/ +.for i in 5 8 + @${MKDIR} ${PREFIX}/man/man$i +. for j in ${MAN${i}} + ${INSTALL_MAN} ${WRKSRC}/man/man${i}/$j ${PREFIX}/man/man${i}/ +. endfor +.endfor + pre-install: - @${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL + PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL post-install: @${CAT} ${PKGMESSAGE} -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff -ruN /usr/ports/mail/postfix-policyd-weight/distinfo ./postfix-policyd-weight-0.1.14/distinfo --- /usr/ports/mail/postfix-policyd-weight/distinfo Tue Dec 6 19:12:55 2005 +++ ./postfix-policyd-weight-0.1.14/distinfo Sat Oct 28 12:30:49 2006 @@ -1,3 +1,3 @@ -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 +MD5 (policyd-weight-0.1.14.tar.gz) = 8920a3477473f4d5504620e0f22557fb +SHA256 (policyd-weight-0.1.14.tar.gz) = bf54a7178752d1b861f81f3090f0e94d234390c951236eb1eebc9d973f202dcd +SIZE (policyd-weight-0.1.14.tar.gz) = 43680 diff -ruN /usr/ports/mail/postfix-policyd-weight/files/pkg-message.in ./postfix-policyd-weight-0.1.14/files/pkg-message.in --- /usr/ports/mail/postfix-policyd-weight/files/pkg-message.in Tue Dec 6 19:12:55 2005 +++ ./postfix-policyd-weight-0.1.14/files/pkg-message.in Mon Oct 9 12:06:39 2006 @@ -1,8 +1,7 @@ ********** -* To run this from %%PREFIX%%/etc/postfix/master.cf: +* Start with: -policy unix - n n - - spawn - user=polw argv=%%PREFIX%%/libexec/postfix/policyd-weight +# policyd-weight start * To use this from Postfix SMTPD, use in %%PREFIX%%/etc/postfix/main.cf @@ -12,7 +11,7 @@ ... reject_unauth_destination reject_unauth_pipelining - check_policy_service unix:private/policy + check_policy_service inet:127.0.0.1:12525 ... * NOTE: specify check_policy_service AFTER reject_unauth_destination @@ -26,8 +25,8 @@ * * ATTENTION !!! ATTENTION * -* if you are already using policyd-weight you MUST update your master.cf and -* change the user=nobody argument to user=polw +* Since version 0.1.14 beta the master.cf mode is deprecated. Use the daemon +* mode instead. More info in man 8 policyd-weight. * * ATTENTION !!! ATTENTION ************* diff -ruN /usr/ports/mail/postfix-policyd-weight/files/policyd-weight.in ./postfix-policyd-weight-0.1.14/files/policyd-weight.in --- /usr/ports/mail/postfix-policyd-weight/files/policyd-weight.in Thu Jan 1 01:00:00 1970 +++ ./postfix-policyd-weight-0.1.14/files/policyd-weight.in Mon Oct 9 12:00:20 2006 @@ -0,0 +1,40 @@ +#!/bin/sh +# +# +# PROVIDE: policyd-weight +# REQUIRE: LOGIN cleanvar +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf to enable policyd-weight: +# policyd_weight_enable (bool): +# Set it to "YES" to enable policyd-weight. +# Default is "NO". + + +. /etc/rc.subr + +name="policyd-weight" +rcvar=policyd_weight_enable + +stop_cmd=policyd_weight_stop + +# defaults +policyd_weight_enable=${policyd_weight_enable:-"NO"} + +load_rc_config "policyd_weight" + +case "$policyd_weight_enable" in + [Yy][Ee][Ss] | 1 | [Oo][Nn] | [Tt][Rr][Uu][Ee]) ;; + *) echo "To make use of $name set $rcvar=\"YES\" in /etc/rc.conf" ;; +esac + +policyd_weight_progname="/usr/local/libexec/postfix/policyd-weight" +command=/usr/local/libexec/postfix/policyd-weight +pidfile=/var/run/policyd-weight.pid + +policyd_weight_stop() { + echo "Stopping $name" + $policyd_weight_progname stop +} + +run_rc_command "$1" diff -ruN /usr/ports/mail/postfix-policyd-weight/pkg-deinstall ./postfix-policyd-weight-0.1.14/pkg-deinstall --- /usr/ports/mail/postfix-policyd-weight/pkg-deinstall Tue Dec 6 17:12:44 2005 +++ ./postfix-policyd-weight-0.1.14/pkg-deinstall Thu Jan 1 01:00:00 1970 @@ -1,16 +0,0 @@ -#!/bin/sh -# -# $FreeBSD: ports/mail/postfix-policyd-weight/pkg-deinstall,v 1.1 2005/12/06 16:12:44 mnag Exp $ -# - -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 -ruN /usr/ports/mail/postfix-policyd-weight/pkg-install ./postfix-policyd-weight-0.1.14/pkg-install --- /usr/ports/mail/postfix-policyd-weight/pkg-install Tue Dec 6 17:12:44 2005 +++ ./postfix-policyd-weight-0.1.14/pkg-install Tue Dec 6 11:54:43 2005 @@ -1,7 +1,5 @@ #!/bin/sh # -# $FreeBSD: ports/mail/postfix-policyd-weight/pkg-install,v 1.1 2005/12/06 16:12:44 mnag Exp $ -# if [ "$2" != "PRE-INSTALL" ]; then exit 0 @@ -30,5 +28,4 @@ exit 1 fi fi - exit 0 --- postfix-policyd-weight-0.1.14.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061028114140.EC8B6C3884>