From 22c2dec93f2f53fcfa774afb08f9c04926ab91eb Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Tue, 18 Aug 2009 21:23:30 +0000 Subject: [PATCH] Working version with SUSE macros --- shibboleth.spec.in | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/shibboleth.spec.in b/shibboleth.spec.in index 4f5c117..82b309a 100644 --- a/shibboleth.spec.in +++ b/shibboleth.spec.in @@ -158,7 +158,8 @@ sh ./keygen.sh -b %endif %if "%{_vendor}" == "suse" # This adds the proper /etc/rc*.d links for the script - %{insserv_force_if_yast} shibd + cd / + %insserv_force_if_yast shibd %endif %preun @@ -169,7 +170,7 @@ sh ./keygen.sh -b fi %endif %if "%{_vendor}" == "suse" - %{stop_on_removal} shibd + %stop_on_removal shibd %endif %postun @@ -177,7 +178,9 @@ sh ./keygen.sh -b /sbin/ldconfig %endif %if "%{_vendor}" == "suse" -%{restart_on_update} shibd apache2 +cd / +%restart_on_update shibd +%{!?_without_builtinapache:%restart_on_update apache2} %{insserv_cleanup} %endif -- 2.1.4