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