Name: spamassassin-botnet Version: 0.7 Release: %smerelease 1 Packager: %{_packager} 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 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 %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 * Sat Jan 13 2007 Greg Swallow 0.7-1 - add patch to allow Botnet.pm to be in another directory - new package