1 Summary: Simple packet filter generator
2 Summary(pl.UTF-8): Prosty generator filtrów pakietów
7 Group: Networking/Utilities
8 Source0: http://hairy.beasts.org/filter/%{name}-%{version}.tar.gz
9 # Source0-md5: de33c1dce928fe240b036498e56e545f
11 Source2: filter.sysconfig
13 URL: http://hairy.beasts.org/filter/
15 BuildRequires: rpmbuild(macros) >= 1.268
16 Requires(post,preun): /sbin/chkconfig
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This tool is for generating packet filtering rules from a fairly high-
24 level description language. It doesn't support all of the whizz-bang
25 features of the latest and greatest packet filters, but supports a
26 decent subset which is sufficient for typical workstation.
28 It currently supports only Linux iptables and ipchains. Cisco IOS has
29 been begun, but is incomplete. Darren Reed's ipfilter may be supported
30 at some stage. It doesn't generate optimal rulesets, and has a few
31 limitations which need to be removed, but is still a useful tool.
33 Please read HONESTY file!
35 %description -l pl.UTF-8
36 To jest narzędzie do generowania reguł filtrowania pakietów z
37 względnie wysokopoziomowego języka opisu. Nie obsługuje wszystkich
38 zaawansowanych możliwości najnowszych filtrów pakietów, ale wspiera
39 przyzwoity podzbiór, wystarczający dla typowych stacji roboczych.
41 Aktualnie obsługuje tylko linuksowe iptables i ipchains. Obsługa Cisco
42 IOS jest zaczęta, ale nie kompletna. ipfilter Darrena Reeda jest
43 obsługiwany częściowo. Nie generuje optymalnych regułek i ma parę
44 ograniczeń, które powinny być usunięte, ale mimo to jest użytecznym
47 Przeczytaj plik HONESTY!
55 CFLAGS="%{rpmcflags} -Wall -Werror -Wno-unused"
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}/filter} \
60 $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d} \
61 $RPM_BUILD_ROOT%{_mandir}/man{5,7,8}
63 install filtergen $RPM_BUILD_ROOT%{_sbindir}
64 install filter_syntax.5 $RPM_BUILD_ROOT%{_mandir}/man5
65 install filter_backends.7 $RPM_BUILD_ROOT%{_mandir}/man7
66 install filtergen.8 $RPM_BUILD_ROOT%{_mandir}/man8
67 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/filter/simple.conf
68 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
69 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
70 touch $RPM_BUILD_ROOT%{_sysconfdir}/filter/generated_rules
73 rm -rf $RPM_BUILD_ROOT
76 /sbin/chkconfig --add filtergen
77 %service filtergen restart "filtergen"
80 if [ "$1" = "0" ]; then
81 %service filtergen stop
82 /sbin/chkconfig --del filtergen
86 %defattr(644,root,root,755)
87 %doc README HONESTY HISTORY TODO tests
88 %attr(755,root,root) %{_sbindir}/filtergen
89 %dir %{_sysconfdir}/filter
90 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/filter/simple.conf
91 %attr(600,root,root) %{_sysconfdir}/filter/generated_rules
92 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
93 %attr(754,root,root) /etc/rc.d/init.d/%{name}