- Update to 1.67 Changelog : [Sep 07 2005] Changes from v1.66 -> v1.67 (new functionality) * generic.c: AUTO_BLACK_LISTING was not being initialized which means it couldnt of been working. patch by Benny Pedersen. * *.c: records were taking twice as long to expire as what they should be. Thanks to Sune Foldager for spotting this. * contrib/: added debian startup/init file by Dietmar Braun. * helo.c: used wrong variable for _expire. patch by Benny Pedersen. * policyd.spec: new rpm spec file. submitted by Catalin Muresan - Fix missing documentation - Fix startup script to not use '-' in rc variables. - Fix pid filename in default configuration pid filename. - Added postfix-policyd-stats to gather stats using syslog Added file(s): - files/patch-policyd.conf Generated with FreeBSD Port Tools 0.63
Responsible Changed From-To: freebsd-ports-bugs->garga I'll take it
Dear maintainer, I propose you the following patch, that changes PORTDOCS scheme and use REINPLACE_CMD instead patch-policyd.conf. Do you approve it? --- postfix-policyd-sf.patch begins here --- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/mail/postfix-policyd-sf/Makefile,v retrieving revision 1.2 diff -u -r1.2 Makefile --- Makefile 5 Sep 2005 18:05:55 -0000 1.2 +++ Makefile 8 Sep 2005 17:27:02 -0000 @@ -1,4 +1,4 @@ -# New ports collection makefile for: policyd-sf +# New ports collection makefile for: postfix-policyd-sf # Date created: 2005-08-02 # Whom: Xavier Beaudouin <kiwi@oav.net> # @@ -6,7 +6,7 @@ # PORTNAME= policyd -PORTVERSION= 1.66 +PORTVERSION= 1.67 CATEGORIES= mail MASTER_SITES= http://policyd.sourceforge.net/ PKGNAMEPREFIX= postfix- @@ -27,19 +27,27 @@ ALL_TARGET= linux -PORTDOCS= Changelog.txt README.txt License.txt WHITELIST.sql +DOCS= Changelog.txt README.txt License.txt DATABASE.mysql \ + doc/WHITELIST.sql doc/SUPPORT.txt +PORTDOCS= * PLIST_FILES= sbin/${REALNAME}-cleanup \ + sbin/${REALNAME}-stats \ sbin/${REALNAME} \ etc/${REALNAME}.conf.sample +post-patch: + @${REINPLACE_CMD} -e 's,policyd.pid,postfix-policyd-sf.pid,' \ + ${WRKSRC}/policyd.conf + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/cleanup ${PREFIX}/sbin/${REALNAME}-cleanup + ${INSTALL_PROGRAM} ${WRKSRC}/stats ${PREFIX}/sbin/${REALNAME}-stats ${INSTALL_PROGRAM} ${WRKSRC}/policyd ${PREFIX}/sbin/${REALNAME} ${INSTALL_DATA} ${WRKSRC}/policyd.conf ${PREFIX}/etc/${REALNAME}.conf.sample .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} - for f in ${PORTDOCS}; do \ + for f in ${DOCS}; do \ ${INSTALL_DATA} ${WRKSRC}/$$f ${DOCSDIR}; \ done .endif Index: distinfo =================================================================== RCS file: /home/pcvs/ports/mail/postfix-policyd-sf/distinfo,v retrieving revision 1.1 diff -u -r1.1 distinfo --- distinfo 5 Sep 2005 16:46:06 -0000 1.1 +++ distinfo 8 Sep 2005 17:27:02 -0000 @@ -1,2 +1,2 @@ -MD5 (policyd-v1.66.tar.gz) = f2d1562e636fcdcf08660f975538e038 -SIZE (policyd-v1.66.tar.gz) = 51338 +MD5 (policyd-v1.67.tar.gz) = 77c59852a7316d48a5f84bb6841fc23c +SIZE (policyd-v1.67.tar.gz) = 52456 Index: files/policyd.sh.in =================================================================== RCS file: /home/pcvs/ports/mail/postfix-policyd-sf/files/policyd.sh.in,v retrieving revision 1.1 diff -u -r1.1 policyd.sh.in --- files/policyd.sh.in 5 Sep 2005 16:46:06 -0000 1.1 +++ files/policyd.sh.in 8 Sep 2005 17:27:02 -0000 @@ -3,7 +3,7 @@ # $FreeBSD: ports/mail/postfix-policyd-sf/files/policyd.sh.in,v 1.1 2005/09/05 16:46:06 garga Exp $ # -# PROVIDE: policyd +# PROVIDE: postfix-policyd-sf # REQUIRE: LOGIN # BEFORE: mail # KEYWORD: FreeBSD shutdown @@ -11,12 +11,12 @@ # # Add the following lines to /etc/rc.conf to enable policyd: # -# %%REALNAME%%_enable="YES" +# postfix_policyd_sf_enable="YES" # . %%RC_SUBR%% -name=%%REALNAME%% +name=postfix_policyd_sf rcvar=`set_rcvar` command=%%PREFIX%%/sbin/%%REALNAME%% @@ -30,11 +30,11 @@ # set defaults -%%REALNAME%%_enable=${%%REALNAME%%_enable:-"NO"} -%%REALNAME%%_pidfile=${%%REALNAME%%_pidfile:-"/var/run/%%REALNAME%%.pid"} -%%REALNAME%%_flags=${%%REALNAME%%_flags:-"-c %%PREFIX%%/etc/%%REALNAME%%.conf"} +postfix_policyd_sf_enable=${postfix_policyd_sf_enable:-"NO"} +postfix_policyd_sf_pidfile=${postfix_policyd_sf_pidfile:-"/var/run/%%REALNAME%%.pid"} +postfix_policyd_sf_flags=${postfix_policyd_sf_flags:-"-c %%PREFIX%%/etc/%%REALNAME%%.conf"} -pidfile="${%%REALNAME%%_pidfile}" +pidfile="${postfix_policyd_sf_pidfile}" load_rc_config $name run_rc_command "$1" --- postfix-policyd-sf.patch ends here --- thanks -- Renato Botelho <garga @ FreeBSD.org> <freebsd @ galle.com.br> GnuPG Key: http://www.FreeBSD.org/~garga/pubkey.asc Brooks's Law: Adding manpower to a late software project makes it later
State Changed From-To: open->feedback Ask maintainer for approval.
State Changed From-To: feedback->closed Committed. Thanks!