5 Summary: Simple and powerful firewall and traffic shaping languages
10 Group: Applications/Networking
11 Source0: http://firehol.org/download/firehol/releases/v%{version}/%{name}-%{version}.tar.xz
12 # Source0-md5: e2672c82b2b6012f9000c15c08c7dc89
13 Source1: %{name}.service
14 Source2: fireqos.service
15 URL: http://firehol.org
16 BuildRequires: hostname
17 BuildRequires: iproute2
18 BuildRequires: iptables
20 BuildRequires: systemd-devel
21 BuildRequires: tar >= 1:1.22
23 Requires(post,preun): /sbin/chkconfig
26 Requires: grep >= 2.4.2
29 Requires: iproute2 >= 2.2.4
30 Requires: iptables >= 1.2.4
36 Requires: uname(release) >= 2.4
37 Requires: util-linux >= 2.11
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 FireHOL is a generic firewall generator, meaning that you can design
43 any kind of local or routing stateful packet filtering firewalls with
44 ease. Install FireHOL if you want an easy way to configure stateful
45 packet filtering firewalls on Linux hosts and routers.
47 FireHOL uses an extremely simple but powerful way to define firewall
48 rules which it turns into complete stateful iptables firewalls.
50 You can run FireHOL with the 'helpme' argument, to get a configuration
51 file for the system run, which you can modify according to your needs.
52 The default configuration file will allow only client traffic on all
63 rm -rf $RPM_BUILD_ROOT
65 DESTDIR=$RPM_BUILD_ROOT
67 # Hack for documentation without crufts.
68 rm -frv $RPM_BUILD_ROOT%{_docdir}
69 find examples/ -name "Makefile*" -delete -print
71 # Install systemd units.
72 install -d $RPM_BUILD_ROOT%{systemdunitdir}
73 cp -p %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{systemdunitdir}
75 # Install runtime directories.
76 install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/services
77 install -d $RPM_BUILD_ROOT%{_localstatedir}/spool/firehol
79 # Ghost configurations.
80 touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/firehol.conf \
81 $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/fireqos.conf
84 rm -rf $RPM_BUILD_ROOT
87 /sbin/chkconfig --add firehol
88 %service firehol restart
89 %systemd_post firehol.service
90 %systemd_post fireqos.service
95 /sbin/chkconfig --del firehol
97 %systemd_preun firehol.service
98 %systemd_preun fireqos.service
104 %defattr(644,root,root,755)
105 %doc AUTHORS NEWS README THANKS examples
106 %doc doc/firehol/firehol-manual.{pdf,html}
107 %doc doc/fireqos/fireqos-manual.{pdf,html}
108 %dir %{_sysconfdir}/firehol
109 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/firehol.conf
110 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/fireqos.conf
111 %{_sysconfdir}/%{name}/*.example
112 %dir %{_sysconfdir}/%{name}/services
113 %{_sysconfdir}/%{name}/services/*.example
114 %attr(755,root,root) %{_sbindir}/firehol
115 %attr(755,root,root) %{_sbindir}/fireqos
118 %{systemdunitdir}/firehol.service
119 %{systemdunitdir}/fireqos.service
120 %{_localstatedir}/spool/%{name}