annotate dnsbl.spec.in @ 112:96b2eb7f25f5

move to autoconf/automake/docbook
author carl
date Sun, 18 Dec 2005 16:56:38 -0800
parents d9c64bafbf60
children a893afee4b80
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
1 %define localstatedir /var/lib
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
2
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
3 Summary: @PACKAGE@ Sendmail Milter
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
4 Name: @PACKAGE@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
5 Version: @VERSION@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
6 Release: %{?custom_release}%{!?custom_release:1}
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
7 Copyright: GPL
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
8 Group: System Environment/Daemons
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
9 Source: http://www.five-ten-sg.com/@PACKAGE@/packages/@PACKAGE@-@VERSION@.tar.gz
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
10 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
11 URL: http://www.five-ten-sg.com/@PACKAGE@/
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
12 Vendor: 510 Software Group
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
13 Packager: 510 Software Group
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
14
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
15 Requires(pre): /usr/sbin/groupadd
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
16 Requires(pre): /usr/sbin/useradd
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
17 Requires(pre): /usr/bin/getent
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
18 Requires(postun): /usr/sbin/userdel
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
19 Requires(postun): /usr/sbin/groupdel
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
20 Requires(post,preun): /sbin/chkconfig
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
21 BuildRequires: sendmail-devel >= 8.12.1
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
22 Requires: sendmail >= 8.12.1
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
23 Requires: sendmail-cf
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
24
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
25
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
26 %description
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
27 We present here a mechanism whereby the backup mail server can use the correct set of DNSBLs for each recipient for each message. As a side-effect, it gives us the ability to customize the set of DNSBLs on a per-recipient basis, so that fred@example.com could use SPEWS and the SBL, where all other users @example.com use only the SBL.
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
28
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
29 This milter will also decode (base64, mime, html entity, url encodings) and scan for HTTP and HTTPS URLs and bare hostnames in the body of the mail. If any of those host names have A or NS records on the SBL (or a single configurable DNSBL), the mail will be rejected unless previously whitelisted. This milter also counts the number of invalid HTML tags, and can reject mail if that count exceeds your specified limit.
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
30
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
31 The DNSBL milter reads a text configuration file (dnsbl.conf) on startup, and whenever the config file (or any of the referenced include files) is changed. The entire configuration file is case insensitive.
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
32
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
33
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
34 %prep
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
35
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
36
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
37 %setup
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
38
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
39
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
40 %build
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
41 ./configure --prefix=%{_prefix} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
42 --bindir=%{_bindir} --mandir=%{_mandir} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
43 --localstatedir=%{localstatedir} --libdir=%{_libdir} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
44 --datadir=%{_datadir} --includedir=%{_includedir} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
45 --sysconfdir=%{_sysconfdir}
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
46 make
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
47
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
48
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
49 %install
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
50 if [ "$RPM_BUILD_ROOT" = "/" -o -z "$RPM_BUILD_ROOT" ] ; then
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
51 echo sorry, you probably do not want me to delete the old buildroot at $RPM_BUILD_ROOT
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
52 exit 1
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
53 fi
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
54 rm -rf $RPM_BUILD_ROOT
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
55 make prefix=$RPM_BUILD_ROOT%{_prefix} bindir=$RPM_BUILD_ROOT%{_bindir} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
56 mandir=$RPM_BUILD_ROOT%{_mandir} libdir=$RPM_BUILD_ROOT%{_libdir} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
57 localstatedir=$RPM_BUILD_ROOT%{localstatedir} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
58 datadir=$RPM_BUILD_ROOT%{_datadir} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
59 includedir=$RPM_BUILD_ROOT%{_includedir} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
60 sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} install
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
61 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
62 mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/@PACKAGE@-@VERSION@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
63 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/dnsbl/dnsbl $RPM_BUILD_ROOT/etc/rc.d/init.d
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
64 mv AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%{_datadir}/doc/@PACKAGE@-@VERSION@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
65 mkdir -p %{buildroot}/var/run/@PACKAGE@
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
66
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
67
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
68 %pre
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
69 /usr/bin/getent passwd dnsbl ||
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
70 useradd -r -d /etc/dnsbl -M -c "dnsbl pseudo-user" -s /sbin/nologin dnsbl
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
71
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
72
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
73 %post
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
74 /sbin/chkconfig --add @PACKAGE@
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
75 /sbin/chkconfig dnsbl on
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
76 /sbin/service dnsbl start
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
77
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
78 echo Remember to edit %{_sysconfdir}/@PACKAGE@/@PACKAGE@.conf and add the following line to your sendmail.mc:
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
79 echo "INPUT_MAIL_FILTER(\`dnsbl\', \`S=local:/var/run/dnsbl/dnsbl.sock, F=T, T=C:30s;S:5m;R:5m;E:5m\')"
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
80 echo
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
81
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
82
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
83 %preun
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
84 /sbin/service @PACKAGE@ stop || :
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
85 /sbin/chkconfig --del @PACKAGE@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
86 userdel @PACKAGE@ || :
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
87
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
88
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
89 %postun
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
90
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
91
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
92 %clean
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
93
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
94 %files
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
95 %defattr(-,root,root)
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
96 %{_sbindir}/*
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
97 %doc %{_mandir}/*
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
98 %docdir %{_datadir}/doc/@PACKAGE@-@VERSION@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
99 %{_datadir}/doc/@PACKAGE@-@VERSION@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
100 %config(noreplace) %{_sysconfdir}/@PACKAGE@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
101 %config(noreplace) %{_sysconfdir}/@PACKAGE@/*.conf
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
102 /etc/rc.d/init.d/@PACKAGE@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
103 %dir %attr(0750,@PACKAGE@,root) /var/run/@PACKAGE@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
104
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
105
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
106 %changelog
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
107 * Sun Dec 18 2005 Carl Byington 1.0
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
108 - use autoconf and http://www.fedora.us/docs/rpm-packaging-guidelines.html
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
109
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
110 * Tue Jan 03 2005 Carl Byington 1.4
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
111 - added hosts-ignore conf file
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
112 - see RELEASE_NOTES
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
113
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
114 * Thu Jul 15 2004 John Gunkel <antispam@boing.ca> 1.3
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
115 - patch to rc file no longer needed
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
116 - see RELEASE_NOTES
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
117
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
118 * Mon Jul 05 2004 John Gunkel <jgunkel@palliser.ca> 1.2
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
119 - Fixed some typos
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
120 - removed patch into separate file
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
121 - added config migration as suggested by Carl
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
122 - Added reminder to edit sendmail.mc
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
123
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
124 * Wed Jun 30 2004 John Gunkel <jgunkel@palliser.ca> 1.1
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
125 - Initial revision of spec file. Need to add a better description, docs and a sendmail.mc message
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
126