]> git.pld-linux.org Git - packages/firewall-init.git/blobdiff - firewall-init.spec
- drop obsolete files
[packages/firewall-init.git] / firewall-init.spec
index 61fa208c06a017d44cadbed4b11730f8693e7408..1445e126b50f825120716eb62c162d2104c93add 100644 (file)
@@ -1,26 +1,27 @@
 Summary:       Firewall SysV-init style start-up script
-Summary(pl):   Skrypt startowy firewalla
+Summary(pl.UTF-8):     Skrypt startowy firewalla
 Name:          firewall-init
-Version:       2.99.6
-Release:       2
+Version:       2.99.9
+Release:       1
 License:       GPL
 Group:         Networking/Admin
-Source0:       http://ep09.pld-linux.org/~mmazur/%{name}/%{name}-%{version}.tar.bz2
-# Source0-md5: 2d2714634b48e79cccfe95e5163b4cde
-PreReq:                rc-scripts
+Source0:       ftp://ftp.pld-linux.org/software/firewall-init/%{name}-%{version}.tar.bz2
+# Source0-md5: b3bd68e812a2b30b0963c8ce9968af5e
+BuildRequires: rpmbuild(macros) >= 1.194
 Requires(post,preun):  /sbin/chkconfig
 Requires:      iptables >= 1.2.2-2
+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
-stopowania filtrów IP j±dra poprzez iptables(8).
+%description -l pl.UTF-8
+Dzięki firewall-init uzyskuje się łatwy interfejs do startowania i
+stopowania filtrów IP jądra poprzez iptables(8).
 
 %prep
 %setup -q
@@ -34,18 +35,17 @@ rm -rf $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
+%triggerpostun -- %{name} < 2.5
+%banner -e %{name} <<'EOF'
+You need to manually convert your rules to iptables or install
+firewall-init-ipchains
+EOF
 
 %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
@@ -55,9 +55,9 @@ fi
 %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
This page took 0.111123 seconds and 4 git commands to generate.