]>
Commit | Line | Data |
---|---|---|
3e4e8a77 | 1 | Summary: Firewall SysV-init style start-up script |
87917f6b | 2 | Summary(pl.UTF-8): Skrypt startowy firewalla |
3e4e8a77 | 3 | Name: firewall-init |
6c62d4cd | 4 | Version: 2.99.10 |
937914bd | 5 | Release: 1 |
43b37713 | 6 | License: GPL |
3e4e8a77 | 7 | Group: Networking/Admin |
59236610 | 8 | Source0: ftp://ftp.pld-linux.org/software/firewall-init/%{name}-%{version}.tar.bz2 |
6c62d4cd | 9 | # Source0-md5: 623a12605c31de043956e4bc04fab0ad |
8259adf3 | 10 | BuildRequires: rpmbuild(macros) >= 1.194 |
ee1ebcac | 11 | Requires(post,preun): /sbin/chkconfig |
43b37713 | 12 | Requires: iptables >= 1.2.2-2 |
3dc6b0ec | 13 | Requires: rc-scripts |
a024cf13 | 14 | Obsoletes: iptables-init |
ee1ebcac | 15 | BuildArch: noarch |
561a4430 | 16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
2ffec8eb | 17 | |
18 | %description | |
3dc6b0ec ER |
19 | Firewall-init is meant to provide an easy to use interface for |
20 | starting and stopping the kernel IP packet filter through iptables(8). | |
2ffec8eb | 21 | |
43c93f90 JR |
22 | %description -l pl.UTF-8 |
23 | Dzięki firewall-init uzyskuje się łatwy interfejs do startowania i | |
24 | stopowania filtrów IP jądra poprzez iptables(8). | |
63dce7c2 | 25 | |
2ffec8eb | 26 | %prep |
27 | %setup -q | |
2ffec8eb | 28 | |
29 | %install | |
30 | rm -rf $RPM_BUILD_ROOT | |
3e4e8a77 | 31 | |
ee1ebcac JB |
32 | %{__make} install \ |
33 | DESTDIR=$RPM_BUILD_ROOT | |
34 | ||
35 | %clean | |
36 | rm -rf $RPM_BUILD_ROOT | |
3e4e8a77 | 37 | |
8259adf3 ER |
38 | %triggerpostun -- %{name} < 2.5 |
39 | %banner -e %{name} <<'EOF' | |
40 | You need to manually convert your rules to iptables or install | |
41 | firewall-init-ipchains | |
42 | EOF | |
7ba90b15 | 43 | |
2ffec8eb | 44 | %post |
74a4c8ce | 45 | /sbin/chkconfig --add firewall |
43b37713 | 46 | /sbin/chkconfig --add firewall-pre |
2ffec8eb | 47 | |
21d30844 | 48 | %preun |
74a4c8ce | 49 | if [ "$1" = "0" ]; then |
50 | /sbin/chkconfig --del firewall | |
43b37713 | 51 | /sbin/chkconfig --del firewall-pre |
74a4c8ce | 52 | fi |
2ffec8eb | 53 | |
2ffec8eb | 54 | %files |
958d7e5b | 55 | %defattr(644,root,root,755) |
9ecad545 | 56 | %doc README |
43b37713 | 57 | %defattr(640,root,root,750) |
3dc6b0ec ER |
58 | %verify(not md5 mtime size) %config(noreplace) /etc/sysconfig/firewall |
59 | %verify(not md5 mtime size) %config(noreplace) /etc/sysconfig/firewall.d/ip* | |
60 | %verify(not md5 mtime size) %config(noreplace) /etc/sysconfig/firewall.d/functions.rules | |
43b37713 MM |
61 | /etc/sysconfig/firewall.d/functions |
62 | %attr(754,root,root) /etc/rc.d/init.d/firewall* | |
63 | %dir /etc/sysconfig/firewall.d |