Summary: Simple packet filter generator Summary(pl): Prosty generator filtrów pakietów Name: filter Version: 0.5 Release: 5 License: GPL Group: Networking/Utilities Source0: http://hairy.beasts.org/filter/%{name}-%{version}.tar.gz Source1: %{name}.conf Source2: %{name}.sysconfig Source3: %{name}.init URL: http://hairy.beasts.org/filter/ BuildRequires: flex Prereq: rc-scripts Prereq: /sbin/chkconfig Provides: firewall 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} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}/%{name}} \ $RPM_BUILD_ROOT%{_sysconfdir}/{sysconfig,rc.d/init.d} install filtergen $RPM_BUILD_ROOT%{_sbindir} install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/simple.conf install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name} install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name} touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/generated_rules gzip -9nf README HONESTY HISTORY TODO tests/* %clean rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add filter if [ -f /var/lock/subsys/filter ]; then /etc/rc.d/init.d/filter restart >&2 else echo "Run \"/etc/rc.d/init.d/filter start\" to start filter" fi %preun if [ "$1" = "0" ]; then if [ -f /var/lock/subsys/filter ]; then /etc/rc.d/init.d/filter stop >&2 fi /sbin/chkconfig --del filter fi %files %defattr(644,root,root,755) %doc *.gz tests %attr(755,root,root) %{_sbindir}/filtergen %dir %{_sysconfdir}/%{name} %attr(600,root,root) %{_sysconfdir}/%{name}/simple.conf %attr(600,root,root) %{_sysconfdir}/%{name}/generated_rules %attr(600,root,root) %{_sysconfdir}/sysconfig/%{name} %attr(754,root,root) %{_sysconfdir}/rc.d/init.d/%{name}