Summary: Firewall SysV-init style start-up script
Summary(pl): Skrypt startowy firewalla
Name: firewall-init
-Version: 2.99.5
-Release: 2@2.4
+Version: 2.99.8
+Release: 2
License: GPL
Group: Networking/Admin
-Group(de): Netzwerkwesen/Administration
-Group(pl): Sieciowe/Administacyjne
-# Source0: ftp://ftp.pld.org.pl/software/firewall-init/%{name}-%{version}.tar.gz
-# Source0-md5: e336e02377ef26c258d8ccabeaefcf8c
-Source0: http://aramin.one.pl/~undefine/%{name}-%{version}.tar.gz
-Patch0: %{name}-pre.patch
+Source0: ftp://ftp.pld-linux.org/software/firewall-init/%{name}-%{version}.tar.bz2
+# Source0-md5: 1237a67be00e5ecef53a934f86c7507b
+Requires(post,preun): /sbin/chkconfig
Requires: iptables >= 1.2.2-2
-Conflicts: kernel < 2.3.0
-Prereq: rc-scripts
-Prereq: /sbin/chkconfig
-Buildarch: noarch
+Requires: rc-scripts
+Obsoletes: iptables-init
+BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Firewall-init is meant to provide an easy to use interface for starting
-and stopping the kernel IP packet filter through iptables(8).
+Firewall-init is meant to provide an easy to use interface for
+starting and stopping the kernel IP packet filter through iptables(8).
%description -l pl
Dziêki firewall-init uzyskuje siê ³atwy interfejs do startowania i
%prep
%setup -q
-%patch0 -p1
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+#%%pre
+#if [ `rpm -q --queryformat='%{VERSION}' firewall-init` < '2.5' ]; then
+# echo "You need to manually convert your rules to iptables or install"
+# echo "firewall-init-ipchains"
+# exit 1
+#fi
%post
/sbin/chkconfig --add firewall
/sbin/chkconfig --add firewall-pre
-%postun
+%preun
if [ "$1" = "0" ]; then
/sbin/chkconfig --del firewall
/sbin/chkconfig --del firewall-pre
fi
-%clean
-rm -rf $RPM_BUILD_ROOT
-
%files
%defattr(644,root,root,755)
%doc README
%defattr(640,root,root,750)
-%verify(not size mtime md5) %config(noreplace) /etc/sysconfig/firewall
-%verify(not size mtime md5) %config(noreplace) /etc/sysconfig/firewall.d/ip*
-%verify(not size mtime md5) %config(noreplace) /etc/sysconfig/firewall.d/functions.rules
+%verify(not md5 mtime size) %config(noreplace) /etc/sysconfig/firewall
+%verify(not md5 mtime size) %config(noreplace) /etc/sysconfig/firewall.d/ip*
+%verify(not md5 mtime size) %config(noreplace) /etc/sysconfig/firewall.d/functions.rules
/etc/sysconfig/firewall.d/functions
%attr(754,root,root) /etc/rc.d/init.d/firewall*
%dir /etc/sysconfig/firewall.d