1 Summary: Firewall SysV-init style start-up script
2 Summary(pl): Skrypt startowy firewalla
7 Group: Networking/Admin
8 Source0: ftp://ftp.lj.pl/pub/linux/%{name}-%{version}.tar.gz
10 Conflicts: kernel >= 2.3
12 Prereq: /sbin/chkconfig
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 Firewall-init is meant to provide an easy to use interface to start
18 and stopping the kernel IP packet filters and accounting through
22 Dziêki firewall-init uzyskuje siê ³atwy interfejs do startowania i
23 stopowania filtrów IP j±dra oraz zliczania pakietów poprzez
30 rm -rf $RPM_BUILD_ROOT
31 install -d $RPM_BUILD_ROOT/etc/{sysconfig/firewall-rules,rc.d/init.d}
33 install firewall.init $RPM_BUILD_ROOT/etc/rc.d/init.d/firewall
34 install firewall $RPM_BUILD_ROOT/etc/sysconfig/
36 for i in input output forward; do
37 echo '#<policy> <proto> <s_addr/s_mask> <s_port> <d_addr/d_mask> <d_port> <interface> <options>' > \
38 $RPM_BUILD_ROOT/etc/sysconfig/firewall-rules/${i}
44 /sbin/chkconfig --add firewall
47 if [ "$1" = "0" ]; then
48 /sbin/chkconfig --del firewall
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
56 %doc README.gz input.example
57 %attr(600,root,root) %verify(not size mtime md5) %config(noreplace) /etc/sysconfig/firewall
58 %attr(600,root,root) %verify(not size mtime md5) %config(noreplace) /etc/sysconfig/firewall-rules/*
59 %attr(700,root,root) %dir /etc/sysconfig/firewall-rules
60 %attr(754,root,root) /etc/rc.d/init.d/firewall