Mercurial > syslog2iptables
comparison syslog2iptables.spec.in @ 61:d80641be405b stable-1-0-15
add script to build syslog2iptables.conf
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sat, 04 Oct 2014 10:01:32 -0700 |
parents | b45dddebe8fc |
children | 60f59936fabb |
comparison
equal
deleted
inserted
replaced
60:a20b31625b44 | 61:d80641be405b |
---|---|
32 %install | 32 %install |
33 rm -rf $RPM_BUILD_ROOT | 33 rm -rf $RPM_BUILD_ROOT |
34 make DESTDIR=$RPM_BUILD_ROOT install | 34 make DESTDIR=$RPM_BUILD_ROOT install |
35 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d | 35 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d |
36 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name} $RPM_BUILD_ROOT/etc/rc.d/init.d | 36 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name} $RPM_BUILD_ROOT/etc/rc.d/init.d |
37 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf | |
37 | 38 |
38 | 39 |
39 %clean | 40 %clean |
40 rm -rf $RPM_BUILD_ROOT | 41 rm -rf $RPM_BUILD_ROOT |
41 | 42 |
43 %pre | 44 %pre |
44 | 45 |
45 | 46 |
46 %post | 47 %post |
47 /sbin/chkconfig --add %{name} | 48 /sbin/chkconfig --add %{name} |
49 (cd %{_sysconfdir}; ./%{name}.conf.make) | |
48 | 50 |
49 | 51 |
50 %preun | 52 %preun |
51 [ $1 = 0 ] && /sbin/service %{name} stop || : | 53 [ $1 = 0 ] && /sbin/service %{name} stop || : |
52 | 54 |
60 %{_sbindir}/* | 62 %{_sbindir}/* |
61 %{_mandir}/man1/* | 63 %{_mandir}/man1/* |
62 %{_mandir}/man5/* | 64 %{_mandir}/man5/* |
63 %docdir %{_datadir}/doc/%{name}-%{version} | 65 %docdir %{_datadir}/doc/%{name}-%{version} |
64 %{_datadir}/doc/%{name}-%{version} | 66 %{_datadir}/doc/%{name}-%{version} |
65 %config(noreplace) %{_sysconfdir}/%{name}.conf | 67 %config(noreplace) %{_sysconfdir}/%{name}.conf.top |
68 %config(noreplace) %{_sysconfdir}/%{name}.conf.httpd | |
69 %config(noreplace) %{_sysconfdir}/%{name}.conf.bottom | |
70 %attr(750,root,root) %{_sysconfdir}/%{name}.conf.make | |
66 /etc/rc.d/init.d/%{name} | 71 /etc/rc.d/init.d/%{name} |
67 | 72 |
68 | 73 |
69 %changelog | 74 %changelog |
75 * Thu Oct 02 2014 Carl Byington <carl@five-ten-sg.com> - 1.15-1 | |
76 - add script to build syslog2iptables.conf | |
77 | |
70 * Tue Jun 10 2014 Carl Byington <carl@five-ten-sg.com> - 1.14-1 | 78 * Tue Jun 10 2014 Carl Byington <carl@five-ten-sg.com> - 1.14-1 |
71 - Add exponential increase in penalty for repeat offenders. | 79 - Add exponential increase in penalty for repeat offenders. |
72 | 80 |
73 * Wed Aug 17 2011 Carl Byington <carl@five-ten-sg.com> - 1.13-2 | 81 * Wed Aug 17 2011 Carl Byington <carl@five-ten-sg.com> - 1.13-2 |
74 - switch to auto requires | 82 - switch to auto requires |