Roman Rakus acb11d3
Summary: A spam filter for Usenet news servers
cvsdist 0512e87
Name: cleanfeed
6d96923
Version: 20020501
e71d123
Release: 31%{?dist}
6d96923
# Confirmed with upstream, website
6d96923
License: Artistic 2.0
6d96923
URL: http://www.bofh.it/~md/cleanfeed/
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
2e584ba
BuildRequires: perl-generators
Dominik Mierzejewski fc19974
BuildRequires: sed
Roman Rakus d232c48
Requires(pre): shadow-utils
Roman Rakus d232c48
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 d232c48
%pre
Roman Rakus d232c48
getent group news >/dev/null || groupadd -r news
Roman Rakus d232c48
getent passwd news >/dev/null || \
Roman Rakus d232c48
    useradd -r -g news -d %{_sysconfdir}/news -s /sbin/nologin \
Roman Rakus d232c48
    -c "cleanfeed user" news
Roman Rakus d232c48
exit 0
Roman Rakus d232c48
cvsdist 0512e87
%install
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
%files
Dominik Mierzejewski fc19974
%license LICENSE
Dominik Mierzejewski fc19974
%doc CHANGES README HACKING TODO
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
e71d123
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 20020501-31
e71d123
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
e71d123
caa024f
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 20020501-30
caa024f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
caa024f
b06270f
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 20020501-29
b06270f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
b06270f
7ce4da2
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 20020501-28
7ce4da2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
7ce4da2
1c508e3
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 20020501-27
1c508e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
1c508e3
8dd1187
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 20020501-26
8dd1187
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
8dd1187
402e285
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20020501-25
402e285
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
402e285
2eec01a
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20020501-24
2eec01a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2eec01a
f090b0b
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20020501-23
f090b0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f090b0b
5394b2e
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20020501-22
5394b2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
5394b2e
950a053
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20020501-21
950a053
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
950a053
2f783a5
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20020501-20
2f783a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2f783a5
1458ee2
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20020501-19
1458ee2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1458ee2
db0b590
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20020501-18
db0b590
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
db0b590
452d863
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20020501-17
452d863
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
452d863
18253de
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20020501-16
18253de
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
18253de
d33f6a8
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 20020501-15
d33f6a8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d33f6a8
17da620
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20020501-14
17da620
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
17da620
Dominik Mierzejewski fc19974
* Thu Feb 12 2015 Dominik Mierzejewski <rpm@greysector.net> - 20020501-12
Dominik Mierzejewski fc19974
- clean up spec file
Dominik Mierzejewski fc19974
- add sed to BR
Dominik Mierzejewski fc19974
c935b0b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20020501-12
c935b0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c935b0b
33165eb
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20020501-11
33165eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
33165eb
7ce9799
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 20020501-10
7ce9799
- Perl 5.18 rebuild
7ce9799
dd63dbb
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20020501-9
dd63dbb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
dd63dbb
37015d3
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20020501-8
37015d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
37015d3
Roman Rakus d232c48
* Mon Feb 20 2012 Roman Rakus <rrakus@redhat.com> - 20020501-7
Roman Rakus d232c48
- create user and group if needed
Roman Rakus d232c48
  Resolves: #786940
Roman Rakus d232c48
836fef2
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20020501-6
836fef2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
836fef2
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