Accepting request 103358 from home:computersalat:devel:sysmgmnt
fix pre/post scripts OBS-URL: https://build.opensuse.org/request/show/103358 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=16
This commit is contained in:
parent
dd60137393
commit
5d14955f3f
@ -1,5 +1,5 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Feb 8 11:03:06 UTC 2012 - chris@computersalat.de
|
Wed Feb 8 15:03:01 UTC 2012 - chris@computersalat.de
|
||||||
|
|
||||||
- fix pre/post scripts
|
- fix pre/post scripts
|
||||||
* RHEL/CentOS does not know "SuSE macros" :(
|
* RHEL/CentOS does not know "SuSE macros" :(
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Name: cfengine
|
Name: cfengine
|
||||||
%define libname libpromises
|
%define libname libpromises
|
||||||
%define libsoname %{libname}1
|
%define libsoname %{libname}1
|
||||||
@ -189,32 +188,26 @@ done
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
%if 0%{?suse_version} > 1010
|
|
||||||
%install_info --name=%{name} --info-dir=%{_infodir} %{_infodir}/cf3-reference.info.gz
|
%install_info --name=%{name} --info-dir=%{_infodir} %{_infodir}/cf3-reference.info.gz
|
||||||
%else
|
|
||||||
:
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%install_info --info-dir=%{_infodir} %{_infodir}/cf3-reference.info.gz
|
|
||||||
%endif
|
%endif
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
%insserv_cleanup
|
|
||||||
for i in execd monitord; do
|
|
||||||
%restart_on_update cf-${i}
|
|
||||||
done
|
|
||||||
%if 0%{?suse_version} > 1010
|
|
||||||
%install_info_delete --name=%{name} --info-dir=%{_infodir} %{_infodir}/cf3-reference.info.gz
|
%install_info_delete --name=%{name} --info-dir=%{_infodir} %{_infodir}/cf3-reference.info.gz
|
||||||
|
%insserv_cleanup
|
||||||
|
for i in execd monitord; do
|
||||||
|
%restart_on_update cf-${i}
|
||||||
|
done
|
||||||
%else
|
%else
|
||||||
:
|
# Update ?
|
||||||
%endif
|
if [ ${1:-0} -eq 1 ]; then
|
||||||
%else
|
for i in execd monitord; do
|
||||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/cf3-reference.info.gz
|
|
||||||
for i in execd monitord; do
|
|
||||||
/etc/init.d/cf-${i} restart
|
/etc/init.d/cf-${i} restart
|
||||||
done
|
done
|
||||||
|
else
|
||||||
|
:
|
||||||
|
fi
|
||||||
%endif
|
%endif
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
@ -229,7 +222,12 @@ done
|
|||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
%restart_on_update cf-serverd
|
%restart_on_update cf-serverd
|
||||||
%else
|
%else
|
||||||
/etc/init.d/cf-serverd restart
|
# Update ?
|
||||||
|
if [ ${1:-0} -eq 1 ]; then
|
||||||
|
/etc/init.d/cf-serverd restart
|
||||||
|
else
|
||||||
|
:
|
||||||
|
fi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post -n %{libsoname} -p /sbin/ldconfig
|
%post -n %{libsoname} -p /sbin/ldconfig
|
||||||
|
Loading…
Reference in New Issue
Block a user