From 5e732d73fa2eefb24e31b950555c53a34d21db92 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Sun, 24 Nov 2013 18:58:08 +0100 Subject: [PATCH] Install kboot-mkconfig_lib under /usr/share/kboot This is a better place than /usr/lib for a shell library, it is a text file and can be seen as data rather than as a binary module. --- Makefile | 4 ++-- kboot-mkconfig | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 6854d76..7c13e95 100644 --- a/Makefile +++ b/Makefile @@ -5,8 +5,8 @@ all: clean: install: - install -d $(DESTDIR)$(prefix)/lib/kboot/ - install -m 0644 kboot-mkconfig_lib $(DESTDIR)$(prefix)/lib/kboot/kboot-mkconfig_lib + install -d $(DESTDIR)$(prefix)/share/kboot/ + install -m 0644 kboot-mkconfig_lib $(DESTDIR)$(prefix)/share/kboot/kboot-mkconfig_lib install -d $(DESTDIR)$(prefix)/sbin install -m 0755 kboot-mkconfig $(DESTDIR)$(prefix)/sbin/kboot-mkconfig install -d $(DESTDIR)$(sysconfdir)/default diff --git a/kboot-mkconfig b/kboot-mkconfig index 9d89acf..60fe26c 100755 --- a/kboot-mkconfig +++ b/kboot-mkconfig @@ -26,7 +26,6 @@ prefix=/usr exec_prefix=${prefix} sbindir=${exec_prefix}/sbin bindir=${exec_prefix}/bin -libdir=${exec_prefix}/lib sysconfdir=/etc host_os=linux-gnu datarootdir=${prefix}/share @@ -89,7 +88,7 @@ do esac done -. ${libdir}/kboot/kboot-mkconfig_lib +. ${datadir}/kboot/kboot-mkconfig_lib if [ "x$EUID" = "x" ] ; then EUID=`id -u` -- 2.1.4