From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Apr 12 02:10:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 9AD731A1 for ; Fri, 12 Apr 2013 02:10:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 7C404904 for ; Fri, 12 Apr 2013 02:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r3C2A0Kv064466 for ; Fri, 12 Apr 2013 02:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r3C2A04i064465; Fri, 12 Apr 2013 02:10:00 GMT (envelope-from gnats) Resent-Date: Fri, 12 Apr 2013 02:10:00 GMT Resent-Message-Id: <201304120210.r3C2A04i064465@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Yasuhiro KIMURA Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 915AADD for ; Fri, 12 Apr 2013 02:02:21 +0000 (UTC) (envelope-from yasu@home.utahime.org) Received: from gate.utahime.jp (gate.utahime.jp [183.180.29.210]) by mx1.freebsd.org (Postfix) with ESMTP id 3FDA58B7 for ; Fri, 12 Apr 2013 02:02:20 +0000 (UTC) Received: from eastasia.home.utahime.org (mail.home.utahime.org [192.168.174.1]) by gate.utahime.jp (Postfix) with ESMTP id F382461F9D; Fri, 12 Apr 2013 11:02:19 +0900 (JST) Received: from eastasia.home.utahime.org (localhost [127.0.0.1]) by localhost-backdoor.home.utahime.org (Postfix) with ESMTP id C66304E642; Fri, 12 Apr 2013 11:02:19 +0900 (JST) Received: from rolling-vm-freebsd1.home.utahime.org (rolling-vm-freebsd1.home.utahime.org [192.168.174.51]) by eastasia.home.utahime.org (Postfix) with ESMTP id 89B8D4E631; Fri, 12 Apr 2013 11:02:19 +0900 (JST) Received: by rolling-vm-freebsd1.home.utahime.org (Postfix, from userid 1000) id 700DC4E9C3; Fri, 12 Apr 2013 11:02:19 +0900 (JST) Message-Id: <20130412020219.700DC4E9C3@rolling-vm-freebsd1.home.utahime.org> Date: Fri, 12 Apr 2013 11:02:19 +0900 (JST) From: Yasuhiro KIMURA To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/177797: [PATCH] mail/postfix-policyd-spf-python: update to 1.1 and etc. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Apr 2013 02:10:00 -0000 >Number: 177797 >Category: ports >Synopsis: [PATCH] mail/postfix-policyd-spf-python: update to 1.1 and etc. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Apr 12 02:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Yasuhiro KIMURA >Release: FreeBSD 9.1-RELEASE-p2 amd64 >Organization: >Environment: System: FreeBSD xxxx 9.1-RELEASE-p2 FreeBSD 9.1-RELEASE-p2 #0 r249030: Sat Apr 6 22:45:59 JST 2013 xxxx amd64 >Description: - Update to 1.1. - Modify policyd-spf so ${PREFIX}/etc/postfix-policyd-spf-python/policyd-spf.conf is used as default configuration files - Change pkg-message.in accordingly - Modify misc file paths in man pages so they match installed ones. - Adopt to new options framework. - Add license information. - Trim makefile header. - Update WWW url in pkg-descr. >How-To-Repeat: >Fix: --- patch-postfix-policyd-spf-python begins here --- Index: Makefile =================================================================== --- Makefile (revision 315785) +++ Makefile (working copy) @@ -1,12 +1,8 @@ -# New ports collection makefile for: postfix-policyd-spf-python -# Date created: 8 Jan 2010 -# Whom: Giel van Schijndel -# +# Created by: Giel van Schijndel # $FreeBSD$ -# PORTNAME= postfix-policyd-spf-python -PORTVERSION= 1.0 +PORTVERSION= 1.1 CATEGORIES= mail python MASTER_SITES= http://launchpad.net/pypolicyd-spf/${PORTVERSION}/${PORTVERSION}/+download/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -15,6 +11,8 @@ MAINTAINER= me@mortis.eu COMMENT= Pure Python Postfix policy daemon for SPF checking +LICENSE= AL2 + RUN_DEPENDS= ${PYTHON_SITELIBDIR}/spf.py:${PORTSDIR}/mail/py-spf USE_PYTHON= yes @@ -41,8 +39,17 @@ SUB_FILES= pkg-message SUB_LIST= PYTHON_CMD=${PYTHON_CMD} +OPTIONS_DEFINE= DOCS +OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options + +.include + post-patch: @${REINPLACE_CMD} -e '\/etc/s|/etc|etc|' ${WRKSRC}/setup.py + @${REINPLACE_CMD} -e "s|/etc/python-policyd-spf/|${PREFIX}/etc/postfix-policyd-spf-python/|" ${WRKSRC}/policyd-spf + @${REINPLACE_CMD} -e "s|/etc/policyd-spf/|${PREFIX}/etc/postfix-policyd-spf-python/|" -e "s|/usr/bin/policyd-spf|${PREFIX}/bin/policyd-spf|" -e "s|/etc/postfix/|${LOCALBASE}/etc/postfix/|" ${WRKSRC}/policyd-spf.1 + @${REINPLACE_CMD} -e "s|/etc/policyd-spf/|${PREFIX}/etc/postfix-policyd-spf-python/|" ${WRKSRC}/policyd-spf.conf.5 + @${REINPLACE_CMD} -e "s|/etc/policyd-spf/|${PREFIX}/etc/postfix-policyd-spf-python/|" -e "s|/etc/pypolicyd-spf/|${PREFIX}/etc/postfix-policyd-spf-python/|" ${WRKSRC}/policyd-spf.peruser.5 do-install: @# Install data to an unused directory to ensure it doesn't pollute the system @@ -52,7 +59,7 @@ ${INSTALL_MAN} ${WRKSRC}/policyd-spf.peruser.5 ${MANPREFIX}/man/man5 @${INSTALL} -d ${ETCDIR}/ ${INSTALL_DATA} ${WRKSRC}/policyd-spf.conf ${ETCDIR}/policyd-spf.conf.sample -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${INSTALL} -d ${DOCSDIR}/ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/ .endif Index: distinfo =================================================================== --- distinfo (revision 315785) +++ distinfo (working copy) @@ -1,2 +1,2 @@ -SHA256 (pypolicyd-spf-1.0.tar.gz) = c57aa4bae4f6ed2321acf0f9361cbdce652fb4c1c948b063a0909744815e0c8d -SIZE (pypolicyd-spf-1.0.tar.gz) = 30204 +SHA256 (pypolicyd-spf-1.1.tar.gz) = 93ca747e1e62d05a3e3fa54b9415f6c6da7fa40644e32507d0bb56980e31cc56 +SIZE (pypolicyd-spf-1.1.tar.gz) = 469687 Index: files/pkg-message.in =================================================================== --- files/pkg-message.in (revision 315785) +++ files/pkg-message.in (working copy) @@ -7,7 +7,7 @@ 1. Add to your postfix master.cf: policyd-spf unix - n n - 0 spawn - user=nobody argv=%%PYTHON_CMD%% %%PREFIX%%/bin/policyd-spf %%ETCDIR%%/policyd-spf.conf + user=nobody argv=%%PREFIX%%/bin/policyd-spf 2. Configure the Postfix policy service in your main.cf so that the "smtpd_recipient_restrictions" includes a call to the policyd-spf policy Index: pkg-descr =================================================================== --- pkg-descr (revision 315785) +++ pkg-descr (working copy) @@ -1,6 +1,6 @@ python-policyd-spf is a Postfix SMTPd policy engine for SPF checking. It is implemented in pure Python and uses the python-spf module. -WWW: http://www.openspf.org/Software +WWW: https://launchpad.net/pypolicyd-spf/ Giel van Schijndel --- patch-postfix-policyd-spf-python ends here --- >Release-Note: >Audit-Trail: >Unformatted: