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
|
2011-02-25 03:19:29 +00:00
|
|
|
PORTREVISION= 3
|
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%/
|
|
|
|
|
|
|
|
MAINTAINER?= chifeng@gmail.com
|
|
|
|
COMMENT= PPolicy is tool for extending Postfix checking capabilities
|
|
|
|
|
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/dns/__init__.py:${PORTSDIR}/dns/py-dnspython
|
|
|
|
|
2011-02-25 03:19:29 +00:00
|
|
|
USE_PYTHON= 2.5+
|
2008-11-29 20:18:39 +00:00
|
|
|
USE_PYDISTUTILS=yes
|
|
|
|
USE_TWISTED= yes
|
|
|
|
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-09-20 19:59:12 +00:00
|
|
|
NO_STAGE= yes
|
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:
|
2013-06-04 10:32:49 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2008-11-29 20:18:39 +00:00
|
|
|
@${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}
|
|
|
|
|
2013-06-04 10:32:49 +00:00
|
|
|
.include <bsd.port.mk>
|