Make use of the new systemd macros
This commit is contained in:
parent
4a31f92233
commit
b3931dc2c5
16
rtkit.spec
16
rtkit.spec
@ -1,6 +1,6 @@
|
|||||||
Name: rtkit
|
Name: rtkit
|
||||||
Version: 0.11
|
Version: 0.11
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Realtime Policy and Watchdog Daemon
|
Summary: Realtime Policy and Watchdog Daemon
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
# The daemon itself is GPLv3+, the reference implementation for the client BSD
|
# The daemon itself is GPLv3+, the reference implementation for the client BSD
|
||||||
@ -51,19 +51,14 @@ getent passwd rtkit >/dev/null 2>&1 || useradd \
|
|||||||
:;
|
:;
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if [ $1 -eq 1 ]; then
|
%systemd_post rtkit-daemon.service
|
||||||
/bin/systemctl enable rtkit.service >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || :
|
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || :
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ "$1" -eq 0 ]; then
|
%systemd_preun rtkit-daemon.service
|
||||||
/bin/systemctl --no-reload disable rtkit-daemon.service >/dev/null 2>&1 || :
|
|
||||||
/bin/systemctl stop rtkit-daemon.service >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
%systemd_postun
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(0644,root,root,0755)
|
%defattr(0644,root,root,0755)
|
||||||
@ -78,6 +73,9 @@ fi
|
|||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Sep 14 2012 Lennart Poettering <lpoetter@redhat.com> - 0.11-3
|
||||||
|
- Make use of the new systemd macros
|
||||||
|
|
||||||
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user