Install kboot-mkconfig_lib under /usr/share/kboot
authorAntonio Ospite <ospite@studenti.unina.it>
Sun, 24 Nov 2013 17:58:08 +0000 (18:58 +0100)
committerAntonio Ospite <ospite@studenti.unina.it>
Sun, 24 Nov 2013 17:58:08 +0000 (18:58 +0100)
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
kboot-mkconfig

index 6854d76..7c13e95 100644 (file)
--- 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
index 9d89acf..60fe26c 100755 (executable)
@@ -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`