Accepting request 85190 from Base:System

- Use latest systemd RPM macros. (forwarded request 85108 from fcrozat)

OBS-URL: https://build.opensuse.org/request/show/85190
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/acpid?expand=0&rev=49
This commit is contained in:
Sascha Peilicke 2011-09-28 12:02:09 +00:00 committed by Git OBS Bridge
commit 6574990364
2 changed files with 7 additions and 7 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Sep 26 16:20:40 UTC 2011 - fcrozat@suse.com
- Use latest systemd RPM macros.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Sep 23 14:18:54 UTC 2011 - fcrozat@suse.com Fri Sep 23 14:18:54 UTC 2011 - fcrozat@suse.com

View File

@ -77,20 +77,15 @@ install -dm 755 %buildroot%_var/log
touch %buildroot%_var/log/acpid touch %buildroot%_var/log/acpid
%pre %pre
%service_migrate_to_systemd_pre acpid %service_add_pre acpid.service
%post %post
%{fillup_and_insserv -y -f acpid} %{fillup_and_insserv -y -f acpid}
%service_migrate_to_systemd_post acpid %service_add_post acpid.service
%service_add acpid.service
if [ $FIRST_ARG -eq 1 ]; then
/bin/systemctl enable acpid.service 2> /dev/null || :
fi
%postun %postun
%restart_on_update acpid %restart_on_update acpid
%{insserv_cleanup} %{insserv_cleanup}
%service_migrate_to_systemd_postun acpid
%service_del_postun acpid.service %service_del_postun acpid.service
%preun %preun