# Created by: Mario Sergio Fujikawa Ferreira # $FreeBSD$ PORTNAME= spambayes PORTVERSION= 1.1b2 CATEGORIES= mail python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= koobs@FreeBSD.org COMMENT= Bayesian anti-spam filter written in Python LICENSE= PSFL RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}bsddb>0:databases/py-bsddb@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}dns>=2.0:dns/py-dns@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}lockfile>=0.2:devel/py-lockfile@${PY_FLAVOR} USES= python:-2.7 USE_PYTHON= distutils autoplist USE_RC_SUBR= pyspamd OPTIONS_DEFINE= DOCS NO_ARCH= yes LOCALSTATDIR?= /var/db/spambayes DBDIR?= ${LOCALSTATDIR}/dbs CACHEDIR?= ${LOCALSTATDIR}/cache PLIST_SUB+= LOCALSTATDIR=${LOCALSTATDIR} \ DBDIR=${DBDIR} \ CACHEDIR=${CACHEDIR} SUB_LIST+= PYTHON_CMD=${PYTHON_CMD} PORTDOCS= CHANGELOG.txt \ LICENSE.txt \ NEWTRICKS.txt \ POP3PROXY.txt \ README-DEVEL.txt \ README.txt \ TESTING.txt \ WHAT_IS_NEW.txt \ utilities/ \ contrib/ post-patch: @${REINPLACE_CMD} -e \ '/persistent_storage_file/s|hammie.db|${DBDIR}/hammie.db|' \ -e \ '/messageinfo_storage_file/s|spambayes.messageinfo.db|${DBDIR}/spambayes.messageinfo.db|' \ -e \ '/spam_cache/s|pop3proxy-spam-cache|${CACHEDIR}/pop3proxy-spam-cache|' \ -e \ '/ham_cache/s|pop3proxy-ham-cache|${CACHEDIR}/pop3proxy-ham-cache|' \ -e \ '/unknown_cache/s|pop3proxy-unknown-cache|${CACHEDIR}/pop3proxy-unknown-cache|' \ ${WRKSRC}/spambayes/Options.py post-install: @${MKDIR} ${STAGEDIR}${CACHEDIR}/pop3proxy-spam-cache @${MKDIR} ${STAGEDIR}${CACHEDIR}/pop3proxy-ham-cache @${MKDIR} ${STAGEDIR}${CACHEDIR}/pop3proxy-unknown-cache @${MKDIR} ${STAGEDIR}${DBDIR} post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for file in ${PORTDOCS} @if [ -f ${WRKSRC}/${file} ]; then \ ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR} ; \ fi .endfor @${MKDIR} ${STAGEDIR}${DOCSDIR}/contrib @${MKDIR} ${STAGEDIR}${DOCSDIR}/utilities ${INSTALL_DATA} ${WRKSRC}/contrib/* ${STAGEDIR}${DOCSDIR}/contrib ${INSTALL_DATA} ${WRKSRC}/utilities/* ${STAGEDIR}${DOCSDIR}/utilities .include lodash-4.17.19 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats