]> git.pld-linux.org Git - packages/firehol.git/blob - firehol.spec
5143c8e7902a618dfcc6bc63a4ab87fbc34f8dac
[packages/firehol.git] / firehol.spec
1 # TODO
2 # - pldize initscript
3 # - unbash initscript
4 # - recheck deps
5 Summary:        A powerful yet easy to use iptables frontend
6 Name:           firehol
7 Version:        1.273
8 Release:        0.1
9 License:        GPL v2+
10 Group:          Applications/Networking
11 Source0:        http://downloads.sourceforge.net/firehol/%{name}-%{version}.tar.bz2
12 # Source0-md5:  cbbe1ba21cf44955827d5c906a55aa21
13 Patch0:         pld.patch
14 URL:            http://firehol.sourceforge.net
15 BuildRequires:  rpmbuild(macros) >= 1.228
16 Requires:       bash >= 2.04
17 Requires:       fileutils >= 4.0.36
18 Requires:       gawk >= 3.0
19 Requires:       grep >= 2.4.2
20 Requires:       iproute2 >= 2.2.4
21 Requires:       iptables >= 1.2.4
22 Requires:       kernel >= 2.4
23 Requires:       less
24 Requires:       modutils >= 2.4.13
25 Requires:       net-tools >= 1.57
26 Requires:       sed >= 3.02
27 Requires:       sh-utils >= 2.0
28 Requires:       textutils >= 2.0.11
29 Requires:       util-linux >= 2.11
30 Requires(post,preun):   /sbin/chkconfig
31 Requires:       rc-scripts
32 BuildArch:      noarch
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
36 FireHOL is a generic firewall generator, meaning that you can design
37 any kind of local or routing stateful packet filtering firewalls with
38 ease. Install FireHOL if you want an easy way to configure stateful
39 packet filtering firewalls on Linux hosts and routers.
40
41 FireHOL uses an extremely simple but powerful way to define firewall
42 rules which it turns into complete stateful iptables firewalls.
43
44 You can run FireHOL with the 'helpme' argument, to get a configuration
45 file for the system run, which you can modify according to your needs.
46 The default configuration file will allow only client traffic on all
47 interfaces.
48
49 %prep
50 %setup -q
51 %patch0 -p1
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55 install -D -p firehol.sh $RPM_BUILD_ROOT%{_initrddir}/firehol
56 install -D -p examples/client-all.conf $RPM_BUILD_ROOT%{_sysconfdir}/firehol/firehol.conf
57
58 # Install man files
59 install -d $RPM_BUILD_ROOT%{_mandir}/man{1,5}
60 install -p man/*.1 $RPM_BUILD_ROOT/%{_mandir}/man1
61 install -p man/*.5 $RPM_BUILD_ROOT/%{_mandir}/man5
62
63 # Executables
64 install -d $RPM_BUILD_ROOT%{_libdir}/firehol
65 install -p *.sh $RPM_BUILD_ROOT%{_libdir}/firehol
66
67 # Install runtime directories
68 install -d $RPM_BUILD_ROOT%{_sysconfdir}/firehol/services
69 install -d $RPM_BUILD_ROOT%{_localstatedir}/spool/firehol
70
71 %post
72 /sbin/chkconfig --add firehol
73 %service firehol restart
74
75 %preun
76 if [ "$1" = 0 ]; then
77         %service firehol stop
78         /sbin/chkconfig --del firehol
79 fi
80
81 %clean
82 rm -rf $RPM_BUILD_ROOT
83
84 %files
85 %defattr(644,root,root,755)
86 %doc README TODO ChangeLog WhatIsNew examples doc
87 %dir %{_sysconfdir}/firehol
88 %config(noreplace) %{_sysconfdir}/firehol/firehol.conf
89 %attr(754,root,root) /etc/rc.d/init.d/firehol
90 %{_libdir}/firehol
91 %{_mandir}/man1/*.1*
92 %{_mandir}/man5/*.5*
93 %{_sysconfdir}/firehol/services
94 %{_localstatedir}/spool/firehol
This page took 0.054205 seconds and 2 git commands to generate.