forked from pool/powerman
Accepting request 459512 from hardware
1 OBS-URL: https://build.opensuse.org/request/show/459512 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=22
This commit is contained in:
commit
22f6d790ce
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user