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
11 Prereq: /sbin/chkconfig
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 Firewall-init is meant to provide an easy to use interface to start
17 and stopping the kernel IP packet filters and accounting through
21 Dziêki firewall-init uzyskuje siê ³atwy interfejs do startowania i
22 stopowania filtrów IP j±dra oraz zliczania pakietów poprzez
29 rm -rf $RPM_BUILD_ROOT
30 install -d $RPM_BUILD_ROOT/etc/{sysconfig/firewall-rules,rc.d/init.d}
32 install firewall.init $RPM_BUILD_ROOT/etc/rc.d/init.d/firewall
33 install firewall $RPM_BUILD_ROOT/etc/sysconfig/
35 for i in input output forward; do
36 echo '#<policy> <proto> <s_addr/s_mask> <s_port> <d_addr/d_mask> <d_port> <interface> <options>' > \
37 $RPM_BUILD_ROOT/etc/sysconfig/firewall-rules/${i}
43 /sbin/chkconfig --add firewall
46 if [ "$1" = "0" ]; then
47 /sbin/chkconfig --del firewall
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
55 %doc README.gz input.example
56 %attr(600,root,root) %verify(not size mtime md5) %config(noreplace) /etc/sysconfig/firewall
57 %attr(600,root,root) %verify(not size mtime md5) %config(noreplace) /etc/sysconfig/firewall-rules/*
58 %attr(700,root,root) %dir /etc/sysconfig/firewall-rules
59 %attr(754,root,root) /etc/rc.d/init.d/firewall