Mercurial > dnsbl
comparison dnsbl.spec.in @ 135:8e813497582e stable-5-20
fix rpm scripts
author | carl |
---|---|
date | Wed, 02 Aug 2006 21:33:34 -0700 |
parents | b8ce1b31237d |
children | c7fc218686f5 |
comparison
equal
deleted
inserted
replaced
134:f9917ce924a3 | 135:8e813497582e |
---|---|
65 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@ |
66 mkdir -p %{buildroot}/var/run/@PACKAGE@ | 66 mkdir -p %{buildroot}/var/run/@PACKAGE@ |
67 | 67 |
68 | 68 |
69 %pre | 69 %pre |
70 /usr/bin/getent passwd @PACKAGE@ >/dev/null || useradd -r -d %{_sysconfdir}/@PACKAGE@ -M -c "@PACKAGE@ pseudo-user" -s /sbin/nologin @PACKAGE@ | |
71 | 70 |
72 | 71 |
73 %post | 72 %post |
73 /usr/bin/getent passwd @PACKAGE@ >/dev/null || useradd -r -d %{_sysconfdir}/@PACKAGE@ -M -c "@PACKAGE@ pseudo-user" -s /sbin/nologin @PACKAGE@ | |
74 /sbin/chkconfig --add @PACKAGE@ | 74 /sbin/chkconfig --add @PACKAGE@ |
75 echo Remember to edit %{_sysconfdir}/@PACKAGE@/@PACKAGE@.conf and add the following line to your sendmail.mc: | 75 echo Remember to edit %{_sysconfdir}/@PACKAGE@/@PACKAGE@.conf and add the following line to your sendmail.mc: |
76 echo "INPUT_MAIL_FILTER(\`dnsbl', \`S=local:/var/run/dnsbl/dnsbl.sock, F=T, T=C:30s;S:5m;R:5m;E:5m')" | 76 echo "INPUT_MAIL_FILTER(\`dnsbl', \`S=local:/var/run/dnsbl/dnsbl.sock, F=T, T=C:30s;S:5m;R:5m;E:5m')" |
77 echo | 77 echo |
78 | 78 |
79 | 79 |
80 %preun | 80 %preun |
81 /sbin/service @PACKAGE@ stop || : | 81 /sbin/service @PACKAGE@ stop || : |
82 /sbin/chkconfig --del @PACKAGE@ | |
83 userdel @PACKAGE@ || : | |
84 | 82 |
85 | 83 |
86 %postun | 84 %postun |
85 [ $1 = 0 ] && /sbin/chkconfig --del @PACKAGE@ | |
86 [ $1 = 0 ] && userdel @PACKAGE@ || : | |
87 | 87 |
88 | 88 |
89 %clean | 89 %clean |
90 | 90 |
91 %files | 91 %files |
98 /etc/rc.d/init.d/@PACKAGE@ | 98 /etc/rc.d/init.d/@PACKAGE@ |
99 %dir %attr(0750,@PACKAGE@,root) /var/run/@PACKAGE@ | 99 %dir %attr(0750,@PACKAGE@,root) /var/run/@PACKAGE@ |
100 | 100 |
101 | 101 |
102 %changelog | 102 %changelog |
103 * Wed Aug 02 2006 Carl Byington 5.20 | |
104 - http://www.rpm.org/max-rpm/s1-rpm-inside-scripts.html help with postun | |
105 | |
103 * Thu Mar 16 2006 Carl Byington 5.16 | 106 * Thu Mar 16 2006 Carl Byington 5.16 |
104 - use @PACKAGE@ in more places | 107 - use @PACKAGE@ in more places |
105 | 108 |
106 * Fri Mar 10 2006 Carl Byington 5.13 | 109 * Fri Mar 10 2006 Carl Byington 5.13 |
107 - remove redundant entry in files section | 110 - remove redundant entry in files section |