]> git.pld-linux.org Git - packages/firewall-init-ipchains.git/blob - firewall-init-ipchains.spec
syntax verification and relaxing
[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 Obsoletes:      iptables-init
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 Firewall-init is meant to provide an easy to use interface for starting
24 and stopping the kernel IP packet filter through iptables(8).
25
26 %description -l pl
27 Dziêki firewall-init uzyskuje siê ³atwy interfejs do startowania i
28 stopowania filtrów IP j±dra poprzez iptables(8).
29
30 %prep
31 %setup -q
32 %patch0 -p1
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36
37 %{__make} install \
38         DESTDIR=$RPM_BUILD_ROOT
39
40 %clean
41 rm -rf $RPM_BUILD_ROOT
42
43 %post
44 /sbin/chkconfig --add firewall
45 /sbin/chkconfig --add firewall-pre
46
47 %postun
48 if [ "$1" = "0" ]; then
49         /sbin/chkconfig --del firewall
50         /sbin/chkconfig --del firewall-pre
51 fi
52
53 %files
54 %defattr(644,root,root,755)
55 %doc README
56 %defattr(640,root,root,750)
57 %verify(not size mtime md5) %config(noreplace) /etc/sysconfig/firewall
58 %verify(not size mtime md5) %config(noreplace) /etc/sysconfig/firewall.d/ip*
59 %verify(not size mtime md5) %config(noreplace) /etc/sysconfig/firewall.d/functions.rules
60 /etc/sysconfig/firewall.d/functions
61 %attr(754,root,root) /etc/rc.d/init.d/firewall*
62 %dir /etc/sysconfig/firewall.d
This page took 0.080603 seconds and 3 git commands to generate.