comparison dnsbl.spec.in @ 113:a893afee4b80 stable-5-11

move to autoconf/automake/docbook
author carl
date Tue, 20 Dec 2005 17:35:16 -0800
parents 96b2eb7f25f5
children aa07452e641b
comparison
equal deleted inserted replaced
112:96b2eb7f25f5 113:a893afee4b80
9 Source: http://www.five-ten-sg.com/@PACKAGE@/packages/@PACKAGE@-@VERSION@.tar.gz 9 Source: http://www.five-ten-sg.com/@PACKAGE@/packages/@PACKAGE@-@VERSION@.tar.gz
10 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot 10 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
11 URL: http://www.five-ten-sg.com/@PACKAGE@/ 11 URL: http://www.five-ten-sg.com/@PACKAGE@/
12 Vendor: 510 Software Group 12 Vendor: 510 Software Group
13 Packager: 510 Software Group 13 Packager: 510 Software Group
14 AutoReqProv: no
14 15
15 Requires(pre): /usr/sbin/groupadd
16 Requires(pre): /usr/sbin/useradd 16 Requires(pre): /usr/sbin/useradd
17 Requires(pre): /usr/bin/getent 17 Requires(pre): /usr/bin/getent
18 Requires(postun): /usr/sbin/userdel 18 Requires(postun): /usr/sbin/userdel
19 Requires(postun): /usr/sbin/groupdel
20 Requires(post,preun): /sbin/chkconfig 19 Requires(post,preun): /sbin/chkconfig
20 Requires(post,preun): /sbin/service
21 BuildRequires: sendmail-devel >= 8.12.1 21 BuildRequires: sendmail-devel >= 8.12.1
22 Requires: sendmail >= 8.12.1 22 Requires: sendmail >= 8.12.1
23 Requires: sendmail-cf 23 Requires: sendmail-cf
24 Requires: libc.so.6, libgcc_s.so.1, libm.so.6, libpthread.so.0, libstdc++.so.6
24 25
25 26
26 %description 27 %description
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. 28 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.
28 29
64 mv AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%{_datadir}/doc/@PACKAGE@-@VERSION@ 65 mv AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%{_datadir}/doc/@PACKAGE@-@VERSION@
65 mkdir -p %{buildroot}/var/run/@PACKAGE@ 66 mkdir -p %{buildroot}/var/run/@PACKAGE@
66 67
67 68
68 %pre 69 %pre
69 /usr/bin/getent passwd dnsbl || 70 /usr/bin/getent passwd dnsbl >/dev/null ||
70 useradd -r -d /etc/dnsbl -M -c "dnsbl pseudo-user" -s /sbin/nologin dnsbl 71 useradd -r -d /etc/dnsbl -M -c "dnsbl pseudo-user" -s /sbin/nologin dnsbl
71 72
72 73
73 %post 74 %post
74 /sbin/chkconfig --add @PACKAGE@ 75 /sbin/chkconfig --add @PACKAGE@
75 /sbin/chkconfig dnsbl on
76 /sbin/service dnsbl start
77 76
78 echo Remember to edit %{_sysconfdir}/@PACKAGE@/@PACKAGE@.conf and add the following line to your sendmail.mc: 77 echo Remember to edit %{_sysconfdir}/@PACKAGE@/@PACKAGE@.conf and add the following line to your sendmail.mc:
79 echo "INPUT_MAIL_FILTER(\`dnsbl\', \`S=local:/var/run/dnsbl/dnsbl.sock, F=T, T=C:30s;S:5m;R:5m;E:5m\')" 78 echo "INPUT_MAIL_FILTER(\`dnsbl', \`S=local:/var/run/dnsbl/dnsbl.sock, F=T, T=C:30s;S:5m;R:5m;E:5m')"
80 echo 79 echo
81 80
82 81
83 %preun 82 %preun
84 /sbin/service @PACKAGE@ stop || : 83 /sbin/service @PACKAGE@ stop || :