forked from firehol/firehol
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.spec
68 lines (52 loc) · 1.47 KB
/
.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Summary: An easy to use but powerfull iptables stateful firewall
Name: firehol
Version: 1.33
Release: 1
Copyright: GPL
Group: Applications/Internet
Source: %{name}-%{version}.tar.bz2
URL: http://firehol.sourceforge.net
Vendor: Costa Tsaousis
Packager: Costa Tsaousis
BuildArchitectures: noarch
requires: kernel >= 2.4
requires: gawk >= 3.1
requires: iptables >= 1.2.4
requires: bash >= 2.05
%description
FireHOL uses an extremely simple but powerfull way to define
firewall rules which it turns into complete stateful iptables
firewalls.
FireHOL is a generic firewall generator, meaning that you can
design any kind of local or routing stateful packet filtering
firewalls with ease.
Install FireHOL if you want an easy way to configure stateful
packet filtering firewalls on Linux hosts and routers.
The default configuration file will allow only client traffic
on PPP and ethernet interfaces.
%prep
%setup
%build
%install
install -c -m 750 firehol.sh /etc/init.d/firehol
install -c -m 640 examples/ppp-client.conf /etc/firehol.conf
%pre
%post
/sbin/chkconfig --add firehol
%preun
/sbin/chkconfig --del firehol
%postun
%clean
rm -rf ${RPM_BUILD_DIR}/%{name}-%{version}
%files
%defattr(-,root,root)
%doc README TODO COPYING ChangeLog
/etc/init.d/firehol
%config(noreplace) /etc/firehol.conf
%doc examples/home-adsl.conf
%doc examples/home-dialup.conf
%doc examples/home-router.conf
%doc examples/office.conf
%doc examples/office-private-lan.conf
%doc examples/ppp-client.conf
%changelog