SHA256
1
0
forked from pool/dmraid

Accepting request 234946 from home:jsegitz:branches:Base:System

- added necessary macros for systemd files

OBS-URL: https://build.opensuse.org/request/show/234946
OBS-URL: https://build.opensuse.org/package/show/Base:System/dmraid?expand=0&rev=35
This commit is contained in:
Tomáš Chvátal 2014-05-28 08:49:19 +00:00 committed by Git OBS Bridge
parent 71438d38ce
commit 78f0bb94a4
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 21 09:40:42 UTC 2014 - jsegitz@novell.com
- added necessary macros for systemd files
-------------------------------------------------------------------
Fri Sep 13 20:04:57 UTC 2013 - crrodriguez@opensuse.org

View File

@ -1,7 +1,7 @@
#
# spec file for package dmraid
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -115,6 +115,9 @@ install -D -m 0644 %{S:6} %{buildroot}%{_unitdir}/dmraid-activation.service
install -d %{buildroot}%{_tmpfilesdir}
echo 'd /run/lock/dmraid 0700 root root -' > %{buildroot}%{_tmpfilesdir}/dmraid.conf
%pre
%service_add_pre dmraid-activation.service
%preun
%service_del_preun dmraid-activation.service
@ -126,6 +129,7 @@ echo 'd /run/lock/dmraid 0700 root root -' > %{buildroot}%{_tmpfilesdir}/dmraid.
%postun
/sbin/ldconfig
%service_del_postun dmraid-activation.service
[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup
%{insserv_cleanup}