fix: systemd unit install path (usrmove)

This commit is contained in:
Jan Vcelak 2012-03-20 14:34:25 +01:00
parent e917ff8619
commit 73d4e216f1
2 changed files with 31 additions and 0 deletions

28
tuned-systemd-path.patch Normal file
View File

@ -0,0 +1,28 @@
From d4c0b5a2d145da188b995419764f9c969b9afdbb Mon Sep 17 00:00:00 2001
From: Jan Vcelak <jvcelak@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

View File

@ -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