Name: spamassassin-botnet Version: 0.8 Release: 2%{?dist} Summary: A botnet plugin for SpamAssassin Group: Development/Libraries License: GPL URL: http://people.ucsc.edu/~jrudd/spamassassin/ Source0: http://people.ucsc.edu/~jrudd/spamassassin/Botnet-%{version}.tar Patch0: spamassassin-botnet-0.7.location.patch Patch1: spamassassin-botnet-0.7-trustip.patch Patch2: spamassassin-botnet-0.8-dnsresolver.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: perl(Net::DNS) Requires: spamassassin >= 3.1.4 %description Botnet looks for possible botnet sources of email by checking various DNS values that indicate things such as other ISP's clients or workstations, or misconfigured DNS settings that are more likely to happen with client or workstation addresses than servers. Botnet looks in the Untrusted Relays pseudoheader. It defaults to looking at the first relay in that list. However, certain options allow it to skip past relays in that list (or not score a hit if it finds certain relays). %prep %setup -q -c Botnet %patch0 -p1 %patch1 -p1 %patch2 -p1 %install # Determine the proper perl directory: eval `%{__perl} -V:installsitelib` install -d %{buildroot}$installsitelib/Mail/SpamAssassin/Plugin/ install -d %{buildroot}%{_sysconfdir}/mail/spamassassin/ install -d %{buildroot}%{_bindir} install -m 644 Botnet.cf %{buildroot}%{_sysconfdir}/mail/spamassassin/Botnet.cf install -m 444 Botnet.pm %{buildroot}$installsitelib/Mail/SpamAssassin/Plugin/Botnet.pm install -m 444 Botnet.pl %{buildroot}$installsitelib/Mail/SpamAssassin/Plugin/Botnet.pl # List files in perl directories above find %{buildroot}$installsitelib -type f \ | %{__perl} -pi -e 's#^%{buildroot}##g' > %{name}-%{version}-%{release}-filelist %pre %post %postun %clean rm -rf %{buildroot} %files -f %{name}-%{version}-%{release}-filelist %defattr(-,root,root) %doc COPYING INSTALL Botnet.txt Botnet.variants.txt Botnet.credits.txt Botnet.api.txt %config(noreplace) %{_sysconfdir}/mail/spamassassin/* %changelog * Mon Aug 27 2007 Greg Swallow 0.8-2 - update to botnet 0.8 - plus patch from http://www200.pair.com/mecham/spam/botnet8patch.txt that was suggested on the spamassassin users list, but not included with 0.8 * Sun Apr 29 2007 Shad L. Lords - Clean up spec so package can be built by koji/plague * Sat Jan 13 2007 Greg Swallow 0.7-1 - add patch to allow Botnet.pm to be in another directory - new package