From 7075a175aa176edbf57bc396f5571cd836e9879d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 29 May 2017 18:39:23 +0100 Subject: add openrc support --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 71e859f..26589a6 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ BINDIR ?= /bin LIBEXECDIR ?= /usr/libexec SYSCONFDIR ?= /etc SYSTEMD_UNITDIR ?= $(LIBDIR)/systemd/system +OPENRC_INITDIR ?= $(SYSCONFDIR)/init.d all: for d in $(SUBDIRS); do $(MAKE) -C $$d; done @@ -19,6 +20,9 @@ install: for d in $(SUBDIRS); do $(MAKE) -C $$d install; done install -d $(DESTDIR)/$(LIBEXECDIR) - install -m 0755 redcorelive.sh $(DESTDIR)/$(LIBEXECDIR)/ + install -m 0755 redcorelive-systemd.sh $(DESTDIR)/$(LIBEXECDIR)/ + install -m 0755 redcorelive-openrc.sh $(DESTDIR)/$(LIBEXECDIR)/ install -d $(DESTDIR)/$(SYSTEMD_UNITDIR)/ install -m 0644 redcorelive.service $(DESTDIR)/$(SYSTEMD_UNITDIR)/ + install -d $(DESTDIR)/$(OPENRC_INITDIR)/ + install -m 0755 redcorelive.initd $(DESTDIR)/${OPENRC_INITDIR}/redcorelive -- cgit v1.2.3