Date: Sat, 1 Feb 2014 13:20:59 +0000 (UTC) From: Pawel Pekala <pawel@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r342133 - in head/mail/postfix-policyd-spf-python: . files Message-ID: <201402011320.s11DKxbW078156@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pawel Date: Sat Feb 1 13:20:58 2014 New Revision: 342133 URL: http://svnweb.freebsd.org/changeset/ports/342133 QAT: https://qat.redports.org/buildarchive/r342133/ Log: Support staging PR: ports/185762 Submitted by: Yasuhiro KIMURA <yasu@utahime.org> Approved by: maintainer timeout Added: head/mail/postfix-policyd-spf-python/files/patch-setup.py (contents, props changed) Modified: head/mail/postfix-policyd-spf-python/Makefile head/mail/postfix-policyd-spf-python/pkg-plist Modified: head/mail/postfix-policyd-spf-python/Makefile ============================================================================== --- head/mail/postfix-policyd-spf-python/Makefile Sat Feb 1 13:18:56 2014 (r342132) +++ head/mail/postfix-policyd-spf-python/Makefile Sat Feb 1 13:20:58 2014 (r342133) @@ -21,10 +21,6 @@ USE_PYTHON= yes USE_PYDISTUTILS= yes PYDISTUTILS_PKGNAME= pypolicyd-spf -MAN1= policyd-spf.1 -MAN5= policyd-spf.conf.5 \ - policyd-spf.peruser.5 - PORTDOCS= CHANGES \ COPYING \ README \ @@ -39,11 +35,10 @@ SUB_LIST= PYTHON_CMD=${PYTHON_CMD} OPTIONS_DEFINE= DOCS OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options -NO_STAGE= yes .include <bsd.port.options.mk> post-patch: - @${REINPLACE_CMD} -e '\/etc/s|/etc|etc|' ${WRKSRC}/setup.py + @${MV} ${WRKSRC}/policyd-spf.conf ${WRKSRC}/policyd-spf.conf.sample @${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/|" \ @@ -55,25 +50,8 @@ post-patch: -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} ${PYDISTUTILS_SETUP} \ - ${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 ${PORT_OPTIONS:MDOCS} - @${INSTALL} -d ${DOCSDIR}/ - cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/ -.endif - post-install: -.if !exists(${ETCDIR}/policyd-spf.conf) - ${CP} -p ${ETCDIR}/policyd-spf.conf.sample ${ETCDIR}/policyd-spf.conf -.endif - @${CAT} ${PKGMESSAGE} + @${INSTALL} -d ${STAGEDIR}/${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> Added: head/mail/postfix-policyd-spf-python/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/postfix-policyd-spf-python/files/patch-setup.py Sat Feb 1 13:20:58 2014 (r342133) @@ -0,0 +1,17 @@ +--- setup.py.orig 2013-05-14 12:57:04.000000000 +0900 ++++ setup.py 2014-01-14 10:15:11.000000000 +0900 +@@ -13,10 +13,10 @@ + py_modules=['policydspfsupp', 'policydspfuser'], + keywords = ['Postfix','spf','email'], + scripts = ['policyd-spf'], +- data_files=[(os.path.join('share', 'man', 'man1'), +- ['policyd-spf.1']), (os.path.join('share', 'man', 'man5'), +- ['policyd-spf.conf.5']), (os.path.join('/etc', 'python-policyd-spf'), +- ['policyd-spf.conf']), (os.path.join('share', 'man', 'man5'), ++ data_files=[(os.path.join('man', 'man1'), ++ ['policyd-spf.1']), (os.path.join('man', 'man5'), ++ ['policyd-spf.conf.5']), (os.path.join('etc', 'postfix-policyd-spf-python'), ++ ['policyd-spf.conf.sample']), (os.path.join('man', 'man5'), + ['policyd-spf.peruser.5'])], + classifiers = [ + 'Development Status :: 5 - Production/Stable', Modified: head/mail/postfix-policyd-spf-python/pkg-plist ============================================================================== --- head/mail/postfix-policyd-spf-python/pkg-plist Sat Feb 1 13:18:56 2014 (r342132) +++ head/mail/postfix-policyd-spf-python/pkg-plist Sat Feb 1 13:20:58 2014 (r342133) @@ -2,6 +2,9 @@ %%ETCDIR%%/policyd-spf.conf.sample @exec if [ ! -f %D/%%ETCDIR%%/policyd-spf.conf ] ; then cp -p %D/%F %B/policyd-spf.conf; fi bin/policyd-spf +man/man1/policyd-spf.1.gz +man/man5/policyd-spf.conf.5.gz +man/man5/policyd-spf.peruser.5.gz %%PYTHON_SITELIBDIR%%/policydspfsupp.py %%PYTHON_SITELIBDIR%%/policydspfsupp.pyo %%PYTHON_SITELIBDIR%%/policydspfsupp.pyc
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402011320.s11DKxbW078156>