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