* update to cleanfeed-20020501

* support REINPLACE
* remove patches

PR:		41116
Submitted by:	Yen-Ming Lee <leeym@utopia.leeym.com>
This commit is contained in:
Christian Weisgerber 2002-07-29 20:12:43 +00:00
parent 938f060277
commit 89bd237103
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=63705
4 changed files with 4 additions and 37 deletions

View file

@ -6,7 +6,7 @@
#
PORTNAME= cleanfeed
PORTVERSION= 20011031
PORTVERSION= 20020501
CATEGORIES= news
MASTER_SITES= http://www.bofh.it/~md/cleanfeed/
EXTRACT_SUFX= .tgz
@ -21,12 +21,11 @@ BINOWN= news
BINGRP= news
SHAREOWN= news
SHAREGRP= news
USE_REINPLACE= yes
INSTALL+= -b
post-patch:
.for file in cleanfeed cleanfeed.local.sample
@${PERL} -pi -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/${file}
.endfor
@${REINPLACE_CMD} -e 's,/news,${PREFIX}/news,g' ${WRKSRC}/cleanfeed*
do-install:
.for file in bad_adult_paths bad_cancel_paths bad_hosts bad_paths cleanfeed cleanfeed.local.sample

View file

@ -1 +1 @@
MD5 (cleanfeed-20011031.tgz) = abae9cef27263c20d5d4d0f49def826a
MD5 (cleanfeed-20020501.tgz) = 8535cc55d63a1932a447d09829b6aa97

View file

@ -1,11 +0,0 @@
--- cleanfeed.orig Sat Sep 8 09:42:19 2001
+++ cleanfeed Sat Sep 8 09:42:31 2001
@@ -11,7 +11,7 @@
# Directory where cleanfeed.local and the other configuration files live.
# Set this to undef to not use any external file.
-$config_dir = '/news/bin/filter';
+$config_dir = '%%PREFIX%%/news/bin/filter';
##############################################################################
# Server configuration

View file

@ -1,21 +0,0 @@
--- cleanfeed.local.sample.orig Sat Sep 8 09:41:06 2001
+++ cleanfeed.local.sample Sat Sep 8 09:41:24 2001
@@ -213,13 +213,13 @@
sub local_config {
%config_local = (
block_late_cancels => 1,
- active_file => '/news/db/active',
- statfile => '/news/log/cleanfeed.stats',
-# html_statfile => '/news/log/cleanfeed.stats.html',
+ active_file => '%%PREFIX%%/news/db/active',
+ statfile => '%%PREFIX%%/news/log/cleanfeed.stats',
+# html_statfile => '%%PREFIX%%/news/log/cleanfeed.stats.html',
stats_interval => 300,
do_emp_dump => 1,
- emp_dump_file => '/news/tmp/empdump',
- debug_batch_directory => '/news/spam',
+ emp_dump_file => '%%PREFIX%%/news/tmp/empdump',
+ debug_batch_directory => '%%PREFIX%%/news/spam',
);
%config_append = (