summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2015-05-12 00:11:16 (GMT)
committerChristian Pointner <equinox@helsinki.at>2015-05-12 00:11:30 (GMT)
commit17c62fa8decb49ea2cdea67e690bf3acac2a2a6d (patch)
treea4c00db4f283d1b9d038f12a6a385adb0c39a600 /src/Makefile
parentd71335b6ccb2b71e846736bc8e7e8a3ccc954b7f (diff)
installing *.lua file into /usr/share/rhnop and not lib
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/Makefile b/src/Makefile
index e9af20a..d9d7506 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -77,20 +77,20 @@ install-bin: $(EXECUTABLE)
$(INSTALL) -m 755 noprml $(DESTDIR)$(BINDIR)
$(INSTALL) -m 755 nopcollectd $(DESTDIR)$(BINDIR)
$(SED) -e 's#^conffile = "nopcollectd#conffile = "$(ETCDIR)/rhnop/nopcollectd#' -i $(DESTDIR)$(BINDIR)/nopcollectd
- $(SED) -e 's#_rhnoplibdir_/?.lua#$(LIBDIR)/?.lua#' -i $(DESTDIR)$(BINDIR)/nopcollectd
+ $(SED) -e 's#_rhnoplibdir_/?.lua#$(DATAROOTDIR)/rhnop/?.lua#' -i $(DESTDIR)$(BINDIR)/nopcollectd
$(INSTALL) -m 755 nopsysstated $(DESTDIR)$(BINDIR)
$(SED) -e 's#^conffile = "nopsysstated#conffile = "$(ETCDIR)/rhnop/nopsysstated#' -i $(DESTDIR)$(BINDIR)/nopsysstated
- $(SED) -e 's#_rhnoplibdir_/?.lua#$(LIBDIR)/?.lua#' -i $(DESTDIR)$(BINDIR)/nopsysstated
+ $(SED) -e 's#_rhnoplibdir_/?.lua#$(DATAROOTDIR)/rhnop/?.lua#' -i $(DESTDIR)$(BINDIR)/nopsysstated
install-lib:
- $(INSTALL) -d $(DESTDIR)$(LIBDIR)
- $(INSTALL) -m 644 conf.lua $(DESTDIR)$(LIBDIR)
- $(INSTALL) -m 644 db.lua $(DESTDIR)$(LIBDIR)
- $(INSTALL) -m 644 playlog.lua $(DESTDIR)$(LIBDIR)
- $(INSTALL) -m 644 rddb.lua $(DESTDIR)$(LIBDIR)
- $(INSTALL) -m 644 qlistener.lua $(DESTDIR)$(LIBDIR)
- $(SED) -e 's#^conffile = "nopsyncd#conffile = "$(ETCDIR)/rhnop/nopsyncd#' -i $(DESTDIR)$(LIBDIR)/qlistener.lua
- $(INSTALL) -m 644 tcpserver.lua $(DESTDIR)$(LIBDIR)
+ $(INSTALL) -d $(DESTDIR)$(DATAROOTDIR)/rhnop
+ $(INSTALL) -m 644 conf.lua $(DESTDIR)$(DATAROOTDIR)/rhnop
+ $(INSTALL) -m 644 db.lua $(DESTDIR)$(DATAROOTDIR)/rhnop
+ $(INSTALL) -m 644 playlog.lua $(DESTDIR)$(DATAROOTDIR)/rhnop
+ $(INSTALL) -m 644 rddb.lua $(DESTDIR)$(DATAROOTDIR)/rhnop
+ $(INSTALL) -m 644 qlistener.lua $(DESTDIR)$(DATAROOTDIR)/rhnop
+ $(SED) -e 's#^conffile = "nopsyncd#conffile = "$(ETCDIR)/rhnop/nopsyncd#' -i $(DESTDIR)$(DATAROOTDIR)/rhnop/qlistener.lua
+ $(INSTALL) -m 644 tcpserver.lua $(DESTDIR)$(DATAROOTDIR)/rhnop
install-etc:
$(INSTALL) -d $(DESTDIR)$(ETCDIR)/rhnop
@@ -109,12 +109,12 @@ remove-bin:
rm -f $(DESTDIR)$(BINDIR)/nopsysstated
remove-lib:
- rm -f $(DESTDIR)$(LIBDIR)/conf.lua
- rm -f $(DESTDIR)$(LIBDIR)/db.lua
- rm -f $(DESTDIR)$(LIBDIR)/playlog.lua
- rm -f $(DESTDIR)$(LIBDIR)/rddb.lua
- rm -f $(DESTDIR)$(LIBDIR)/qlistener.lua
- rm -f $(DESTDIR)$(LIBDIR)/tcpserver.lua
+ rm -f $(DESTDIR)$(DATAROOTDIR)/rhnop/conf.lua
+ rm -f $(DESTDIR)$(DATAROOTDIR)/rhnop/db.lua
+ rm -f $(DESTDIR)$(DATAROOTDIR)/rhnop/playlog.lua
+ rm -f $(DESTDIR)$(DATAROOTDIR)/rhnop/rddb.lua
+ rm -f $(DESTDIR)$(DATAROOTDIR)/rhnop/qlistener.lua
+ rm -f $(DESTDIR)$(DATAROOTDIR)/rhnop/tcpserver.lua
remove-etc: