]> git.pld-linux.org Git - packages/firewall-init.git/blob - firewall-init.spec
- 2.99.11
[packages/firewall-init.git] / firewall-init.spec
1 Summary:        Firewall SysV-init style start-up script
2 Summary(pl.UTF-8):      Skrypt startowy firewalla
3 Name:           firewall-init
4 Version:        2.99.11
5 Release:        1
6 License:        GPL
7 Group:          Networking/Admin
8 Source0:        ftp://ftp.pld-linux.org/software/firewall-init/%{name}-%{version}.tar.bz2
9 # Source0-md5:  8a57d9efb9df6f46b4665c55d0a9450f
10 BuildRequires:  rpmbuild(macros) >= 1.194
11 Requires(post,preun):   /sbin/chkconfig
12 Requires:       iptables >= 1.2.2-2
13 Requires:       rc-scripts
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
20 starting and stopping the kernel IP packet filter through iptables(8).
21
22 %description -l pl.UTF-8
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 %triggerpostun -- %{name} < 2.5
39 %banner -e %{name} <<'EOF'
40 You need to manually convert your rules to iptables or install
41 firewall-init-ipchains
42 EOF
43
44 %post
45 /sbin/chkconfig --add firewall
46 /sbin/chkconfig --add firewall-pre
47
48 %preun
49 if [ "$1" = "0" ]; then
50         /sbin/chkconfig --del firewall
51         /sbin/chkconfig --del firewall-pre
52 fi
53
54 %files
55 %defattr(644,root,root,755)
56 %doc README ChangeLog
57 %defattr(640,root,root,750)
58 %verify(not md5 mtime size) %config(noreplace) /etc/sysconfig/firewall
59 %verify(not md5 mtime size) %config(noreplace) /etc/sysconfig/firewall.d/ip*
60 %verify(not md5 mtime size) %config(noreplace) /etc/sysconfig/firewall.d/functions.rules
61 /etc/sysconfig/firewall.d/functions
62 %attr(754,root,root) /etc/rc.d/init.d/firewall*
63 %dir /etc/sysconfig/firewall.d
This page took 0.043895 seconds and 3 git commands to generate.