comparison dnsbl.spec.in @ 169:44021d570958

fix pre/post scripts in rpm spec file
author carl
date Thu, 30 Aug 2007 12:05:44 -0700
parents 5809bcdc325b
children da0c41b9f672
comparison
equal deleted inserted replaced
168:6bac960af6b4 169:44021d570958
66 mv AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%{_datadir}/doc/@PACKAGE@-@VERSION@ 66 mv AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%{_datadir}/doc/@PACKAGE@-@VERSION@
67 mkdir -p %{buildroot}/var/run/@PACKAGE@ 67 mkdir -p %{buildroot}/var/run/@PACKAGE@
68 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/@PACKAGE@/autowhite 68 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/@PACKAGE@/autowhite
69 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/@PACKAGE@/.spamassassin 69 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/@PACKAGE@/.spamassassin
70 70
71
71 %pre 72 %pre
73 /usr/bin/getent passwd @PACKAGE@ >/dev/null || useradd -r -d %{_sysconfdir}/@PACKAGE@ -M -c "@PACKAGE@ pseudo-user" -s /sbin/nologin @PACKAGE@ >/dev/null
72 74
73 75
74 %post 76 %post
75 /usr/bin/getent passwd @PACKAGE@ >/dev/null || useradd -r -d %{_sysconfdir}/@PACKAGE@ -M -c "@PACKAGE@ pseudo-user" -s /sbin/nologin @PACKAGE@ >/dev/null
76 /sbin/chkconfig --add @PACKAGE@ 77 /sbin/chkconfig --add @PACKAGE@
77 echo Remember to edit %{_sysconfdir}/@PACKAGE@/@PACKAGE@.conf and add the following line to your sendmail.mc: 78 echo Remember to edit %{_sysconfdir}/@PACKAGE@/@PACKAGE@.conf and add the following line to your sendmail.mc:
78 echo "INPUT_MAIL_FILTER(\`dnsbl', \`S=local:/var/run/dnsbl/dnsbl.sock, F=T, T=C:30s;S:5m;R:5m;E:5m')" 79 echo "INPUT_MAIL_FILTER(\`dnsbl', \`S=local:/var/run/dnsbl/dnsbl.sock, F=T, T=C:30s;S:5m;R:5m;E:5m')"
79 echo 80 echo
80 81
81 82
82 %preun 83 %preun
83 /sbin/service @PACKAGE@ stop || : 84 [ $1 = 0 ] && /sbin/service @PACKAGE@ stop || :
84 85
85 86
86 %postun 87 %postun
87 [ $1 = 0 ] && /sbin/chkconfig --del @PACKAGE@ 88 [ $1 = 0 ] && /sbin/chkconfig --del @PACKAGE@
88 [ $1 = 0 ] && userdel @PACKAGE@ || : 89 [ $1 = 0 ] && userdel @PACKAGE@ || :
102 %dir %attr(0750,@PACKAGE@,root) %{_sysconfdir}/@PACKAGE@/autowhite 103 %dir %attr(0750,@PACKAGE@,root) %{_sysconfdir}/@PACKAGE@/autowhite
103 %dir %attr(0750,@PACKAGE@,root) %{_sysconfdir}/@PACKAGE@/.spamassassin 104 %dir %attr(0750,@PACKAGE@,root) %{_sysconfdir}/@PACKAGE@/.spamassassin
104 105
105 106
106 %changelog 107 %changelog
108 * Thu Aug 30 2007 Carl Byington 6.07
109 - Add generic rdns filtering, fix pre/post scripts
110
107 * Sun Aug 26 2007 Carl Byington 6.04 111 * Sun Aug 26 2007 Carl Byington 6.04
108 - require spamassassin 112 - require spamassassin
109 113
110 * Sat Jul 07 2007 Carl Byington 6.01 114 * Sat Jul 07 2007 Carl Byington 6.01
111 - GPL3, auto whitelisting 115 - GPL3, auto whitelisting