Mercurial > syslog2iptables
annotate syslog2iptables.spec.in @ 49:546fe911f7a6
Added tag stable-1-0-11 for changeset ba0259c9e411
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 29 May 2008 11:44:36 -0700 |
parents | ba0259c9e411 |
children | 206448c00b55 |
rev | line source |
---|---|
11 | 1 %define localstatedir /var/lib |
2 | |
10 | 3 Summary: Syslog to iptables dynamic firewall |
4 Name: @PACKAGE@ | |
5 Version: @VERSION@ | |
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
|
6 Release: 1%{?dist} |
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 AutoReqProv: no |
13 | |
14 Requires(post,preun): /sbin/chkconfig | |
15 Requires(post,preun): /sbin/service | |
10 | 16 Requires: iptables |
17 Requires: coreutils | |
18 BuildRequires: gcc gcc-c++ | |
18 | 19 Requires: libc.so.6, libgcc_s.so.1, libm.so.6, libpthread.so.0, libstdc++.so.6 |
10 | 20 |
21 | |
22 %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
|
23 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
|
24 of the iptables firewall set based on syslog entries. |
10 | 25 |
26 %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
|
27 %setup -q |
10 | 28 |
29 %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
|
30 %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
|
31 make %{?_smp_mflags} |
10 | 32 |
33 | |
34 %install | |
35 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
|
36 make DESTDIR=$RPM_BUILD_ROOT install |
10 | 37 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
|
38 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name} $RPM_BUILD_ROOT/etc/rc.d/init.d |
10 | 39 |
40 | |
41 %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
|
42 rm -rf $RPM_BUILD_ROOT |
10 | 43 |
44 | |
45 %pre | |
46 | |
47 | |
48 %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
|
49 /sbin/chkconfig --add %{name} |
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 | |
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
|
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} |
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 %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
|
68 /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
|
69 |
10 | 70 |
71 %changelog | |
48
ba0259c9e411
Fixes to compile on Fedora 9 and for const correctness
Carl Byington <carl@five-ten-sg.com>
parents:
42
diff
changeset
|
72 * 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
|
73 - 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
|
74 |
ba0259c9e411
Fixes to compile on Fedora 9 and for const correctness
Carl Byington <carl@five-ten-sg.com>
parents:
42
diff
changeset
|
75 * 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
|
76 - 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
|
77 |
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
|
78 * 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
|
79 - 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
|
80 |
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
|
81 * Thu Aug 30 2007 Carl Byington <carl@five-ten-sg.com> - 1.5 |
31 | 82 - Fix pre/post scripts |
83 | |
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
|
84 * Thu Dec 08 2005 Carl Byington <carl@five-ten-sg.com> - 1.0 |
10 | 85 - initial revision based on dnsbl spec file |
86 - and http://www.fedora.us/docs/rpm-packaging-guidelines.html |