- fix preun and post install scriptlets
This commit is contained in:
parent
32e2a7801f
commit
4ef454cb98
@ -1,6 +1,6 @@
|
|||||||
Name: ppc64-diag
|
Name: ppc64-diag
|
||||||
Version: 2.4.2
|
Version: 2.4.2
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: Linux for Power Platform Diagnostics
|
Summary: Linux for Power Platform Diagnostics
|
||||||
URL: http://sourceforge.net/projects/linux-diag/files/ppc64-diag/
|
URL: http://sourceforge.net/projects/linux-diag/files/ppc64-diag/
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
@ -73,7 +73,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
# Post-install script --------------------------------------------------
|
# Post-install script --------------------------------------------------
|
||||||
%{_datadir}/%{name}/ppc64_diag_setup --register >/dev/null
|
%{_libexecdir}/%{name}/ppc64_diag_setup --register >/dev/null
|
||||||
if [ "$1" = "2" ]; then # upgrade
|
if [ "$1" = "2" ]; then # upgrade
|
||||||
%{_libexecdir}/%{name}/rtas_errd restart
|
%{_libexecdir}/%{name}/rtas_errd restart
|
||||||
fi
|
fi
|
||||||
@ -82,7 +82,7 @@ fi
|
|||||||
# Pre-uninstall script -------------------------------------------------
|
# Pre-uninstall script -------------------------------------------------
|
||||||
if [ "$1" = "0" ]; then # last uninstall
|
if [ "$1" = "0" ]; then # last uninstall
|
||||||
%{_libexecdir}/%{name}/rtas_errd stop
|
%{_libexecdir}/%{name}/rtas_errd stop
|
||||||
%{_datadir}/%{name}/ppc64_diag_setup --unregister >/dev/null
|
%{_libexecdir}/%{name}/ppc64_diag_setup --unregister >/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%triggerin -- librtas
|
%triggerin -- librtas
|
||||||
@ -93,6 +93,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Sep 22 2011 Karsten Hopp <karsten@redhat.com> 2.4.2-4
|
||||||
|
- fix preun and post install scriptlets
|
||||||
|
|
||||||
* Fri Sep 09 2011 Karsten Hopp <karsten@redhat.com> 2.4.2-3
|
* Fri Sep 09 2011 Karsten Hopp <karsten@redhat.com> 2.4.2-3
|
||||||
- add buildrequirement systemd-units for _unitdir rpm macro
|
- add buildrequirement systemd-units for _unitdir rpm macro
|
||||||
- move helper scripts to libexecdir/ppc64-diag
|
- move helper scripts to libexecdir/ppc64-diag
|
||||||
|
Loading…
Reference in New Issue
Block a user