# Created by: Yen-Ming Lee # $FreeBSD: head/news/cleanfeed/Makefile 517237 2019-11-10 23:16:42Z kbowling $ PORTNAME= cleanfeed DISTVERSION= 20190602 CATEGORIES= news USE_GITHUB= yes GH_ACCOUNT= crooks GH_TAGNAME= b3c6bcf6e34a6d35cad402d34c7ff76aba481c6d MAINTAINER= kbowling@FreeBSD.org COMMENT= Spam filter for Usenet news servers RUN_DEPENDS= ${LOCALBASE}/news/bin/innd:news/inn NO_BUILD= yes USES= perl5 BINOWN= news BINGRP= news SHAREOWN= news SHAREGRP= news INSTALL+= -b PKGDEINSTALL= ${PKGINSTALL} post-patch: @${REINPLACE_CMD} -e "/debug_batch_directory/s:'.*':'/var/log/cleanfeed':" ${WRKSRC}/samples/cleanfeed.local do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/news/cleanfeed/etc .for f in bad_adult_paths bad_body bad_cancel_paths bad_from bad_groups \ bad_hosts bad_paths bad_subject bad_url @${INSTALL_DATA} ${WRKSRC}/samples/${f} ${STAGEDIR}${PREFIX}/news/cleanfeed/etc .endfor @${INSTALL_DATA} ${WRKSRC}/samples/cleanfeed.local \ ${STAGEDIR}${PREFIX}/news/cleanfeed/etc/cleanfeed.local.sample @${MKDIR} ${STAGEDIR}${PREFIX}/news/bin/filter @${INSTALL_DATA} ${WRKSRC}/cleanfeed ${STAGEDIR}${PREFIX}/news/bin/filter .include