From 12968c1f2634ff4b54f88125e6ca7d203caa1919 Mon Sep 17 00:00:00 2001 From: Jan Vcelak Date: Mon, 12 Jul 2010 16:18:29 +0200 Subject: [PATCH] fixed symlinks to configuration files After fresh installation, configuration files will be symbolic links to appropriate files in 'default' profile. --- Makefile | 7 ++++--- tuned.spec | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 36a7677..9a9792c 100644 --- a/Makefile +++ b/Makefile @@ -89,7 +89,7 @@ install: # Install config file mkdir -p $(DESTDIR)/etc - install -m 0644 tuned.conf $(DESTDIR)/etc + ln -s /etc/tune-profiles/default/tuned.conf $(DESTDIR)/etc/tuned.conf mkdir -p $(DESTDIR)/etc/tune-profiles/ @@ -109,14 +109,15 @@ install: install -m 755 -d $(DESTDIR)/etc install -m 755 -d $(DESTDIR)/etc/ktune.d install -m 755 -d $(DESTDIR)/etc/sysconfig - install -m 644 ktune/ktune.sysconfig $(DESTDIR)/etc/sysconfig/ktune install -m 755 -d $(DESTDIR)/etc/rc.d/init.d install -m 755 ktune/ktune.init $(DESTDIR)/etc/rc.d/init.d/ktune + ln -s /etc/tune-profiles/default/ktune.sysconfig $(DESTDIR)/etc/sysconfig/ktune + ln -s /etc/tune-profiles/default/sysctl.ktune $(DESTDIR)/etc/ktune.d/tunedadm.conf # Install tune-profiles install -m 755 -d $(DESTDIR)/etc/tune-profiles cp -a tune-profiles/* $(DESTDIR)/etc/tune-profiles - install -m 0644 tuned-adm.conf $(DESTDIR)//etc/tune-profiles/active-profile + install -m 0644 tuned-adm.conf $(DESTDIR)/etc/tune-profiles/active-profile # Install bash completion mkdir -p $(DESTDIR)/etc/bash_completion.d diff --git a/tuned.spec b/tuned.spec index 746141c..083dd54 100644 --- a/tuned.spec +++ b/tuned.spec @@ -82,15 +82,16 @@ fi %{_sbindir}/tuned-adm # consolehelper hard link %{_bindir}/tuned-adm -%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/tune-profiles/active-profile +%config(noreplace) %{_sysconfdir}/tune-profiles/active-profile %{_sysconfdir}/tune-profiles %{_datadir}/tuned %{_mandir}/man1/* %{_mandir}/man5/* %{_mandir}/man8/* %attr(0755,root,root) %{_initddir}/ktune -%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/ktune -%dir %attr(0755,root,root) %{_sysconfdir}/ktune.d +%config(noreplace) %{_sysconfdir}/sysconfig/ktune +%config(noreplace) %{_sysconfdir}/ktune.d/tunedadm.conf +%dir %{_sysconfdir}/ktune.d %dir /var/log/tuned %files utils