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