fix install locations of tmpfiles & bash-completion
Signed-off-by: Per Øyvind Karlsen (proyvind) <proyvind@moondrake.org>
This commit is contained in:
parent
284041dc14
commit
393708d974
2 changed files with 8 additions and 6 deletions
10
Makefile
10
Makefile
|
|
@ -2,11 +2,13 @@ NAME = tuned
|
|||
VERSION = $(shell awk '/^Version:/ {print $$2}' tuned.spec)
|
||||
RELEASE = $(shell awk '/^Release:/ {print $$2}' tuned.spec)
|
||||
UNITDIR = $(shell rpm --eval '%{_unitdir}')
|
||||
TMPFILESDIR = $(shell rpm --eval '%{_tmpfilesdir}')
|
||||
VERSIONED_NAME = $(NAME)-$(VERSION)
|
||||
|
||||
DESTDIR = /
|
||||
PYTHON_SITELIB = /usr/lib/python2.7/site-packages
|
||||
TUNED_PROFILESDIR = /usr/lib/tuned
|
||||
BASH_COMPLETIONS = /usr/share/bash-completion/completions/
|
||||
|
||||
archive: clean
|
||||
mkdir -p $(VERSIONED_NAME)
|
||||
|
|
@ -58,16 +60,16 @@ install:
|
|||
install -m 0644 recommend.conf $(DESTDIR)$(TUNED_PROFILESDIR)/recommend.conf
|
||||
|
||||
# Install bash completion
|
||||
mkdir -p $(DESTDIR)/etc/bash_completion.d
|
||||
install -m 0644 tuned.bash $(DESTDIR)/etc/bash_completion.d/tuned.bash
|
||||
mkdir -p $(DESTDIR)$(BASH_COMPLETIONS)
|
||||
install -m 0644 tuned.bash $(DESTDIR)$(BASH_COMPLETIONS)/tuned
|
||||
|
||||
# log dir
|
||||
mkdir -p $(DESTDIR)/var/log/tuned
|
||||
|
||||
# runtime directory
|
||||
mkdir -p $(DESTDIR)/run/tuned
|
||||
mkdir -p $(DESTDIR)/etc/tmpfiles.d
|
||||
install -m 0644 tuned.tmpfiles $(DESTDIR)/etc/tmpfiles.d/tuned.conf
|
||||
mkdir -p $(DESTDIR)$(TMPFILESDIR)
|
||||
install -m 0644 tuned.tmpfiles $(DESTDIR)$(TMPFILESDIR)/tuned.conf
|
||||
|
||||
# systemd units
|
||||
mkdir -p $(DESTDIR)$(UNITDIR)
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' /etc/tuned/active_profile
|
|||
%doc COPYING
|
||||
%doc README
|
||||
%doc doc/TIPS.txt
|
||||
%{_sysconfdir}/bash_completion.d
|
||||
%{_datadir}/bash-completion/completions/tuned
|
||||
%{python_sitelib}/tuned
|
||||
%{_sbindir}/tuned
|
||||
%{_sbindir}/tuned-adm
|
||||
|
|
@ -113,8 +113,8 @@ sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' /etc/tuned/active_profile
|
|||
%dir %{_sysconfdir}/tuned
|
||||
%config(noreplace) %{_sysconfdir}/tuned/active_profile
|
||||
%config(noreplace) %{_sysconfdir}/tuned/tuned-main.conf
|
||||
%{_sysconfdir}/tmpfiles.d
|
||||
%{_sysconfdir}/dbus-1/system.d/com.redhat.tuned.conf
|
||||
%{_tmpfilesdir}/tuned.conf
|
||||
%{_unitdir}/tuned.service
|
||||
%dir %{_localstatedir}/log/tuned
|
||||
%dir /run/tuned
|
||||
|
|
|
|||
Loading…
Reference in a new issue