SPECS: cleanfeed.spec - 20080809 - massive attack

blues blues at pld-linux.org
Tue Aug 12 12:02:29 CEST 2008


Author: blues                        Date: Tue Aug 12 10:02:29 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- 20080809 - massive attack

---- Files affected:
SPECS:
   cleanfeed.spec (1.42 -> 1.43) 

---- Diffs:

================================================================
Index: SPECS/cleanfeed.spec
diff -u SPECS/cleanfeed.spec:1.42 SPECS/cleanfeed.spec:1.43
--- SPECS/cleanfeed.spec:1.42	Tue Aug 12 11:14:43 2008
+++ SPECS/cleanfeed.spec	Tue Aug 12 12:02:23 2008
@@ -3,14 +3,19 @@
 Summary:	INN spam filter
 Summary(pl.UTF-8):	Filtr spamu dla INN
 Name:		cleanfeed
-Version:	0.95.7b
-Release:	15
-License:	distributable
+%define		_srcver	20020501
+%define		_ver	20080809
+Version:	%{_ver}
+Release:	1
+License:	Artistic License 2.0
 Group:		Networking/Daemons
-Source0:	http://www.exit109.com/~jeremy/news/cleanfeed/%{name}-%{version}.tar.gz
-# Source0-md5:	a715445b9fb13382a3d97bbbb64d638f
-Patch0:		%{name}-conf.patch
-URL:		http://www.exit109.com/~jeremy/news/cleanfeed/
+Source0:	http://www.bofh.it/~md/cleanfeed/%{name}-%{_srcver}.tgz
+# Source0-md5:	8535cc55d63a1932a447d09829b6aa97
+# http://groups.google.pl/group/news.software.nntp/msg/e652742ab7ff0f0a
+# http://www.mixmin.net/cleanfeed.diff
+Patch0:		%{name}-%{_ver}.diff
+Patch1:		%{name}-conf.patch
+URL:		http://www.bofh.it/~md/cleanfeed/
 BuildRequires:	rpm-perlprov
 Requires:	perl-Digest-MD5
 Conflicts:	inn < 2.3
@@ -27,29 +32,30 @@
 Automatyczny filtr spamu dla serwerów news.
 
 %prep
-%setup -q
-%patch0 -p1
+%setup -q -n %{name}-%{_srcver}
+%patch0 -p7
+%patch1 -p1
 
 %build
 # INN 2.3.x hack
-sed -e "s|\$lines = \$hdr{'__BODY__'} =~ tr/\\\n/\\\n/;|\$lines = \$hdr{'__LINES__'};|g" \
-	cleanfeed > cleanfeed.new
+sed -i -e "s|\$lines = \$hdr{'__BODY__'} =~ tr/\\\n/\\\n/;|\$lines = \$hdr{'__LINES__'};|g" cleanfeed
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_mandir}/man8,%{_datadir}/news/filter}
 
-install cleanfeed.conf $RPM_BUILD_ROOT%{_sysconfdir}
+install bad_adult_paths bad_hosts bad_cancel_paths bad_paths $RPM_BUILD_ROOT%{_sysconfdir}
+install cleanfeed.local.sample $RPM_BUILD_ROOT%{_sysconfdir}/cleanfeed.local
+
 install cleanfeed.8 $RPM_BUILD_ROOT%{_mandir}/man8/
-install cleanfeed.new $RPM_BUILD_ROOT%{_datadir}/news/filter/filter_innd.pl
+install cleanfeed $RPM_BUILD_ROOT%{_datadir}/news/filter/filter_innd.pl
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README
+%doc CHANGES HACKING README TODO cleanfeed.local.sample-it highwind.pl tools
 %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
 %{_datadir}/news/filter/filter_innd.pl
 %{_mandir}/man8/*
@@ -60,6 +66,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.43  2008/08/12 10:02:23  blues
+- 20080809 - massive attack
+
 Revision 1.42  2008/08/12 09:14:43  blues
 - rel.15
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/cleanfeed.spec?r1=1.42&r2=1.43&f=u



More information about the pld-cvs-commit mailing list