File: .spec

package info (click to toggle)
firehol 1.273-1
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 948 kB
  • ctags: 314
  • sloc: sh: 5,132; makefile: 70
file content (132 lines) | stat: -rw-r--r-- 3,854 bytes parent folder | download
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
Summary: An easy to use but powerfull iptables stateful firewall
Name: firehol
Version: 1.273
Release: rh7up
Copyright: GPL
Group: Applications/Internet
Source: %{name}-%{version}.tar.bz2
URL: http://firehol.sourceforge.net
Vendor: Costa Tsaousis
Packager: Costa Tsaousis
BuildArchitectures: noarch
BuildRoot: %{_tmppath}/%{name}-buildroot

requires: bash >= 2.04
requires: fileutils >= 4.0.36
requires: gawk >= 3.0
requires: grep >= 2.4.2
requires: iproute >= 2.2.4
requires: iptables >= 1.2.4
requires: kernel >= 2.4
requires: less
requires: modutils >= 2.4.13
requires: net-tools >= 1.57
requires: sed >= 3.02
requires: sh-utils >= 2.0
requires: textutils >= 2.0.11
requires: util-linux >= 2.11

%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.

You can run FireHOL with the 'helpme' argument, to get a
configuration file for the system run, which you can modify
according to your needs.

The default configuration file will allow only client traffic
on all interfaces.

%prep
%{__rm} -rf %{buildroot}
%setup

%build

%install
mkdir -p %{buildroot}/etc/firehol/examples
mkdir -p %{buildroot}/etc/firehol/services
test -f /etc/firehol.conf -a ! -f /etc/firehol/firehol.conf && mv -f /etc/firehol.conf /etc/firehol/firehol.conf
mkdir -p %{buildroot}/etc/init.d
install -m 750 firehol.sh %{buildroot}/etc/init.d/firehol
install -m 640 examples/client-all.conf %{buildroot}/etc/firehol/firehol.conf
mkdir -p %{buildroot}/%{_mandir}/man1
mkdir -p %{buildroot}/%{_mandir}/man5
gzip -9 man/firehol.1
gzip -9 man/firehol.conf.5
install -m 644 man/firehol.1.gz %{buildroot}/%{_mandir}/man1/firehol.1.gz
install -m 644 man/firehol.conf.5.gz %{buildroot}/%{_mandir}/man5/firehol.conf.5.gz
install -m 644 examples/home-adsl.conf %{buildroot}/etc/firehol/examples/home-adsl.conf
install -m 644 examples/home-dialup.conf %{buildroot}/etc/firehol/examples/home-dialup.conf
install -m 644 examples/office.conf %{buildroot}/etc/firehol/examples/office.conf
install -m 644 examples/server-dmz.conf %{buildroot}/etc/firehol/examples/server-dmz.conf
install -m 644 examples/client-all.conf %{buildroot}/etc/firehol/examples/client-all.conf
install -m 644 examples/lan-gateway.conf %{buildroot}/etc/firehol/examples/lan-gateway.conf

%pre

%post
if [ -f /etc/firehol.conf -a ! -f /etc/firehol/firehol.conf ]
then
	mv -f /etc/firehol.conf /etc/firehol/firehol.conf
	echo
	echo
	echo "FireHOL has now its configuration in /etc/firehol/firehol.conf"
	echo "Your existing configuration has been moved to its new place."
	echo
fi
/sbin/chkconfig --del firehol

%preun
/sbin/chkconfig --del firehol

%postun

%clean
rm -rf ${RPM_BUILD_DIR}/%{name}-%{version}

%files
%defattr(-,root,root)
%doc README TODO COPYING ChangeLog WhatIsNew

%dir /etc/firehol
%dir /etc/firehol/examples
%dir /etc/firehol/services

/etc/init.d/firehol
%{_mandir}/man1/firehol.1.gz
%{_mandir}/man5/firehol.conf.5.gz

%config(noreplace) /etc/firehol/firehol.conf

/etc/firehol/examples/home-adsl.conf
/etc/firehol/examples/home-dialup.conf
/etc/firehol/examples/office.conf
/etc/firehol/examples/server-dmz.conf
/etc/firehol/examples/client-all.conf
/etc/firehol/examples/lan-gateway.conf

%doc adblock.sh get-iana.sh check-iana.sh
%doc doc/adding.html
%doc doc/css.css
%doc doc/fwtest.html
%doc doc/index.html
%doc doc/language.html
%doc doc/services.html
%doc doc/search.html
%doc doc/tutorial.html
%doc doc/commands.html
%doc doc/header.html
%doc doc/invoking.html
%doc doc/overview.html
%doc doc/trouble.html
%doc doc/faq.html

%changelog