Accepting request 235642 from Base:System

- added necessary macros for systemd files (forwarded request 234946 from jsegitz)

OBS-URL: https://build.opensuse.org/request/show/235642
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dmraid?expand=0&rev=48
This commit is contained in:
Stephan Kulow 2014-06-01 16:57:05 +00:00 committed by Git OBS Bridge
commit 07962ce3f5
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}