]> git.pld-linux.org Git - packages/firewall-init-ipchains.git/blob - firewall-init-ipchains.spec
347a023b3cc1bad346d1c96d7ce8df2089de1e39
[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.99.5
5 Release:        2@2.4
6 License:        GPL
7 Group:          Networking/Admin
8 Group(de):      Netzwerkwesen/Administration
9 Group(pl):      Sieciowe/Administacyjne
10 # Source0:      ftp://ftp.pld.org.pl/software/firewall-init/%{name}-%{version}.tar.gz
11 # Source0-md5:  e336e02377ef26c258d8ccabeaefcf8c
12 Source0:        http://aramin.one.pl/~undefine/%{name}-%{version}.tar.gz
13 Patch0:         %{name}-pre.patch
14 PreReq:         rc-scripts
15 Requires(post,preun):   /sbin/chkconfig
16 Requires:       iptables >= 1.2.2-2
17 Conflicts:      kernel < 2.3.0
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 Firewall-init is meant to provide an easy to use interface for starting
23 and stopping the kernel IP packet filter through iptables(8).
24
25 %description -l pl
26 Dziêki firewall-init uzyskuje siê ³atwy interfejs do startowania i
27 stopowania filtrów IP j±dra poprzez iptables(8).
28
29 %prep
30 %setup -q
31 %patch0 -p1
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35
36 %{__make} install \
37         DESTDIR=$RPM_BUILD_ROOT
38
39 %clean
40 rm -rf $RPM_BUILD_ROOT
41
42 %post
43 /sbin/chkconfig --add firewall
44 /sbin/chkconfig --add firewall-pre
45
46 %postun
47 if [ "$1" = "0" ]; then
48         /sbin/chkconfig --del firewall
49         /sbin/chkconfig --del firewall-pre
50 fi
51
52 %files
53 %defattr(644,root,root,755)
54 %doc README
55 %defattr(640,root,root,750)
56 %verify(not size mtime md5) %config(noreplace) /etc/sysconfig/firewall
57 %verify(not size mtime md5) %config(noreplace) /etc/sysconfig/firewall.d/ip*
58 %verify(not size mtime md5) %config(noreplace) /etc/sysconfig/firewall.d/functions.rules
59 /etc/sysconfig/firewall.d/functions
60 %attr(754,root,root) /etc/rc.d/init.d/firewall*
61 %dir /etc/sysconfig/firewall.d
This page took 0.051288 seconds and 2 git commands to generate.