Roman Rakus acb11d3
Summary: A spam filter for Usenet news servers
cvsdist 0512e87
Name: cleanfeed
6d96923
Version: 20020501
Roman Rakus 97187ab
Release: 6%{?dist}
6d96923
# Confirmed with upstream, website
6d96923
License: Artistic 2.0
6d96923
URL: http://www.bofh.it/~md/cleanfeed/
cvsdist 0512e87
Group: System Environment/Daemons
6d96923
Source0: http://www.bofh.it/~md/cleanfeed/cleanfeed-20020501.tgz
6d96923
Patch0: cleanfeed-20020501-redhat.patch
6d96923
Patch1: cleanfeed-20020501-ro.patch
Roman Rakus acb11d3
BuildArch: noarch
cvsdist 0512e87
Roman Rakus 97187ab
Requires(pre): shadow-utils
Roman Rakus 97187ab
cvsdist 0512e87
%description
cvsdist 0512e87
Cleanfeed is an automatic spam filter for Usenet news servers and
cvsdist 0512e87
routers (INN, Cyclone, Typhoon, Breeze and NNTPRelay).  Cleanfeed
cvsdist 0512e87
looks for duplicated messages, repeated patterns, and known spamming
cvsdist 0512e87
sites and domains.  It can be configured to block binary posts to
cvsdist 0512e87
non-binary newsgroups, to cancel already-rejected articles, and to
cvsdist 0512e87
reject some spamming from local users.
cvsdist 0512e87
cvsdist 0512e87
Install the cleanfeed package if you need a spam filter for a Usenet
cvsdist 0512e87
news server.
cvsdist 0512e87
cvsdist 0512e87
%prep
cvsdist 0512e87
%setup -q
cvsdist 0512e87
%patch0 -p1 -b .rh
cvsdist 7ccb508
%patch1 -p1
cvsdist 0512e87
Roman Rakus acb11d3
%build
Roman Rakus acb11d3
sed '1 i #!/usr/bin/perl' cleanfeed > filter_innd.pl
Roman Rakus acb11d3
Roman Rakus 97187ab
%pre
Roman Rakus 97187ab
getent group news >/dev/null || groupadd -r news
Roman Rakus 97187ab
getent passwd news >/dev/null || \
Roman Rakus 97187ab
    useradd -r -g news -d %{_sysconfdir}/news -s /sbin/nologin \
Roman Rakus 97187ab
    -c "cleanfeed user" news
Roman Rakus 97187ab
exit 0
Roman Rakus 97187ab
cvsdist 0512e87
%install
cvsdist 0512e87
rm -rf $RPM_BUILD_ROOT
Roman Rakus acb11d3
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/news
Roman Rakus acb11d3
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/news/bin/filter
Roman Rakus acb11d3
install -m 0644 cleanfeed.local.sample $RPM_BUILD_ROOT/%{_sysconfdir}/news/cleanfeed.local
Roman Rakus acb11d3
install -m 0644 bad_* $RPM_BUILD_ROOT/%{_sysconfdir}/news/
Roman Rakus acb11d3
install -m 0755 filter_innd.pl \
Roman Rakus acb11d3
	$RPM_BUILD_ROOT/%{_datadir}/news/bin/filter/filter_innd.pl
cvsdist 0512e87
cvsdist 0512e87
%clean
cvsdist 0512e87
rm -rf $RPM_BUILD_ROOT
cvsdist 0512e87
cvsdist 0512e87
%files
Roman Rakus acb11d3
%defattr(-,root,root,-)
Roman Rakus acb11d3
%doc CHANGES README HACKING TODO LICENSE
Roman Rakus acb11d3
%attr(-,news,news) %config(noreplace)  %{_sysconfdir}/news/cleanfeed.local
Roman Rakus acb11d3
%attr(-,news,news) %config(noreplace)  %{_sysconfdir}/news/bad_*
Roman Rakus acb11d3
%attr(755,news,news) %dir %{_datadir}/news/bin/filter
Roman Rakus acb11d3
%attr(-,news,news) %{_datadir}/news/bin/filter/filter_innd.pl
cvsdist 0512e87
cvsdist 0512e87
%changelog
Roman Rakus 97187ab
* Mon Feb 20 2012 Roman Rakus <rrakus@redhat.com> - 20020501-6
Roman Rakus 97187ab
- create user and group if needed
Roman Rakus 97187ab
  Resolves: #786940
Roman Rakus 97187ab
a79564b
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20020501-5
a79564b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a79564b
Roman Rakus acb11d3
* Fri Jul 23 2010 Roman Rakus <rrakus@redhat.com> - 20020501-4
Roman Rakus acb11d3
- Merge Review changes (#225645)
Roman Rakus acb11d3
8cbb60c
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20020501-3
8cbb60c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8cbb60c
f39f1d2
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20020501-2
f39f1d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f39f1d2
6d96923
* Wed Aug  6 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 20020501-1
6d96923
- update to 20020501
6d96923
- fix license tag
6d96923
Roman Rakus b35a50d
* Wed Jul 23 2008 Roman Rakus <rrakus@redhat.com> - 0.95.7b-23
Roman Rakus b35a50d
- Mark config file cleanfeed.conf as noreplace
Roman Rakus b35a50d
Roman Rakus bb7eaa8
* Mon Jun 16 2008 Roman Rakus <rrakus@redhat.com> - 0.95.7b-22
Roman Rakus bb7eaa8
- Added dist to release tag
Roman Rakus bb7eaa8
71d084b
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.95.7b-21.1.1
71d084b
- rebuild
71d084b
255ff04
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
255ff04
- rebuilt
255ff04
421c2ed
* Tue Sep 21 2004 Than Ngo <than@redhat.com> 0.95.7b-21
421c2ed
- rebuilt
421c2ed
cvsdist acaa353
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist acaa353
- rebuilt
cvsdist acaa353
cvsdist 2bdf910
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
cvsdist 2bdf910
- rebuilt
cvsdist 2bdf910
cvsdist 2bdf910
* Tue Nov 19 2002 Tim Powers <timp@redhat.com>
cvsdist 2bdf910
- rebuild in current collinst
cvsdist 2bdf910
cvsdist 5cfc347
* Mon Jul 29 2002 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist 5cfc347
- adjust dir perms #70016
cvsdist 5cfc347
cvsdist b340a18
* Tue Jul 23 2002 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist b340a18
- adjust path for newest inn package
cvsdist b340a18
cvsdist b340a18
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
cvsdist b340a18
- automated rebuild
cvsdist b340a18
cvsdist b340a18
* Thu May 23 2002 Tim Powers <timp@redhat.com>
cvsdist b340a18
- automated rebuild
cvsdist b340a18
cvsdist b340a18
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
cvsdist b340a18
- automated rebuild
cvsdist b340a18
cvsdist 9bd8be9
* Mon Jun 18 2001 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 9bd8be9
- move buildroot to %%{_tmppath}
cvsdist 9bd8be9
- s/Copyright:/License:/
cvsdist 9bd8be9
- rebuild in new environment to get perl requirements
cvsdist 9bd8be9
cvsdist 7ccb508
* Wed May 09 2001 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist 7ccb508
- fix ro-variable bug #39228
cvsdist 7ccb508
cvsdist 0512e87
* Sun Aug  6 2000 Florian La Roche <Florian.LaRoche@redhat.com>
cvsdist 0512e87
- add dir /usr/bin/filter/ with perms like in inn
cvsdist 0512e87
cvsdist 0512e87
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
cvsdist 0512e87
- automatic rebuild
cvsdist 0512e87
cvsdist 0512e87
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
cvsdist 0512e87
- automatic rebuild
cvsdist 0512e87
cvsdist 0512e87
* Sun Jun 18 2000 Matt Wilson <msw@redhat.com>
cvsdist 0512e87
- use %%{_mandir}
cvsdist 0512e87
- buildable as non-root
cvsdist 0512e87
cvsdist 0512e87
* Thu Mar 02 2000 Cristian Gafton <gafton@redhat.com>
cvsdist 0512e87
- fix location to match inn-2.2.2 in /usr/bin/filter
cvsdist 0512e87
cvsdist 0512e87
* Thu Feb 03 2000 Cristian Gafton <gafton@redhat.com>
cvsdist 0512e87
- fix description
cvsdist 0512e87
- man pages are compressed
cvsdist 0512e87
cvsdist 0512e87
* Tue Aug 10 1999 Cristian Gafton <gafton@redhat.com>
cvsdist 0512e87
- don't require perl-MD5 anymore (that was merged in the main perl package)
cvsdist 0512e87
cvsdist 0512e87
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
cvsdist 0512e87
- auto rebuild in the new build environment (release 3)
cvsdist 0512e87
cvsdist 0512e87
* Thu Jan 21 1999 Bill Nottingham <notting@redhat.com>
cvsdist 0512e87
- build for 6.0
cvsdist 0512e87
cvsdist 0512e87
* Thu Sep 03 1998 Cristian Gafton <gafton@redhat.com>
cvsdist 0512e87
- update to 0.95.7b
cvsdist 0512e87
cvsdist 0512e87
* Fri May 01 1998 Cristian Gafton <gafton@redhat.com>
cvsdist 0512e87
- spec file cleanups
cvsdist 0512e87
- patch to get rod of /usr/local/bin/perl
cvsdist 0512e87
cvsdist 0512e87
* Mon Apr 13 1998 Bryan C. Andregg <bandregg@redhat.com>
cvsdist 0512e87
- first package
cvsdist 0512e87