]> git.pld-linux.org Git - packages/cleanfeed.git/commitdiff
- enhanced conf patch: provide sane paths in cleanfeed.local auto/th/cleanfeed-20080809-3
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 15 Jun 2013 16:43:36 +0000 (18:43 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 15 Jun 2013 16:43:53 +0000 (18:43 +0200)
- release 3

cleanfeed-conf.patch
cleanfeed.spec

index a67bdd594ecba4a1a7606f6c7a0dbda4e2caf066..8743eead58003015837116cc7b92ba1bfe71cdcf 100644 (file)
@@ -9,3 +9,24 @@
  
  ##############################################################################
  # Server configuration
+--- cleanfeed-20020501/cleanfeed.local.sample.orig     2002-05-02 11:23:20.000000000 +0200
++++ cleanfeed-20020501/cleanfeed.local.sample  2013-06-15 18:07:08.720139109 +0200
+@@ -208,13 +208,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 => '/var/lib/news/active',
++              statfile => '/var/log/news/cleanfeed.stats',
++#             html_statfile => '/var/log/news/cleanfeed.stats.html',
+               stats_interval => 300,
+               do_emp_dump => 1,
+-              emp_dump_file => '/news/tmp/empdump',
+-              debug_batch_directory => '/news/spam',
++              emp_dump_file => '/var/lib/news/tmp/empdump',
++              debug_batch_directory => '/var/lib/news/spam',
+       );
+       %config_append = (
index e6f88b8abea9ad23374f11472309beed253524a9..10fd1d97eaa8655822ac02282ed71f4bca038dd1 100644 (file)
@@ -1,19 +1,18 @@
 %include       /usr/lib/rpm/macros.perl
 Summary:       INN spam filter
-Summary(pl.UTF-8):     Filtr spamu dla INN
+Summary(pl.UTF-8):     Filtr spamu dla INN-a
 Name:          cleanfeed
-%define                _srcver 20020501
-%define                _ver    20080809
-Version:       %{_ver}
-Release:       2
+%define                src_ver 20020501
+Version:       20080809
+Release:       3
 License:       Artistic License 2.0
 Group:         Networking/Daemons
-Source0:       http://www.bofh.it/~md/cleanfeed/%{name}-%{_srcver}.tgz
+Source0:       http://www.bofh.it/~md/cleanfeed/%{name}-%{src_ver}.tgz
 # Source0-md5: 8535cc55d63a1932a447d09829b6aa97
 Source1:       %{name}.8
 # http://groups.google.pl/group/news.software.nntp/msg/e652742ab7ff0f0a
 # http://www.mixmin.net/cleanfeed.diff
-Patch0:                %{name}-%{_ver}.diff
+Patch0:                %{name}-%{version}.diff
 Patch1:                %{name}-conf.patch
 URL:           http://www.bofh.it/~md/cleanfeed/
 BuildRequires: rpm-perlprov
@@ -29,10 +28,11 @@ Cleanfeed is an automatic filter for INN that removes spam from
 incoming newsfeeds.
 
 %description -l pl.UTF-8
-Automatyczny filtr spamu dla serwerów news.
+Automatyczny filtr spamu dla serwera news INN. Usuwa spam z
+przychodzących "feedów".
 
 %prep
-%setup -q -n %{name}-%{_srcver}
+%setup -q -n %{name}-%{src_ver}
 %patch0 -p7
 %patch1 -p1
 
@@ -48,7 +48,7 @@ install bad_adult_paths bad_hosts bad_cancel_paths bad_paths $RPM_BUILD_ROOT%{_s
 install cleanfeed.local.sample $RPM_BUILD_ROOT%{_sysconfdir}/cleanfeed.local
 
 install cleanfeed $RPM_BUILD_ROOT%{_datadir}/news/filter/filter_innd.pl
-install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man8/
+install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man8
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -56,6 +56,10 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc CHANGES HACKING README TODO cleanfeed.local.sample-it highwind.pl tools
-%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
+%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bad_adult_paths
+%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bad_cancel_paths
+%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bad_hosts
+%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bad_paths
+%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cleanfeed.local
 %{_datadir}/news/filter/filter_innd.pl
-%{_mandir}/man8/*
+%{_mandir}/man8/cleanfeed.8*
This page took 0.096556 seconds and 4 git commands to generate.