X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=shorewall.spec;h=caf7dabfde0b7b9c56ce29a0e85aaf2cfcfa6047;hb=875d24ee8ea37ebcfe8b1f8fdcd47f291378a190;hp=8fb11f048288080fbdcafac665edfe0a518b33fe;hpb=57e209e375cd16e5a599c9c681c42ec743d31603;p=packages%2Fshorewall.git diff --git a/shorewall.spec b/shorewall.spec index 8fb11f0..caf7dab 100644 --- a/shorewall.spec +++ b/shorewall.spec @@ -7,7 +7,7 @@ Summary: Shoreline Firewall - an iptables-based firewall for Linux systems Summary(pl.UTF-8): Shoreline Firewall - zapora sieciowa oparta na iptables Name: shorewall Version: 5.2.0.4 -Release: 0.2 +Release: 1 License: GPL Group: Networking/Utilities Source0: http://www.shorewall.net/pub/shorewall/5.2/shorewall-5.2.0/%{name}-%{version}.tar.bz2 @@ -170,6 +170,16 @@ install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/shorewall %clean rm -rf $RPM_BUILD_ROOT +%post +/sbin/chkconfig --add shorewall +%service shorewall restart "Shorewall" + +%preun +if [ "$1" = "0" ]; then + %service shorewall stop + /sbin/chkconfig --del shorewall +fi + %files %defattr(644,root,root,755) %doc shorewall-%{version}/{COPYING,changelog.txt,releasenotes.txt,Samples}