Summary: Simple packet filter generator Summary(pl): Prosty generator filtrów pakietów Name: filtergen Version: 0.11 Release: 1 License: GPL Group: Networking/Utilities Source0: http://hairy.beasts.org/filter/%{name}-%{version}.tar.gz # Source0-md5: de33c1dce928fe240b036498e56e545f Source1: filter.conf Source2: filter.sysconfig Source3: filter.init URL: http://hairy.beasts.org/filter/ BuildRequires: flex BuildRequires: rpmbuild(macros) >= 1.268 Requires(post,preun): /sbin/chkconfig Requires: rc-scripts Provides: firewall Obsoletes: filter BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This tool is for generating packet filtering rules from a fairly high- level description language. It doesn't support all of the whizz-bang features of the latest and greatest packet filters, but supports a decent subset which is sufficient for typical workstation. It currently supports only Linux iptables and ipchains. Cisco IOS has been begun, but is incomplete. Darren Reed's ipfilter may be supported at some stage. It doesn't generate optimal rulesets, and has a few limitations which need to be removed, but is still a useful tool. Please read HONESTY file! %description -l pl To jest narzędzie do generowania reguł filtrowania pakietów z względnie wysokopoziomowego języka opisu. Nie obsługuje wszystkich zaawansowanych możliwości najnowszych filtrów pakietów, ale wspiera przyzwoity podzbiór, wystarczający dla typowych stacji roboczych. Aktualnie obsługuje tylko linuksowe iptables i ipchains. Obsługa Cisco IOS jest zaczęta, ale nie kompletna. ipfilter Darrena Reeda jest obsługiwany częściowo. Nie generuje optymalnych regułek i ma parę ograniczeń, które powinny być usunięte, ale mimo to jest użytecznym narzędziem. Przeczytaj plik HONESTY! %prep %setup -q %build %{__make} \ CC="%{__cc}" \ CFLAGS="%{rpmcflags} -Wall -Werror -Wno-unused" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}/filter} \ $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d} \ $RPM_BUILD_ROOT%{_mandir}/man{5,7,8} install filtergen $RPM_BUILD_ROOT%{_sbindir} install filter_syntax.5 $RPM_BUILD_ROOT%{_mandir}/man5 install filter_backends.7 $RPM_BUILD_ROOT%{_mandir}/man7 install filtergen.8 $RPM_BUILD_ROOT%{_mandir}/man8 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/filter/simple.conf install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name} install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} touch $RPM_BUILD_ROOT%{_sysconfdir}/filter/generated_rules %clean rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add filtergen %service filtergen restart "filtergen" %preun if [ "$1" = "0" ]; then %service filtergen stop /sbin/chkconfig --del filtergen fi %files %defattr(644,root,root,755) %doc README HONESTY HISTORY TODO tests %attr(755,root,root) %{_sbindir}/filtergen %dir %{_sysconfdir}/filter %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/filter/simple.conf %attr(600,root,root) %{_sysconfdir}/filter/generated_rules %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} %attr(754,root,root) /etc/rc.d/init.d/%{name} %{_mandir}/man5/* %{_mandir}/man7/* %{_mandir}/man8/*