X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=firewall-init-ipchains.spec;h=826d065fbefb671d346b5e15a80242c80af9e050;hb=f5a6c7f89a8b43c58eb9f73c846b9e168273a7af;hp=5480f6591a7c3cce5268194f93ddeb1c1edde600;hpb=b865a705f2cd0aba13cf7b293ff17ab67c3b1180;p=packages%2Ffirewall-init-ipchains.git diff --git a/firewall-init-ipchains.spec b/firewall-init-ipchains.spec index 5480f65..826d065 100644 --- a/firewall-init-ipchains.spec +++ b/firewall-init-ipchains.spec @@ -1,44 +1,53 @@ -Summary: Firewall SysV-init style start-up script -Name: firewall-init -Version: 1.2 -Release: 6 -Copyright: BSD -Group: Networking/Admin -Source: ftp://ftp.redhat.com/pub/home/bandregg/%{name}-%{version}.tar.gz -Patch0: firewall-init.patch -Patch1: firewall-chkconfig.patch -Prereq: /sbin/chkconfig -Requires: ipfwadm -Buildarch: noarch -Buildroot: /tmp/%{name}-%{version}-root +Summary: ipchains firewall SysV-init style start-up script +Summary(pl): Skrypt startowy firewalla ipchains +Name: firewall-init +Version: 2.1 +Release: 4 +License: BSD +Group: Networking/Admin +Source0: %{name}-%{version}.tar.gz +# Source0-md5: 07ba7a897e2d903d629e6607e3b495f3 +Patch0: %{name}-syntax_verify.patch +Requires: ipchains +PreReq: rc-scripts +PreReq: /sbin/chkconfig +Obsoletes: firewall-init < 2.2 +Conflicts: firewall-init >= 2.99 +Buildarch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -Firewall-init is meant to provide an easy to use interface to start and -stopping the kernel IP packet filters and accounting through ipfwadm(8). +Firewall-init is meant to provide an easy to use interface to start +and stopping the kernel IP packet filters and accounting through +ipchains(8). + +%description -l pl +Dziêki firewall-init uzyskuje siê ³atwy interfejs do startowania i +stopowania filtrów IP j±dra oraz zliczania pakietów poprzez +ipchains(8). %prep %setup -q -%patch0 -p1 -%patch1 -p1 +%patch -p1 %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT/etc/{sysconfig/firewall-rules,rc.d/{init,rc{0,1,2,3,4,5,6}}.d} +install -d $RPM_BUILD_ROOT/etc/{sysconfig/firewall-rules,rc.d/init.d} + +install firewall.init $RPM_BUILD_ROOT/etc/rc.d/init.d/firewall install firewall $RPM_BUILD_ROOT/etc/sysconfig/ + for i in input output forward; do - echo '# ' > \ + echo '# ' > \ $RPM_BUILD_ROOT/etc/sysconfig/firewall-rules/${i} done -echo '# ' > \ - $RPM_BUILD_ROOT/etc/sysconfig/firewall-rules/account -install firewall.init $RPM_BUILD_ROOT/etc/rc.d/init.d/firewall %post /sbin/chkconfig --add firewall %postun -if [ $1 = 0 ]; then - /sbin/chkconfig --del firewall +if [ "$1" = "0" ]; then + /sbin/chkconfig --del firewall fi %clean @@ -50,63 +59,4 @@ rm -rf $RPM_BUILD_ROOT %attr(600,root,root) %verify(not size mtime md5) %config(noreplace) /etc/sysconfig/firewall %attr(600,root,root) %verify(not size mtime md5) %config(noreplace) /etc/sysconfig/firewall-rules/* %attr(700,root,root) %dir /etc/sysconfig/firewall-rules -%attr(700,root,root) /etc/rc.d/init.d/firewall - -%changelog -* Thu Oct 29 1998 Tomasz K³oczko - [1.2-6] -- added support for chconfig (firewall-chconfig.patch and %post{un} - sections). - -* Wed Jul 15 1998 Tomasz K³oczko - [1.2-5] -- added status and extstatus functionality to init script. - -* Thu Jul 9 1998 Tomasz K³oczko - [1.2-4] -- added -q %setup parameter, -- added using %%{name}, %%{version} macros in Buildroot and Source, -- spec file rewritten for using Buildroot, -- added %clean section, -- removed Packager field from spec (if you want recompile package and - redistribute this package later put this in your private .rpmrc). -- replaced "mkdir -p" with "install -d" in %install, -- added %defattr and %attr macros in %files (allows building package from - non-root account), -- changed permission for config files with firewall rules to 700, -- added %verify(not size mtime md5) for config files with firewall rules, -- added Summary field, -- changed build architecture to noarch, -- added restart and probe10min functionality to init script (probe10min - helps on experiments with new FW rules), -- added noreplace parameter for %config for config files with firewall - rules. - -* Mon Aug 18 1997 Bryan C. Andregg - [1.2-3] -Fixed error handling typo. -Removed handling of the 'any' case in favor of 'any/0' -Added masquerading notes in README. -Added empty config files. - -* Sun Aug 17 1997 Bryan C. Andregg -Major bug fixes. -Added 'Requires' field. -Changes S9 to S09 in the rc.d runlevel dirs. -Fixed spelling errors. -Changed %config to %dir for /etc/sysconfig/firewall-rules. - -* Wed Aug 13 1997 Bryan C. Andregg -Fixed numerous spelling errors. -Added stderr redirection to > /dev/null and logging of errors to syslogd. -Fixed bugs in /etc/rc.d/init.d/firewall -Changed version to 1.1. -Added support for ANY|any keyword in addrs,masks and ports. -Added accounting rule set. -Fixed xxx.xxx.xxx.xxx netmask format bug. -Cleaned up firewall.init. - -* Tue Aug 12 1997 Bryan C. Andregg -Included README. -Moved /etc/sysconfig/firewall-ruels/input to %doc/input.example. -Initial build. +%attr(754,root,root) /etc/rc.d/init.d/firewall