X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=captive.spec.in;h=23f83c71bdf07e855ada99c1478a8c7a10e7c8c8;hb=656cd66c43f91b2e92badcc4fbeab24405c0ab67;hp=174056a9a39fde39e6442df05c62f3d9e71b9034;hpb=1e30dfebb2ccb5681e454ff987a8b8d6ae1525a0;p=captive.git diff --git a/captive.spec.in b/captive.spec.in index 174056a..23f83c7 100644 --- a/captive.spec.in +++ b/captive.spec.in @@ -214,6 +214,7 @@ rm -rf $RPM_BUILD_ROOT %endif /usr/lib/lsb/install_initd @PACKAGE@ 2>/dev/null || \ /sbin/chkconfig --add @PACKAGE@ +touch %{_var}/lock/subsys/@PACKAGE@ %if ! %{static} %post install @@ -224,6 +225,14 @@ rm -rf $RPM_BUILD_ROOT %preun %if ! %{static} +%preun fuse +%endif +/usr/lib/lsb/remove_initd @PACKAGE@ 2>/dev/null || \ + /sbin/chkconfig --del @PACKAGE@ +%{_initrddir}/@PACKAGE@ stop +rm -f %{_var}/lock/subsys/@PACKAGE@ + +%if ! %{static} %preun install %endif %{_sbindir}/captive-install-fstab --remove @@ -234,12 +243,6 @@ rm -rf $RPM_BUILD_ROOT rm -rf %{_var}/lib/@PACKAGE@/s-* rm -rf %{_var}/lib/@PACKAGE@/tmp/* -%if ! %{static} -%postun fuse -%endif -/usr/lib/lsb/remove_initd @PACKAGE@ 2>/dev/null || \ - /sbin/chkconfig --del @PACKAGE@ - %files %defattr(-,root,root) %doc README NEWS AUTHORS THANKS TODO