Accepting request 79683 from home:fcrozat:systemd
- Use systemd macros to enable acpid service. OBS-URL: https://build.opensuse.org/request/show/79683 OBS-URL: https://build.opensuse.org/package/show/Base:System/acpid?expand=0&rev=30
This commit is contained in:
parent
2348eb7d7e
commit
18544358ea
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 24 16:30:58 UTC 2011 - fcrozat@suse.com
|
||||||
|
|
||||||
|
- Use systemd macros to enable acpid service.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Aug 23 12:07:59 UTC 2011 - aj@suse.de
|
Tue Aug 23 12:07:59 UTC 2011 - aj@suse.de
|
||||||
|
|
||||||
|
16
acpid.spec
16
acpid.spec
@ -26,6 +26,7 @@ License: GPLv2+
|
|||||||
Group: System/Daemons
|
Group: System/Daemons
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
PreReq: %insserv_prereq %fillup_prereq
|
PreReq: %insserv_prereq %fillup_prereq
|
||||||
|
%systemd_requires
|
||||||
Summary: Executes Actions at ACPI Events
|
Summary: Executes Actions at ACPI Events
|
||||||
Source: http://tedfelix.com//linux/%{name}-%{version}.tar.gz
|
Source: http://tedfelix.com//linux/%{name}-%{version}.tar.gz
|
||||||
Source2: rcacpid
|
Source2: rcacpid
|
||||||
@ -38,6 +39,7 @@ Source7: power_button
|
|||||||
Source8: acpid.service
|
Source8: acpid.service
|
||||||
Patch1: acpid-makefile.patch
|
Patch1: acpid-makefile.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: systemd
|
||||||
ExclusiveArch: %ix86 x86_64 ia64
|
ExclusiveArch: %ix86 x86_64 ia64
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -76,8 +78,8 @@ mkdir -p %{buildroot}/usr/sbin
|
|||||||
ln -sf ../../etc/init.d/acpid %{buildroot}/usr/sbin/rcacpid
|
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.power_button %{buildroot}/etc/acpi/events/power_button
|
||||||
install -Dm 644 events.thinkpad %{buildroot}/etc/acpi/events/thinkpad
|
install -Dm 644 events.thinkpad %{buildroot}/etc/acpi/events/thinkpad
|
||||||
mkdir -p $RPM_BUILD_ROOT/lib/systemd/system
|
mkdir -p $RPM_BUILD_ROOT/%{_unitdir}
|
||||||
install -m 644 %{SOURCE8} $RPM_BUILD_ROOT/lib/systemd/system
|
install -m 644 %{SOURCE8} $RPM_BUILD_ROOT/%{_unitdir}
|
||||||
|
|
||||||
# for the rpmlint fascists
|
# for the rpmlint fascists
|
||||||
mv samples examples
|
mv samples examples
|
||||||
@ -88,15 +90,23 @@ touch %buildroot%_var/log/acpid
|
|||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%service_migrate_to_systemd_pre acpid
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%{fillup_and_insserv -y -f acpid}
|
%{fillup_and_insserv -y -f acpid}
|
||||||
|
%service_migrate_to_systemd_post acpid
|
||||||
|
%service_add acpid.service
|
||||||
|
|
||||||
%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
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%stop_on_removal acpid
|
%stop_on_removal acpid
|
||||||
|
%service_del_preun acpid.service
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -108,7 +118,7 @@ rm -rf %{buildroot}
|
|||||||
/usr/lib/acpid
|
/usr/lib/acpid
|
||||||
/etc/init.d/acpid
|
/etc/init.d/acpid
|
||||||
/etc/modprobe.d/50-thinkpad_acpi.conf
|
/etc/modprobe.d/50-thinkpad_acpi.conf
|
||||||
/lib/systemd/system/%{name}.service
|
%_unitdir/%{name}.service
|
||||||
/usr/sbin/rcacpid
|
/usr/sbin/rcacpid
|
||||||
/sbin/acpid
|
/sbin/acpid
|
||||||
/usr/bin/acpi_listen
|
/usr/bin/acpi_listen
|
||||||
|
Loading…
Reference in New Issue
Block a user