X-Git-Url: https://git.tld-linux.org/?p=packages%2Fshorewall.git;a=blobdiff_plain;f=shorewall.spec;h=caf7dabfde0b7b9c56ce29a0e85aaf2cfcfa6047;hp=f6425655d90cf7f578febde9508195858a089519;hb=875d24ee8ea37ebcfe8b1f8fdcd47f291378a190;hpb=8a01348d3f321931bde401311d31af4afbcaf4a4 diff --git a/shorewall.spec b/shorewall.spec index f642565..caf7dab 100644 --- a/shorewall.spec +++ b/shorewall.spec @@ -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}