1 Summary: Firewall SysV-init style start-up script
6 Group: Networking/Admin
7 Source: ftp://hunter.mimuw.edu.pl/pub/users/baggins/%{name}-%{version}.tar.gz
8 Prereq: /sbin/chkconfig
11 Buildroot: /tmp/%{name}-%{version}-root
14 Firewall-init is meant to provide an easy to use interface to start and
15 stopping the kernel IP packet filters and accounting through ipchains(8).
21 rm -rf $RPM_BUILD_ROOT
23 install -d $RPM_BUILD_ROOT/etc/{sysconfig/firewall-rules,rc.d/init.d}
25 install firewall.init $RPM_BUILD_ROOT/etc/rc.d/init.d/firewall
26 install firewall $RPM_BUILD_ROOT/etc/sysconfig/
28 for i in input output forward; do
29 echo '#<policy> <proto> <s_addr/s_mask> <s_port> <d_addr/d_mask> <d_port> <interface> <options>' > \
30 $RPM_BUILD_ROOT/etc/sysconfig/firewall-rules/${i}
34 /sbin/chkconfig --add firewall
38 /sbin/chkconfig --del firewall
42 rm -rf $RPM_BUILD_ROOT
45 %defattr(644, root, root, 755)
46 %doc README input.example
47 %attr(600, root, root) %verify(not size mtime md5) %config(noreplace) /etc/sysconfig/firewall
48 %attr(600, root, root) %verify(not size mtime md5) %config(noreplace) /etc/sysconfig/firewall-rules/*
49 %attr(700, root, root) %dir /etc/sysconfig/firewall-rules
50 %attr(700, root, root) /etc/rc.d/init.d/firewall