[matahari] Adjust to systemd unit files relocation

Petr Pisar ppisar at fedoraproject.org
Tue Feb 14 12:41:26 UTC 2012


commit d5e80bfb4f9a5e5f4f03d0fb79c97d10e5e51a5c
Author: Petr Písař <ppisar at redhat.com>
Date:   Tue Feb 14 13:41:17 2012 +0100

    Adjust to systemd unit files relocation

 matahari.spec |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/matahari.spec b/matahari.spec
index 9657d5e..d899aa9 100644
--- a/matahari.spec
+++ b/matahari.spec
@@ -278,6 +278,10 @@ QMF console for monitoring various agents
 %prep
 %setup -q -n matahari-%{version}
 %patch0 -p1 -b .unistd-include
+%if %{systemd}
+sed -i -e 's|"/lib/systemd/system"|"%{_unitdir}"|' \
+    src/CMakeLists.txt sys/CMakeLists.txt
+%endif
 
 %build
 %{cmake} -DCMAKE_BUILD_TYPE=RelWithDebInfo %{!?with_qmf: -DWITH-QMF:BOOL=OFF} %{!?with_dbus: -DWITH-DBUS:BOOL=OFF} -Dinitdir=%{_initddir} -Dsysconfdir=%{_sysconfdir} .
@@ -773,6 +777,7 @@ test "x%{buildroot}" != "x" && rm -rf %{buildroot}
 %changelog
 * Fri Feb 10 2012 Petr Pisar <ppisar at redhat.com> - 0.6.0-3.1
 - Rebuild against PCRE 8.30
+- Adjust to systemd unit files relocation
 
 * Fri Jan 13 2012 Zane Bitter <zbitter at redhat.com> 0.6.0-3
 - Set correct permissions on mhsh executable.


More information about the scm-commits mailing list