aboutsummaryrefslogtreecommitdiffstats
path: root/mail/py-ppolicy
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2014-06-13 20:32:08 +0800
committerwg <wg@FreeBSD.org>2014-06-13 20:32:08 +0800
commit48b04891071294a1bf936417753e59f6fa2e2854 (patch)
tree92e468a3e27bd82304fbf579680cab55b3678b58 /mail/py-ppolicy
parent55f5630dd6b7286f01bd553e16e5df2c72e0d361 (diff)
downloadfreebsd-ports-gnome-48b04891071294a1bf936417753e59f6fa2e2854.tar.gz
freebsd-ports-gnome-48b04891071294a1bf936417753e59f6fa2e2854.tar.zst
freebsd-ports-gnome-48b04891071294a1bf936417753e59f6fa2e2854.zip
mail/py-ppolicy: support stage and use auto plist
Diffstat (limited to 'mail/py-ppolicy')
-rw-r--r--mail/py-ppolicy/Makefile23
-rw-r--r--mail/py-ppolicy/pkg-plist104
2 files changed, 10 insertions, 117 deletions
diff --git a/mail/py-ppolicy/Makefile b/mail/py-ppolicy/Makefile
index f3efab43ddce..887b2d73340b 100644
--- a/mail/py-ppolicy/Makefile
+++ b/mail/py-ppolicy/Makefile
@@ -16,6 +16,7 @@ RUN_DEPENDS= ${PYTHON_SITELIBDIR}/dns/__init__.py:${PORTSDIR}/dns/py-dnspython
USES= twisted
USE_PYTHON= yes
USE_PYDISTUTILS=yes
+PYDISTUTILS_AUTOPLIST= yes
NO_BUILD= yes
USE_RC_SUBR= ppolicyd
DOCSDIR?= ${PREFIX}/share/doc/py-${PORTNAME}
@@ -26,7 +27,6 @@ SUB_FILES= pkg-message
OPTIONS_DEFINE= GEOIP LDAP MYSQL DOCS
OPTIONS_DEFAULT= GEOIP LDAP
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGEOIP}
@@ -40,17 +40,14 @@ RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}ldap2>=2.3.1:${PORTSDIR}/net/py-ldap2
.endif
post-install:
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/MODULES ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/NEWS ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/TODO ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/TESTS ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/ppolicy.sql ${DOCSDIR}
-.endif
- ${INSTALL_DATA} -m 0644 ${WRKSRC}/ppolicy.conf ${PREFIX}/etc
- ${INSTALL_DATA} ${WRKSRC}/ppolicy.tap ${PREFIX}/sbin
- @${CAT} ${PKGMESSAGE}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/MODULES ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/NEWS ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/TODO ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/TESTS ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/ppolicy.sql ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} -m 0644 ${WRKSRC}/ppolicy.conf ${STAGEDIR}${PREFIX}/etc
+ ${INSTALL_DATA} ${WRKSRC}/ppolicy.tap ${STAGEDIR}${PREFIX}/sbin
.include <bsd.port.mk>
diff --git a/mail/py-ppolicy/pkg-plist b/mail/py-ppolicy/pkg-plist
index 7d250cf448e2..4ec5b3e92825 100644
--- a/mail/py-ppolicy/pkg-plist
+++ b/mail/py-ppolicy/pkg-plist
@@ -1,105 +1,3 @@
-%%PYTHON_SITELIBDIR%%/ppolicy/Base.py
-%%PYTHON_SITELIBDIR%%/ppolicy/Base.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/Base.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/Country.py
-%%PYTHON_SITELIBDIR%%/ppolicy/Country.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/Country.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/DOS.py
-%%PYTHON_SITELIBDIR%%/ppolicy/DOS.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/DOS.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/Dnsbl.py
-%%PYTHON_SITELIBDIR%%/ppolicy/Dnsbl.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/Dnsbl.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/DnsblDynamic.py
-%%PYTHON_SITELIBDIR%%/ppolicy/DnsblDynamic.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/DnsblDynamic.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/DnsblScore.py
-%%PYTHON_SITELIBDIR%%/ppolicy/DnsblScore.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/DnsblScore.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/Dummy.py
-%%PYTHON_SITELIBDIR%%/ppolicy/Dummy.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/Dummy.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/DumpDataDB.py
-%%PYTHON_SITELIBDIR%%/ppolicy/DumpDataDB.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/DumpDataDB.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/DumpDataFile.py
-%%PYTHON_SITELIBDIR%%/ppolicy/DumpDataFile.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/DumpDataFile.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/Greylist.py
-%%PYTHON_SITELIBDIR%%/ppolicy/Greylist.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/Greylist.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/List.py
-%%PYTHON_SITELIBDIR%%/ppolicy/List.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/List.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/ListBW.py
-%%PYTHON_SITELIBDIR%%/ppolicy/ListBW.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/ListBW.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/ListDyn.py
-%%PYTHON_SITELIBDIR%%/ppolicy/ListDyn.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/ListDyn.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/ListMailDomain.py
-%%PYTHON_SITELIBDIR%%/ppolicy/ListMailDomain.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/ListMailDomain.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/LookupLDAP.py
-%%PYTHON_SITELIBDIR%%/ppolicy/LookupLDAP.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/LookupLDAP.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/P0f.py
-%%PYTHON_SITELIBDIR%%/ppolicy/P0f.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/P0f.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/Resolve.py
-%%PYTHON_SITELIBDIR%%/ppolicy/Resolve.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/Resolve.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/SPF.py
-%%PYTHON_SITELIBDIR%%/ppolicy/SPF.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/SPF.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/Sleep.py
-%%PYTHON_SITELIBDIR%%/ppolicy/Sleep.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/Sleep.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/Trap.py
-%%PYTHON_SITELIBDIR%%/ppolicy/Trap.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/Trap.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/Verification.py
-%%PYTHON_SITELIBDIR%%/ppolicy/Verification.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/Verification.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/Whois.py
-%%PYTHON_SITELIBDIR%%/ppolicy/Whois.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/Whois.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/__init__.py
-%%PYTHON_SITELIBDIR%%/ppolicy/__init__.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/__init__.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/log.py
-%%PYTHON_SITELIBDIR%%/ppolicy/log.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/log.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/protocol.py
-%%PYTHON_SITELIBDIR%%/ppolicy/protocol.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/protocol.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/test.py
-%%PYTHON_SITELIBDIR%%/ppolicy/test.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/test.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/tools/DnsThread.py
-%%PYTHON_SITELIBDIR%%/ppolicy/tools/DnsThread.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/tools/DnsThread.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/tools/__init__.py
-%%PYTHON_SITELIBDIR%%/ppolicy/tools/__init__.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/tools/__init__.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/tools/dnsbl.py
-%%PYTHON_SITELIBDIR%%/ppolicy/tools/dnsbl.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/tools/dnsbl.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/tools/dnscache.py
-%%PYTHON_SITELIBDIR%%/ppolicy/tools/dnscache.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/tools/dnscache.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/tools/param.py
-%%PYTHON_SITELIBDIR%%/ppolicy/tools/param.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/tools/param.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/tools/smtplib.py
-%%PYTHON_SITELIBDIR%%/ppolicy/tools/smtplib.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/tools/smtplib.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/tools/spf.py
-%%PYTHON_SITELIBDIR%%/ppolicy/tools/spf.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/tools/spf.pyo
-%%PYTHON_SITELIBDIR%%/ppolicy/tools/utils.py
-%%PYTHON_SITELIBDIR%%/ppolicy/tools/utils.pyc
-%%PYTHON_SITELIBDIR%%/ppolicy/tools/utils.pyo
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/MODULES
%%PORTDOCS%%%%DOCSDIR%%/NEWS
@@ -109,5 +7,3 @@
%%PORTDOCS%%@dirrm %%DOCSDIR%%
sbin/ppolicy.tap
etc/ppolicy.conf
-@dirrm %%PYTHON_SITELIBDIR%%/ppolicy/tools
-@dirrm %%PYTHON_SITELIBDIR%%/ppolicy