]> git.pld-linux.org Git - packages/firewall-init-ipchains.git/blob - firewall-init-ipchains.spec
38483acd0aa94eaaed2d046b91660fa2e162423c
[packages/firewall-init-ipchains.git] / firewall-init-ipchains.spec
1 Summary:        Firewall SysV-init style start-up script
2 Summary(pl):    Skrypt startowy firewalla
3 Name:           firewall-init
4 Version:        2.1
5 Release:        1@2.2
6 License:        BSD
7 Group:          Networking/Admin
8 Source0:        ftp://ftp.lj.pl/pub/linux/%{name}-%{version}.tar.gz
9 Requires:       ipchains
10 Conflicts:      kernel >= 2.3 
11 Prereq:         rc-scripts
12 Prereq:         /sbin/chkconfig
13 Buildarch:      noarch
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
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
19 ipchains(8).
20
21 %description -l pl
22 Dziêki firewall-init uzyskuje siê ³atwy interfejs do startowania i
23 stopowania filtrów IP j±dra oraz zliczania pakietów poprzez
24 ipchains(8).
25
26 %prep
27 %setup -q
28
29 %install
30 rm -rf $RPM_BUILD_ROOT
31 install -d $RPM_BUILD_ROOT/etc/{sysconfig/firewall-rules,rc.d/init.d}
32
33 install firewall.init $RPM_BUILD_ROOT/etc/rc.d/init.d/firewall
34 install firewall $RPM_BUILD_ROOT/etc/sysconfig/
35
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}
39 done
40
41 gzip -9nf README
42
43 %post
44 /sbin/chkconfig --add firewall
45
46 %postun
47 if [ "$1" = "0" ]; then
48         /sbin/chkconfig --del firewall
49 fi
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
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
This page took 0.047078 seconds and 2 git commands to generate.