]> git.pld-linux.org Git - packages/firewall-init.git/blob - firewall-init.spec
- R: coreutils
[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:       coreutils
13 Requires:       iptables >= 1.2.2-2
14 Requires:       rc-scripts
15 Obsoletes:      iptables-init
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Firewall-init is meant to provide an easy to use interface for
21 starting and stopping the kernel IP packet filter through iptables(8).
22
23 %description -l pl.UTF-8
24 Dzięki firewall-init uzyskuje się łatwy interfejs do startowania i
25 stopowania filtrów IP jądra poprzez iptables(8).
26
27 %prep
28 %setup -q
29
30 %install
31 rm -rf $RPM_BUILD_ROOT
32
33 %{__make} install \
34         DESTDIR=$RPM_BUILD_ROOT
35
36 %clean
37 rm -rf $RPM_BUILD_ROOT
38
39 %triggerpostun -- %{name} < 2.5
40 %banner -e %{name} <<'EOF'
41 You need to manually convert your rules to iptables or install
42 firewall-init-ipchains
43 EOF
44
45 %post
46 /sbin/chkconfig --add firewall
47 /sbin/chkconfig --add firewall-pre
48
49 %preun
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 ChangeLog
58 %defattr(640,root,root,750)
59 %verify(not md5 mtime size) %config(noreplace) /etc/sysconfig/firewall
60 %verify(not md5 mtime size) %config(noreplace) /etc/sysconfig/firewall.d/ip*
61 %verify(not md5 mtime size) %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.091888 seconds and 3 git commands to generate.