Hello community, here is the log from the commit of package acpid for openSUSE:Factory checked in at Thu Aug 25 11:01:42 CEST 2011. -------- --- acpid/acpid.changes 2011-08-23 14:08:12.000000000 +0200 +++ /mounts/work_src_done/STABLE/acpid/acpid.changes 2011-08-24 18:32:31.000000000 +0200 @@ -1,0 +2,5 @@ +Wed Aug 24 16:30:58 UTC 2011 - fcrozat@suse.com + +- Use systemd macros to enable acpid service. + +------------------------------------------------------------------- calling whatdependson for head-i586 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ acpid.spec ++++++ --- /var/tmp/diff_new_pack.sT7Vfy/_old 2011-08-25 11:00:46.000000000 +0200 +++ /var/tmp/diff_new_pack.sT7Vfy/_new 2011-08-25 11:00:46.000000000 +0200 @@ -21,7 +21,7 @@ Name: acpid Url: http://tedfelix.com/linux/acpid-netlink.html Version: 2.0.10 -Release: 3 +Release: 5 License: GPLv2+ Group: System/Daemons AutoReqProv: on @@ -38,7 +38,9 @@ Source8: acpid.service Patch1: acpid-makefile.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: systemd ExclusiveArch: %ix86 x86_64 ia64 +%systemd_requires %description ACPID is a completely flexible, totally extensible daemon for @@ -76,8 +78,8 @@ ln -sf ../../etc/init.d/acpid %{buildroot}/usr/sbin/rcacpid install -Dm 644 events.power_button %{buildroot}/etc/acpi/events/power_button install -Dm 644 events.thinkpad %{buildroot}/etc/acpi/events/thinkpad -mkdir -p $RPM_BUILD_ROOT/lib/systemd/system -install -m 644 %{SOURCE8} $RPM_BUILD_ROOT/lib/systemd/system +mkdir -p $RPM_BUILD_ROOT/%{_unitdir} +install -m 644 %{SOURCE8} $RPM_BUILD_ROOT/%{_unitdir} # for the rpmlint fascists mv samples examples @@ -88,15 +90,23 @@ %clean rm -rf %{buildroot} +%pre +%service_migrate_to_systemd_pre acpid + %post %{fillup_and_insserv -y -f acpid} +%service_migrate_to_systemd_post acpid +%service_add acpid.service %postun %restart_on_update acpid %{insserv_cleanup} +%service_migrate_to_systemd_postun acpid +%service_del_postun acpid.service %preun %stop_on_removal acpid +%service_del_preun acpid.service %files %defattr(-,root,root) @@ -108,7 +118,7 @@ /usr/lib/acpid /etc/init.d/acpid /etc/modprobe.d/50-thinkpad_acpi.conf -/lib/systemd/system/%{name}.service +%_unitdir/%{name}.service /usr/sbin/rcacpid /sbin/acpid /usr/bin/acpi_listen ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org