mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Support staging
PR: ports/185762 Submitted by: Yasuhiro KIMURA <yasu@utahime.org> Approved by: maintainer timeout
This commit is contained in:
parent
8e0c7690ff
commit
4a2bdda676
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=342133
@ -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>
|
||||
|
17
mail/postfix-policyd-spf-python/files/patch-setup.py
Normal file
17
mail/postfix-policyd-spf-python/files/patch-setup.py
Normal file
@ -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',
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user