From: Antonio Ospite Date: Sun, 24 Nov 2013 17:58:08 +0000 (+0100) Subject: Install kboot-mkconfig_lib under /usr/share/kboot X-Git-Tag: v0.4~1 X-Git-Url: https://git.ao2.it/kboot-utils.git/commitdiff_plain/5e732d73fa2eefb24e31b950555c53a34d21db92?ds=sidebyside 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. --- 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`