[tuned/f17] fix: systemd unit install path (usrmove)

jvcelak jvcelak at fedoraproject.org
Tue Mar 20 13:35:09 UTC 2012


commit 73d4e216f1770eb15e7b49ed8aec2f1d0fbec5f6
Author: Jan Vcelak <jvcelak at redhat.com>
Date:   Tue Mar 20 14:34:25 2012 +0100

    fix: systemd unit install path (usrmove)

 tuned-systemd-path.patch |   28 ++++++++++++++++++++++++++++
 tuned.spec               |    3 +++
 2 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/tuned-systemd-path.patch b/tuned-systemd-path.patch
new file mode 100644
index 0000000..9649785
--- /dev/null
+++ b/tuned-systemd-path.patch
@@ -0,0 +1,28 @@
+From d4c0b5a2d145da188b995419764f9c969b9afdbb Mon Sep 17 00:00:00 2001
+From: Jan Vcelak <jvcelak at redhat.com>
+Date: Tue, 20 Mar 2012 14:29:04 +0100
+Subject: [PATCH] update systemd unit file install path
+
+required by /lib -> /usr/lib feature
+---
+ Makefile |    4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index c88c170..84bf761 100644
+--- a/Makefile
++++ b/Makefile
+@@ -165,8 +165,8 @@ install-parts-systemd:
+ 	install -m 0644 tuned.tmpfiles $(DESTDIR)/etc/tmpfiles.d/tuned.conf
+ 
+ 	# systemd units
+-	mkdir -p $(DESTDIR)/lib/systemd/system
+-	install -m 0644 tuned.service $(DESTDIR)/lib/systemd/system
++	mkdir -p $(DESTDIR)/usr/lib/systemd/system
++	install -m 0644 tuned.service $(DESTDIR)/usr/lib/systemd/system
+ 
+ 	# ktune: sysvinit compatiblity
+ 	mkdir -p $(DESTDIR)/etc/rc.d/init.d
+-- 
+1.7.6.5
+
diff --git a/tuned.spec b/tuned.spec
index 947e2e0..9931725 100644
--- a/tuned.spec
+++ b/tuned.spec
@@ -23,6 +23,8 @@ Requires(preun): initscripts
 Requires(postun): initscripts
 BuildArch: noarch
 
+Patch0: tuned-systemd-path.patch
+
 %description
 The tuned package contains a daemon that tunes system settings dynamically.
 It does so by monitoring the usage of several system components periodically.
@@ -44,6 +46,7 @@ instead of fewer large ones).
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 


More information about the scm-commits mailing list