blob: a73b878c1efbcaae020ab2ef29ab79ce5e62b754 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# 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= 20100602
CATEGORIES= news
MASTER_SITES= http://www.mixmin.net/cleanfeed/
MAINTAINER= johans@FreeBSD.org
COMMENT= Spam filter for Usenet news servers
RUN_DEPENDS= ${LOCALBASE}/news/bin/innd:${PORTSDIR}/news/inn
NO_BUILD= yes
USE_PERL5= yes
BINOWN= news
BINGRP= news
SHAREOWN= news
SHAREGRP= news
INSTALL+= -b
PKGDEINSTALL= ${PKGINSTALL}
WRKSRC= ${WRKDIR}/${PORTNAME}
post-patch:
@${REINPLACE_CMD} -e "/debug_batch_directory/s:'.*':'/var/log/cleanfeed':" ${WRKSRC}/etc/cleanfeed.local
do-install:
@${INSTALL} ${_SHROWNGRP} -d ${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}/etc/${f} ${PREFIX}/news/cleanfeed/etc
.endfor
@${INSTALL_DATA} ${WRKSRC}/etc/cleanfeed.local \
${PREFIX}/news/cleanfeed/etc/cleanfeed.local.sample
@${INSTALL_DATA} ${WRKSRC}/cleanfeed ${PREFIX}/news/bin/filter
post-install:
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>
|