annotate syslog2iptables.spec.in @ 59:f133196b8591

fix c++11 compiler warnings
author Carl Byington <carl@five-ten-sg.com>
date Tue, 10 Jun 2014 09:03:08 -0700
parents b45dddebe8fc
children d80641be405b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11
a9b52f657f08 finish coding 1.0 version
carl
parents: 10
diff changeset
1 %define localstatedir /var/lib
a9b52f657f08 finish coding 1.0 version
carl
parents: 10
diff changeset
2
10
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
3 Summary: Syslog to iptables dynamic firewall
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
4 Name: @PACKAGE@
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
5 Version: @VERSION@
58
b45dddebe8fc Add exponential increase in penalty for repeat offenders
Carl Byington <carl@five-ten-sg.com>
parents: 56
diff changeset
6 Release: 1%{?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
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
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
b34e716781ed prevent auto-requires in rpm building
carl
parents: 15
diff changeset
12
b34e716781ed prevent auto-requires in rpm building
carl
parents: 15
diff changeset
13 Requires(post,preun): /sbin/chkconfig
b34e716781ed prevent auto-requires in rpm building
carl
parents: 15
diff changeset
14 Requires(post,preun): /sbin/service
10
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
15 Requires: iptables
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
16 Requires: coreutils
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
17 BuildRequires: gcc gcc-c++
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
18
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
19
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
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
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
23
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
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
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
26
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
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
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
30
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
31
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
32 %install
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
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
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
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
10
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
37
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
38
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
39 %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
40 rm -rf $RPM_BUILD_ROOT
10
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
41
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
42
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
43 %pre
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
44
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
45
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
46 %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
47 /sbin/chkconfig --add %{name}
10
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
48
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
49
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
50 %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
51 [ $1 = 0 ] && /sbin/service %{name} stop || :
10
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
52
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
53
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
54 %postun
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
55 [ $1 = 0 ] && /sbin/chkconfig --del %{name}
10
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
56
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
57
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
58 %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
59 %defattr(-,root,root,-)
10
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
60 %{_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
61 %{_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
62 %{_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
63 %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
64 %{_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
65 %config(noreplace) %{_sysconfdir}/%{name}.conf
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 /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
67
10
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
68
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
69 %changelog
58
b45dddebe8fc Add exponential increase in penalty for repeat offenders
Carl Byington <carl@five-ten-sg.com>
parents: 56
diff changeset
70 * 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
71 - 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
72
56
73dd2daeaf8e switch to auto requires
Carl Byington <carl@five-ten-sg.com>
parents: 53
diff changeset
73 * 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
74 - switch to auto requires
73dd2daeaf8e switch to auto requires
Carl Byington <carl@five-ten-sg.com>
parents: 53
diff changeset
75
53
d6fb7fca0394 Document multiple contexts
Carl Byington <carl@five-ten-sg.com>
parents: 51
diff changeset
76 * 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
77 - Document multiple contexts.
d6fb7fca0394 Document multiple contexts
Carl Byington <carl@five-ten-sg.com>
parents: 51
diff changeset
78
51
206448c00b55 Allow multiple contexts with independent add/remove commands.
Carl Byington <carl@five-ten-sg.com>
parents: 48
diff changeset
79 * 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
80 - 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
81
48
ba0259c9e411 Fixes to compile on Fedora 9 and for const correctness
Carl Byington <carl@five-ten-sg.com>
parents: 42
diff changeset
82 * 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
83 - 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
84
ba0259c9e411 Fixes to compile on Fedora 9 and for const correctness
Carl Byington <carl@five-ten-sg.com>
parents: 42
diff changeset
85 * 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
86 - 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
87
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
88 * 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
89 - 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
90
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
91 * Thu Aug 30 2007 Carl Byington <carl@five-ten-sg.com> - 1.5
31
carl
parents: 18
diff changeset
92 - Fix pre/post scripts
carl
parents: 18
diff changeset
93
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
94 * Thu Dec 08 2005 Carl Byington <carl@five-ten-sg.com> - 1.0
10
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
95 - initial revision based on dnsbl spec file
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
96 - and http://www.fedora.us/docs/rpm-packaging-guidelines.html