1 |
Name: spamassassin-botnet |
2 |
Version: 0.8 |
3 |
Release: 2%{?dist} |
4 |
Summary: A botnet plugin for SpamAssassin |
5 |
|
6 |
Group: Development/Libraries |
7 |
License: GPL |
8 |
URL: http://people.ucsc.edu/~jrudd/spamassassin/ |
9 |
Source0: http://people.ucsc.edu/~jrudd/spamassassin/Botnet-%{version}.tar |
10 |
Patch0: spamassassin-botnet-0.7.location.patch |
11 |
Patch1: spamassassin-botnet-0.7-trustip.patch |
12 |
Patch2: spamassassin-botnet-0.8-dnsresolver.patch |
13 |
|
14 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
15 |
BuildArch: noarch |
16 |
|
17 |
Requires: perl(Net::DNS) |
18 |
Requires: spamassassin >= 3.1.4 |
19 |
|
20 |
%description |
21 |
Botnet looks for possible botnet sources of email by checking various |
22 |
DNS values that indicate things such as other ISP's clients or |
23 |
workstations, or misconfigured DNS settings that are more likely to |
24 |
happen with client or workstation addresses than servers. |
25 |
|
26 |
Botnet looks in the Untrusted Relays pseudoheader. It defaults to |
27 |
looking at the first relay in that list. However, certain options |
28 |
allow it to skip past relays in that list (or not score a hit if it |
29 |
finds certain relays). |
30 |
|
31 |
|
32 |
%prep |
33 |
%setup -q -c Botnet |
34 |
%patch0 -p1 |
35 |
%patch1 -p1 |
36 |
%patch2 -p1 |
37 |
|
38 |
%install |
39 |
# Determine the proper perl directory: |
40 |
eval `%{__perl} -V:installsitelib` |
41 |
|
42 |
install -d %{buildroot}$installsitelib/Mail/SpamAssassin/Plugin/ |
43 |
install -d %{buildroot}%{_sysconfdir}/mail/spamassassin/ |
44 |
install -d %{buildroot}%{_bindir} |
45 |
|
46 |
|
47 |
install -m 644 Botnet.cf %{buildroot}%{_sysconfdir}/mail/spamassassin/Botnet.cf |
48 |
install -m 444 Botnet.pm %{buildroot}$installsitelib/Mail/SpamAssassin/Plugin/Botnet.pm |
49 |
install -m 444 Botnet.pl %{buildroot}$installsitelib/Mail/SpamAssassin/Plugin/Botnet.pl |
50 |
|
51 |
|
52 |
# List files in perl directories above |
53 |
find %{buildroot}$installsitelib -type f \ |
54 |
| %{__perl} -pi -e 's#^%{buildroot}##g' > %{name}-%{version}-%{release}-filelist |
55 |
|
56 |
%pre |
57 |
|
58 |
%post |
59 |
|
60 |
%postun |
61 |
|
62 |
%clean |
63 |
rm -rf %{buildroot} |
64 |
|
65 |
|
66 |
%files -f %{name}-%{version}-%{release}-filelist |
67 |
%defattr(-,root,root) |
68 |
%doc COPYING INSTALL Botnet.txt Botnet.variants.txt Botnet.credits.txt Botnet.api.txt |
69 |
|
70 |
%config(noreplace) %{_sysconfdir}/mail/spamassassin/* |
71 |
|
72 |
%changelog |
73 |
* Mon Aug 27 2007 Greg Swallow <greg@runlevel7.ca> 0.8-2 |
74 |
- update to botnet 0.8 |
75 |
- plus patch from http://www200.pair.com/mecham/spam/botnet8patch.txt |
76 |
that was suggested on the spamassassin users list, but not included |
77 |
with 0.8 |
78 |
|
79 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
80 |
- Clean up spec so package can be built by koji/plague |
81 |
|
82 |
* Sat Jan 13 2007 Greg Swallow <greg@runlevel7.ca> 0.7-1 |
83 |
- add patch to allow Botnet.pm to be in another directory |
84 |
- new package |
85 |
|