2013-06-04 10:32:49 +00:00
|
|
|
# Created by: Chifeng QU <chifeng@gmail.com>
|
2008-11-29 20:18:39 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ppolicy
|
|
|
|
PORTVERSION= 2.6.6
|
2014-08-11 17:05:50 +00:00
|
|
|
PORTREVISION= 4
|
2008-11-29 20:18:39 +00:00
|
|
|
CATEGORIES= mail python
|
|
|
|
MASTER_SITES= http://kmlinux.fjfi.cvut.cz/~vokac/activities/ppolicy/download/%SUBDIR%/ \
|
|
|
|
http://www.chifeng.name/dist/ppolicy/%SUBDIR%/
|
|
|
|
|
2014-08-10 13:04:34 +00:00
|
|
|
MAINTAINER?= ports@FreeBSD.org
|
2008-11-29 20:18:39 +00:00
|
|
|
COMMENT= PPolicy is tool for extending Postfix checking capabilities
|
|
|
|
|
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/dns/__init__.py:${PORTSDIR}/dns/py-dnspython
|
|
|
|
|
2014-10-21 17:10:06 +00:00
|
|
|
USES= python twisted
|
|
|
|
USE_PYTHON= distutils autoplist
|
2008-11-29 20:18:39 +00:00
|
|
|
NO_BUILD= yes
|
2012-08-05 23:19:36 +00:00
|
|
|
USE_RC_SUBR= ppolicyd
|
2008-11-29 20:18:39 +00:00
|
|
|
DOCSDIR?= ${PREFIX}/share/doc/py-${PORTNAME}
|
|
|
|
|
|
|
|
SUB_LIST= PYTHON_CMD=${PYTHON_CMD}
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2013-06-04 10:32:49 +00:00
|
|
|
OPTIONS_DEFINE= GEOIP LDAP MYSQL DOCS
|
|
|
|
OPTIONS_DEFAULT= GEOIP LDAP
|
2008-11-29 20:18:39 +00:00
|
|
|
|
2013-06-04 10:32:49 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2008-11-29 20:18:39 +00:00
|
|
|
|
2013-06-04 10:32:49 +00:00
|
|
|
.if ${PORT_OPTIONS:MGEOIP}
|
2013-06-04 10:37:12 +00:00
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/GeoIP.so:${PORTSDIR}/net/py-GeoIP
|
2008-11-29 20:18:39 +00:00
|
|
|
.endif
|
2013-06-04 10:32:49 +00:00
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
2010-12-27 15:52:11 +00:00
|
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=0:${PORTSDIR}/databases/py-MySQLdb
|
2008-11-29 20:18:39 +00:00
|
|
|
.endif
|
2013-06-04 10:32:49 +00:00
|
|
|
.if ${PORT_OPTIONS:MLDAP}
|
2008-11-29 20:18:39 +00:00
|
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}ldap2>=2.3.1:${PORTSDIR}/net/py-ldap2
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2014-06-13 12:32:08 +00:00
|
|
|
@${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}
|
2014-09-04 19:26:24 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/ppolicy.conf ${STAGEDIR}${PREFIX}/etc
|
2014-06-13 12:32:08 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/ppolicy.tap ${STAGEDIR}${PREFIX}/sbin
|
2008-11-29 20:18:39 +00:00
|
|
|
|
2013-06-04 10:32:49 +00:00
|
|
|
.include <bsd.port.mk>
|