diff options
author | rm <rm@FreeBSD.org> | 2013-08-28 21:47:32 +0800 |
---|---|---|
committer | rm <rm@FreeBSD.org> | 2013-08-28 21:47:32 +0800 |
commit | 902344a45c6992a8d63b0e3e3f1611b516d6a79d (patch) | |
tree | 065bf81d5b974ef4b5c525e75abdb7b94f1c29f8 /mail/postfix-policyd-spf-python | |
parent | 99b453d645904cefbaae68d3e3297efd306d785d (diff) | |
download | freebsd-ports-gnome-902344a45c6992a8d63b0e3e3f1611b516d6a79d.tar.gz freebsd-ports-gnome-902344a45c6992a8d63b0e3e3f1611b516d6a79d.tar.zst freebsd-ports-gnome-902344a45c6992a8d63b0e3e3f1611b516d6a79d.zip |
- update to 1.2
- modify policyd-spf so ${PREFIX}/etc/postfix-policyd-spf-python/policyd-spf.conf
is used as default configuration files and change pkg-message.in accordingly
- modify misc file paths in man pages so they match installed ones
- adopt to new options framework (DOCS)
- add license information (AL2)
- trim makefile header.
- update WWW url in pkg-descr
while I'm here:
- use absolute url in MASTER_SITES and remove http redirection quirks
- replace PYTHON_SITELIBDIR with PYTHON_PKGNAMEPREFIX in depends
- shortened overly long lines to make Makefile more readable
- remove attribution from pkg-descr, that's no more supported in ports
PR: 177797
Submitted by: Yasuhiro KIMURA <yasu@utahime.org>
Approved by: Giel van Schijndel <me@mortis.eu> (maintainer)
Diffstat (limited to 'mail/postfix-policyd-spf-python')
-rw-r--r-- | mail/postfix-policyd-spf-python/Makefile | 44 | ||||
-rw-r--r-- | mail/postfix-policyd-spf-python/distinfo | 4 | ||||
-rw-r--r-- | mail/postfix-policyd-spf-python/files/pkg-message.in | 4 | ||||
-rw-r--r-- | mail/postfix-policyd-spf-python/pkg-descr | 4 |
4 files changed, 33 insertions, 23 deletions
diff --git a/mail/postfix-policyd-spf-python/Makefile b/mail/postfix-policyd-spf-python/Makefile index de5f4220e131..52747f474379 100644 --- a/mail/postfix-policyd-spf-python/Makefile +++ b/mail/postfix-policyd-spf-python/Makefile @@ -1,29 +1,25 @@ -# New ports collection makefile for: postfix-policyd-spf-python -# Date created: 8 Jan 2010 -# Whom: Giel van Schijndel <me@mortis.eu> -# +# Created by: Giel van Schijndel <me@mortis.eu> # $FreeBSD$ -# PORTNAME= postfix-policyd-spf-python -PORTVERSION= 1.0 +PORTVERSION= 1.2 CATEGORIES= mail python -MASTER_SITES= http://launchpad.net/pypolicyd-spf/${PORTVERSION}/${PORTVERSION}/+download/ +MASTER_SITES= https://launchpadlibrarian.net/145855789/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= pypolicyd-spf-${PORTVERSION} MAINTAINER= me@mortis.eu COMMENT= Pure Python Postfix policy daemon for SPF checking -RUN_DEPENDS= ${PYTHON_SITELIBDIR}/spf.py:${PORTSDIR}/mail/py-spf +LICENSE= AL2 + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ipaddr>0:${PORTSDIR}/devel/py-ipaddr \ + ${PYTHON_PKGNAMEPREFIX}spf>0:${PORTSDIR}/mail/py-spf \ + ${PYTHON_PKGNAMEPREFIX}authres>0:${PORTSDIR}/mail/py-authres USE_PYTHON= yes USE_PYDISTUTILS= yes -PYDISTUTILS_PKGNAME= python-policyd-spf - -# Apparently launchpad seems to depend on redirects for their downloads. So -# ditch the fetch -A flag. -FETCH_ARGS= -pRr +PYDISTUTILS_PKGNAME= pypolicyd-spf MAN1= policyd-spf.1 MAN5= policyd-spf.conf.5 \ @@ -33,7 +29,6 @@ PORTDOCS= CHANGES \ COPYING \ README \ README.per_user_whitelisting \ - TODO \ policyd-spf.conf.commented PKGMESSAGE= ${WRKSRC}/pkg-message @@ -41,18 +36,35 @@ PKGMESSAGE= ${WRKSRC}/pkg-message SUB_FILES= pkg-message SUB_LIST= PYTHON_CMD=${PYTHON_CMD} +OPTIONS_DEFINE= DOCS +OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options + +.include <bsd.port.options.mk> + 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 - @(cd ${INSTALL_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} ${PYDISTUTILS_INSTALL_TARGET} ${PYDISTUTILS_INSTALLARGS} --install-data ${WRKDIR}/tmp-datadump-dir) + @(cd ${INSTALL_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} \ + ${PYDISTUTILS_INSTALL_TARGET} ${PYDISTUTILS_INSTALLARGS} \ + --install-data ${WRKDIR}/tmp-datadump-dir) ${INSTALL_MAN} ${WRKSRC}/policyd-spf.1 ${MANPREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/policyd-spf.conf.5 ${MANPREFIX}/man/man5 ${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 diff --git a/mail/postfix-policyd-spf-python/distinfo b/mail/postfix-policyd-spf-python/distinfo index 67a731ce8013..a31ab0d0e153 100644 --- a/mail/postfix-policyd-spf-python/distinfo +++ b/mail/postfix-policyd-spf-python/distinfo @@ -1,2 +1,2 @@ -SHA256 (pypolicyd-spf-1.0.tar.gz) = c57aa4bae4f6ed2321acf0f9361cbdce652fb4c1c948b063a0909744815e0c8d -SIZE (pypolicyd-spf-1.0.tar.gz) = 30204 +SHA256 (pypolicyd-spf-1.2.tar.gz) = e1a94c79ad91cfea17b9c8b19b035536f06d75ff9ee2e8478191e7c27fe69f74 +SIZE (pypolicyd-spf-1.2.tar.gz) = 30783 diff --git a/mail/postfix-policyd-spf-python/files/pkg-message.in b/mail/postfix-policyd-spf-python/files/pkg-message.in index b302b9d2ee75..9f2ee747d1fe 100644 --- a/mail/postfix-policyd-spf-python/files/pkg-message.in +++ b/mail/postfix-policyd-spf-python/files/pkg-message.in @@ -7,8 +7,8 @@ This package must be integrated with Postfix to be effective: 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 filter. If you already have a "smtpd_recipient_restrictions" line, you can diff --git a/mail/postfix-policyd-spf-python/pkg-descr b/mail/postfix-policyd-spf-python/pkg-descr index 50451d84de51..6ef47bf545c6 100644 --- a/mail/postfix-policyd-spf-python/pkg-descr +++ b/mail/postfix-policyd-spf-python/pkg-descr @@ -1,6 +1,4 @@ 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 - -Giel van Schijndel <me@mortis.eu> +WWW: https://launchpad.net/pypolicyd-spf/ |