1 Summary: Firewall SysV-init style start-up script
2 Summary(pl): Skrypt startowy firewalla
7 Group: Networking/Admin
8 Group(de): Netzwerkwesen/Administration
9 Group(pl): Sieciowe/Administacyjne
10 Source0: ftp://hunter.mimuw.edu.pl/pub/users/baggins/%{name}-%{version}.tar.gz
13 Prereq: /sbin/chkconfig
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Firewall-init is meant to provide an easy to use interface to start
19 and stopping the kernel IP packet filters and accounting through
23 Dziêki firewall-init uzyskuje siê ³atwy interfejs do startowania i
24 stopowania filtrów IP j±dra oraz zliczania pakietów poprzez
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT/etc/{sysconfig/firewall-rules,rc.d/init.d}
34 install firewall.init $RPM_BUILD_ROOT/etc/rc.d/init.d/firewall
35 install firewall $RPM_BUILD_ROOT/etc/sysconfig/
37 for i in input output forward; do
38 echo '#<policy> <proto> <s_addr/s_mask> <s_port> <d_addr/d_mask> <d_port> <interface> <options>' > \
39 $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 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