/[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.1 - (show annotations) (download)
Sun Jan 14 16:23:26 2007 UTC (17 years, 4 months ago) by slords
Branch: MAIN
Branch point for: SPAMASSASSIN-BOTNET
Initial revision

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 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
34 %install
35 # Determine the proper perl directory:
36 eval `%{__perl} -V:installsitelib`
37
38 install -d %{buildroot}$installsitelib/Mail/SpamAssassin/Plugin/
39 install -d %{buildroot}%{_sysconfdir}/mail/spamassassin/
40 install -d %{buildroot}%{_bindir}
41
42
43 install -m 644 Botnet.cf %{buildroot}%{_sysconfdir}/mail/spamassassin/Botnet.cf
44 install -m 444 Botnet.pm %{buildroot}$installsitelib/Mail/SpamAssassin/Plugin/Botnet.pm
45 install -m 444 Botnet.pl %{buildroot}$installsitelib/Mail/SpamAssassin/Plugin/Botnet.pl
46
47
48 # List files in perl directories above
49 find %{buildroot}$installsitelib -type f \
50 | %{__perl} -pi -e 's#^%{buildroot}##g' > %{name}-%{version}-%{release}-filelist
51
52 %pre
53
54 %post
55
56 %postun
57
58 %clean
59 rm -rf %{buildroot}
60
61
62 %files -f %{name}-%{version}-%{release}-filelist
63 %defattr(-,root,root)
64 %doc COPYING INSTALL Botnet.txt Botnet.variants.txt Botnet.credits.txt Botnet.api.txt
65
66 %config(noreplace) %{_sysconfdir}/mail/spamassassin/*
67
68 %changelog
69 * Sat Jan 13 2007 Greg Swallow <greg@runlevel7.ca> 0.7-1
70 - add patch to allow Botnet.pm to be in another directory
71 - new package
72

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