From 78f0bb94a49082decae5715973aa634a04e29b14fe66b55c48709d122d2010fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 28 May 2014 08:49:19 +0000 Subject: [PATCH] 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 --- dmraid.changes | 5 +++++ dmraid.spec | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/dmraid.changes b/dmraid.changes index 12e1a8b..d50df9f 100644 --- a/dmraid.changes +++ b/dmraid.changes @@ -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 diff --git a/dmraid.spec b/dmraid.spec index 9cf7337..82f811d 100644 --- a/dmraid.spec +++ b/dmraid.spec @@ -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}