freebsd-ports/news/cleanfeed/Makefile
Yen-Ming Lee dbdd7a459b - add PKG_PREFIX=${PREFIX} when running ${PKGINSTALL}
Noticed by:	kris
PR:		75508
Submitted by:	atomer <atomer@gmail.com>
2004-12-26 18:32:11 +00:00

45 lines
1.1 KiB
Makefile

# New ports collection makefile for: cleanfeed
# Date created: 09 October 2000
# Whom: Yen-Ming Lee <leeym@cae.ce.ntu.edu.tw>
#
# $FreeBSD$
#
PORTNAME= cleanfeed
PORTVERSION= 20020501
CATEGORIES= news
MASTER_SITES= http://www.bofh.it/~md/cleanfeed/
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Spam filter for Usenet news servers
RUN_DEPENDS= ${LOCALBASE}/news/bin/innd:${PORTSDIR}/news/inn
NO_BUILD= yes
BINOWN= news
BINGRP= news
SHAREOWN= news
SHAREGRP= news
USE_REINPLACE= yes
INSTALL+= -b
PKGDEINSTALL= ${PKGINSTALL}
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500800
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5
.endif
post-patch:
@${REINPLACE_CMD} -e 's,/news,${PREFIX}/news,g' ${WRKSRC}/cleanfeed*
do-install:
.for f in bad_adult_paths bad_cancel_paths bad_hosts bad_paths cleanfeed cleanfeed.local.sample
@${INSTALL_DATA} ${WRKSRC}/${f} ${LOCALBASE}/news/bin/filter
.endfor
post-install:
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>