]> git.pld-linux.org Git - packages/firewall-init.git/blob - firewall-init.spec
- typo
[packages/firewall-init.git] / firewall-init.spec
1 Summary:        Firewall SysV-init style start-up script
2 Summary(pl):    Skrypt startowy firewalla
3 Name:           firewall-init
4 Version:        2.99.7
5 Release:        1
6 License:        GPL
7 Group:          Networking/Admin
8 #Source0:       http://ep09.pld-linux.org/~mmazur/%{name}/%{name}-%{version}.tar.bz2
9 Source0:        %{name}-%{version}.tar.bz2
10 # Source0-md5:  d5c8baff7e0f111bd66b23b47d9a6ea6
11 PreReq:         rc-scripts
12 Requires(post,preun):   /sbin/chkconfig
13 Requires:       iptables >= 1.2.2-2
14 Obsoletes:      iptables-init
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Firewall-init is meant to provide an easy to use interface for starting
20 and stopping the kernel IP packet filter through iptables(8).
21
22 %description -l pl
23 Dziêki firewall-init uzyskuje siê ³atwy interfejs do startowania i
24 stopowania filtrów IP j±dra poprzez iptables(8).
25
26 %prep
27 %setup -q
28
29 %install
30 rm -rf $RPM_BUILD_ROOT
31
32 %{__make} install \
33         DESTDIR=$RPM_BUILD_ROOT
34
35 %clean
36 rm -rf $RPM_BUILD_ROOT
37
38 #%%pre
39 #if [ `rpm -q --queryformat='%{VERSION}' firewall-init` < '2.5' ]; then
40 #       echo "You need to manually convert your rules to iptables or install"
41 #       echo "firewall-init-ipchains"
42 #       exit 1
43 #fi
44
45 %post
46 /sbin/chkconfig --add firewall
47 /sbin/chkconfig --add firewall-pre
48
49 %postun
50 if [ "$1" = "0" ]; then
51         /sbin/chkconfig --del firewall
52         /sbin/chkconfig --del firewall-pre
53 fi
54
55 %files
56 %defattr(644,root,root,755)
57 %doc README
58 %defattr(640,root,root,750)
59 %verify(not size mtime md5) %config(noreplace) /etc/sysconfig/firewall
60 %verify(not size mtime md5) %config(noreplace) /etc/sysconfig/firewall.d/ip*
61 %verify(not size mtime md5) %config(noreplace) /etc/sysconfig/firewall.d/functions.rules
62 /etc/sysconfig/firewall.d/functions
63 %attr(754,root,root) /etc/rc.d/init.d/firewall*
64 %dir /etc/sysconfig/firewall.d
This page took 0.070186 seconds and 3 git commands to generate.