Accepting request 457511 from home:eeich:branches:hardware

- Create /usr/lib/tmpfiles.d/powerman.conf:
  Add systemd handling for temporary directory /var/run/powerman.

OBS-URL: https://build.opensuse.org/request/show/457511
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=31
This commit is contained in:
Stanislav Brabec 2017-02-21 14:04:25 +00:00 committed by Git OBS Bridge
parent e851174031
commit 4530da9a5e
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Feb 15 17:24:43 UTC 2017 - eich@suse.com
- Create /usr/lib/tmpfiles.d/powerman.conf:
Add systemd handling for temporary directory /var/run/powerman.
-------------------------------------------------------------------
Wed Jan 4 18:16:09 UTC 2017 - eich@suse.com

View File

@ -80,6 +80,10 @@ make %{?_smp_mflags}
make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot} -type f -name "*.la" -delete -print
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
%{__mkdir} -p %{buildroot}%{_tmpfilesdir}
cat >> %{buildroot}%{_tmpfilesdir}/%{name}.conf <<EOF
d /var/run/powerman 0755 daemon root -
EOF
mv %{buildroot}%{_sysconfdir}/powerman/powerman.conf.example %{buildroot}%{_sysconfdir}/powerman/powerman.conf
rm -r %{buildroot}%{_libdir}/stonith
%fdupes -s %{buildroot}
@ -89,6 +93,7 @@ rm -r %{buildroot}%{_libdir}/stonith
%post
%service_add_post %{name}.service
systemd-tmpfiles --create %{_tmpfilesdir}/powerman.conf
%preun
%service_del_preun %{name}.service
@ -111,6 +116,7 @@ rm -r %{buildroot}%{_libdir}/stonith
%attr(0644,root,root) %{_unitdir}/%{name}.service
%config %{_sysconfdir}/powerman/powerman.conf
%{_sysconfdir}/powerman/*.dev
%{_tmpfilesdir}/powerman.conf
%files devel
%defattr(-,root,root)