comparison dnsbl.spec.in @ 241:315c53fbbb77

chkconfig -del in %%preun, not %%postun
author Carl Byington <carl@five-ten-sg.com>
date Fri, 19 Nov 2010 10:34:33 -0800
parents c0d2e99c0a1d
children d8ee4c97b9ab
comparison
equal deleted inserted replaced
240:536d59c3a7b8 241:315c53fbbb77
1 %define localstatedir /var/lib 1 %define localstatedir /var/lib
2 2
3 Summary: Sendmail milter for spam control 3 Summary: Sendmail milter for spam control
4 Name: @PACKAGE@ 4 Name: @PACKAGE@
5 Version: @VERSION@ 5 Version: @VERSION@
6 Release: 1%{?dist} 6 Release: 2%{?dist}
7 License: GPLv3+ 7 License: GPLv3+
8 Group: System Environment/Daemons 8 Group: System Environment/Daemons
9 Source: http://www.five-ten-sg.com/%{name}/packages/%{name}-%{version}.tar.gz 9 Source: http://www.five-ten-sg.com/%{name}/packages/%{name}-%{version}.tar.gz
10 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) 10 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
11 URL: http://www.five-ten-sg.com/%{name}/ 11 URL: http://www.five-ten-sg.com/%{name}/
69 echo "INPUT_MAIL_FILTER(\`dnsbl', \`S=local:/var/run/dnsbl/dnsbl.sock, F=T, T=C:30s;S:5m;R:5m;E:5m')" 69 echo "INPUT_MAIL_FILTER(\`dnsbl', \`S=local:/var/run/dnsbl/dnsbl.sock, F=T, T=C:30s;S:5m;R:5m;E:5m')"
70 echo 70 echo
71 71
72 72
73 %preun 73 %preun
74 [ $1 = 0 ] && /sbin/service %{name} stop || : 74 [ $1 = 0 ] && /sbin/service %{name} stop || :
75 [ $1 = 0 ] && /sbin/chkconfig --del %{name} || :
75 76
76 77
77 %postun 78 %postun
78 [ $1 = 0 ] && /sbin/chkconfig --del %{name}
79 [ $1 = 0 ] && userdel %{name} || : 79 [ $1 = 0 ] && userdel %{name} || :
80 80
81 81
82 %clean 82 %clean
83 rm -rf $RPM_BUILD_ROOT 83 rm -rf $RPM_BUILD_ROOT
94 /etc/rc.d/init.d/%{name} 94 /etc/rc.d/init.d/%{name}
95 %dir %attr(0750,%{name},root) /var/run/%{name} 95 %dir %attr(0750,%{name},root) /var/run/%{name}
96 96
97 97
98 %changelog 98 %changelog
99 * Thu Jul 22 2010 Carl Byington <carl@five-ten-sg.com> - 6.25-2
100 - chkconfig -del in %%preun, not %%postun
101
99 * Tue Sep 29 2009 Carl Byington <carl@five-ten-sg.com> - 6.25-1 102 * Tue Sep 29 2009 Carl Byington <carl@five-ten-sg.com> - 6.25-1
100 - Add surbl checks on the smtp helo value, client reverse dns name, 103 - Add surbl checks on the smtp helo value, client reverse dns name,
101 and mail from domain name. 104 and mail from domain name.
102 105
103 * Tue Jun 09 2009 Carl Byington <carl@five-ten-sg.com> - 6.24-1 106 * Tue Jun 09 2009 Carl Byington <carl@five-ten-sg.com> - 6.24-1