Mercurial > syslog2iptables
annotate syslog2iptables.spec.in @ 69:0e736950a117 stable-1-0-16
fix post uninstall script; allow config bucket count zero to disable a pattern
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 21 Dec 2015 07:56:18 -0800 |
parents | 45e53c44c46c |
children | 79f310d1bc46 |
rev | line source |
---|---|
11 | 1 %define localstatedir /var/lib |
2 | |
10 | 3 Summary: Syslog to iptables dynamic firewall |
4 Name: @PACKAGE@ | |
5 Version: @VERSION@ | |
69
0e736950a117
fix post uninstall script; allow config bucket count zero to disable a pattern
Carl Byington <carl@five-ten-sg.com>
parents:
67
diff
changeset
|
6 Release: 3%{?dist} |
42
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
33
diff
changeset
|
7 License: GPLv3+ |
10 | 8 Group: System Environment/Daemons |
42
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
33
diff
changeset
|
9 Source: http://www.five-ten-sg.com/%{name}/packages/%{name}-%{version}.tar.gz |
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
33
diff
changeset
|
10 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) |
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
33
diff
changeset
|
11 URL: http://www.five-ten-sg.com/%{name}/ |
18 | 12 |
13 Requires(post,preun): /sbin/chkconfig | |
14 Requires(post,preun): /sbin/service | |
10 | 15 Requires: iptables |
16 Requires: coreutils | |
17 BuildRequires: gcc gcc-c++ | |
18 | |
19 | |
20 %description | |
42
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
33
diff
changeset
|
21 This is a simple adaptive firewall. It maintains the INPUT chain |
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
33
diff
changeset
|
22 of the iptables firewall set based on syslog entries. |
10 | 23 |
24 %prep | |
42
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
33
diff
changeset
|
25 %setup -q |
10 | 26 |
27 %build | |
42
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
33
diff
changeset
|
28 %configure |
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
33
diff
changeset
|
29 make %{?_smp_mflags} |
10 | 30 |
31 | |
32 %install | |
33 rm -rf $RPM_BUILD_ROOT | |
42
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
33
diff
changeset
|
34 make DESTDIR=$RPM_BUILD_ROOT install |
10 | 35 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d |
42
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
33
diff
changeset
|
36 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name} $RPM_BUILD_ROOT/etc/rc.d/init.d |
61
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
58
diff
changeset
|
37 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf |
10 | 38 |
39 | |
40 %clean | |
42
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
33
diff
changeset
|
41 rm -rf $RPM_BUILD_ROOT |
10 | 42 |
43 | |
44 %pre | |
45 | |
46 | |
47 %post | |
42
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
33
diff
changeset
|
48 /sbin/chkconfig --add %{name} |
61
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
58
diff
changeset
|
49 (cd %{_sysconfdir}; ./%{name}.conf.make) |
10 | 50 |
51 | |
52 %preun | |
42
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
33
diff
changeset
|
53 [ $1 = 0 ] && /sbin/service %{name} stop || : |
10 | 54 |
55 | |
56 %postun | |
69
0e736950a117
fix post uninstall script; allow config bucket count zero to disable a pattern
Carl Byington <carl@five-ten-sg.com>
parents:
67
diff
changeset
|
57 [ $1 = 0 ] && /sbin/chkconfig --del %{name} || : |
10 | 58 |
59 | |
60 %files | |
42
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
33
diff
changeset
|
61 %defattr(-,root,root,-) |
10 | 62 %{_sbindir}/* |
42
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
33
diff
changeset
|
63 %{_mandir}/man1/* |
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
33
diff
changeset
|
64 %{_mandir}/man5/* |
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
33
diff
changeset
|
65 %docdir %{_datadir}/doc/%{name}-%{version} |
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
33
diff
changeset
|
66 %{_datadir}/doc/%{name}-%{version} |
61
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
58
diff
changeset
|
67 %config(noreplace) %{_sysconfdir}/%{name}.conf.top |
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
58
diff
changeset
|
68 %config(noreplace) %{_sysconfdir}/%{name}.conf.httpd |
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
58
diff
changeset
|
69 %config(noreplace) %{_sysconfdir}/%{name}.conf.bottom |
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
58
diff
changeset
|
70 %attr(750,root,root) %{_sysconfdir}/%{name}.conf.make |
42
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
33
diff
changeset
|
71 /etc/rc.d/init.d/%{name} |
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
33
diff
changeset
|
72 |
10 | 73 |
74 %changelog | |
69
0e736950a117
fix post uninstall script; allow config bucket count zero to disable a pattern
Carl Byington <carl@five-ten-sg.com>
parents:
67
diff
changeset
|
75 * Mon Dec 21 2015 Carl Byington <carl@five-ten-sg.com> - 1.16-3 |
0e736950a117
fix post uninstall script; allow config bucket count zero to disable a pattern
Carl Byington <carl@five-ten-sg.com>
parents:
67
diff
changeset
|
76 - fix post uninstall script |
0e736950a117
fix post uninstall script; allow config bucket count zero to disable a pattern
Carl Byington <carl@five-ten-sg.com>
parents:
67
diff
changeset
|
77 - allow config bucket count zero to disable a pattern |
0e736950a117
fix post uninstall script; allow config bucket count zero to disable a pattern
Carl Byington <carl@five-ten-sg.com>
parents:
67
diff
changeset
|
78 |
67 | 79 * Sat Dec 19 2015 Carl Byington <carl@five-ten-sg.com> - 1.16-2 |
80 - fix default config regular expressions | |
81 | |
63
60f59936fabb
good authentication prevents ip blocking for awhile
Carl Byington <carl@five-ten-sg.com>
parents:
61
diff
changeset
|
82 * Sat Dec 19 2015 Carl Byington <carl@five-ten-sg.com> - 1.16-1 |
60f59936fabb
good authentication prevents ip blocking for awhile
Carl Byington <carl@five-ten-sg.com>
parents:
61
diff
changeset
|
83 - good authentication prevents ip blocking for awhile |
60f59936fabb
good authentication prevents ip blocking for awhile
Carl Byington <carl@five-ten-sg.com>
parents:
61
diff
changeset
|
84 |
61
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
58
diff
changeset
|
85 * Thu Oct 02 2014 Carl Byington <carl@five-ten-sg.com> - 1.15-1 |
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
58
diff
changeset
|
86 - add script to build syslog2iptables.conf |
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
58
diff
changeset
|
87 |
58
b45dddebe8fc
Add exponential increase in penalty for repeat offenders
Carl Byington <carl@five-ten-sg.com>
parents:
56
diff
changeset
|
88 * Tue Jun 10 2014 Carl Byington <carl@five-ten-sg.com> - 1.14-1 |
b45dddebe8fc
Add exponential increase in penalty for repeat offenders
Carl Byington <carl@five-ten-sg.com>
parents:
56
diff
changeset
|
89 - Add exponential increase in penalty for repeat offenders. |
b45dddebe8fc
Add exponential increase in penalty for repeat offenders
Carl Byington <carl@five-ten-sg.com>
parents:
56
diff
changeset
|
90 |
56
73dd2daeaf8e
switch to auto requires
Carl Byington <carl@five-ten-sg.com>
parents:
53
diff
changeset
|
91 * Wed Aug 17 2011 Carl Byington <carl@five-ten-sg.com> - 1.13-2 |
73dd2daeaf8e
switch to auto requires
Carl Byington <carl@five-ten-sg.com>
parents:
53
diff
changeset
|
92 - switch to auto requires |
73dd2daeaf8e
switch to auto requires
Carl Byington <carl@five-ten-sg.com>
parents:
53
diff
changeset
|
93 |
53
d6fb7fca0394
Document multiple contexts
Carl Byington <carl@five-ten-sg.com>
parents:
51
diff
changeset
|
94 * Sun Jan 25 2009 Carl Byington <carl@five-ten-sg.com> - 1.13-1 |
d6fb7fca0394
Document multiple contexts
Carl Byington <carl@five-ten-sg.com>
parents:
51
diff
changeset
|
95 - Document multiple contexts. |
d6fb7fca0394
Document multiple contexts
Carl Byington <carl@five-ten-sg.com>
parents:
51
diff
changeset
|
96 |
51
206448c00b55
Allow multiple contexts with independent add/remove commands.
Carl Byington <carl@five-ten-sg.com>
parents:
48
diff
changeset
|
97 * Sat Jan 24 2009 Carl Byington <carl@five-ten-sg.com> - 1.12-1 |
206448c00b55
Allow multiple contexts with independent add/remove commands.
Carl Byington <carl@five-ten-sg.com>
parents:
48
diff
changeset
|
98 - Allow multiple contexts with independent add/remove commands. |
206448c00b55
Allow multiple contexts with independent add/remove commands.
Carl Byington <carl@five-ten-sg.com>
parents:
48
diff
changeset
|
99 |
48
ba0259c9e411
Fixes to compile on Fedora 9 and for const correctness
Carl Byington <carl@five-ten-sg.com>
parents:
42
diff
changeset
|
100 * Thu May 29 2008 Carl Byington <carl@five-ten-sg.com> - 1.11-1 |
ba0259c9e411
Fixes to compile on Fedora 9 and for const correctness
Carl Byington <carl@five-ten-sg.com>
parents:
42
diff
changeset
|
101 - Fix to compile on Fedora 9 and for const correctness. |
ba0259c9e411
Fixes to compile on Fedora 9 and for const correctness
Carl Byington <carl@five-ten-sg.com>
parents:
42
diff
changeset
|
102 |
ba0259c9e411
Fixes to compile on Fedora 9 and for const correctness
Carl Byington <carl@five-ten-sg.com>
parents:
42
diff
changeset
|
103 * Sat Mar 22 2008 Carl Byington <carl@five-ten-sg.com> - 1.10 |
ba0259c9e411
Fixes to compile on Fedora 9 and for const correctness
Carl Byington <carl@five-ten-sg.com>
parents:
42
diff
changeset
|
104 - Fix to compile on Solaris. |
ba0259c9e411
Fixes to compile on Fedora 9 and for const correctness
Carl Byington <carl@five-ten-sg.com>
parents:
42
diff
changeset
|
105 |
42
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
33
diff
changeset
|
106 * Fri Mar 21 2008 Carl Byington <carl@five-ten-sg.com> - 1.9 |
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
33
diff
changeset
|
107 - changes for Fedora packaging guidelines |
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
33
diff
changeset
|
108 |
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
33
diff
changeset
|
109 * Thu Aug 30 2007 Carl Byington <carl@five-ten-sg.com> - 1.5 |
31 | 110 - Fix pre/post scripts |
111 | |
42
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
33
diff
changeset
|
112 * Thu Dec 08 2005 Carl Byington <carl@five-ten-sg.com> - 1.0 |
10 | 113 - initial revision based on dnsbl spec file |
114 - and http://www.fedora.us/docs/rpm-packaging-guidelines.html |