/[smeserver]/spamassassin-botnet/F/spamassassin-botnet.spec
ViewVC logotype

Contents of /spamassassin-botnet/F/spamassassin-botnet.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Sun Jan 14 16:27:13 2007 UTC (17 years, 4 months ago) by slords
Branch: MAIN
Changes since 1.1: +2 -0 lines
Sun Jan 14 09:27:07 2007                                        slords

See changelog
----------------------------------------------------------------------

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed