mirror of
https://github.com/troglobit/finit.git
synced 2026-10-16 10:39:35 +00:00
The initctl tool's enable/disable command can then be used to manage these services after install. This is what most users expect. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
23 lines
591 B
Makefile
23 lines
591 B
Makefile
SUBDIRS = available
|
|
docsdir := @docdir@/contrib/alpine/finit.d
|
|
d_LINKS = dropbear.conf getty.conf keymap.conf modules.conf \
|
|
klogd.conf syslogd.conf
|
|
|
|
install-exec-hook:
|
|
@$(MKDIR_P) $(DESTDIR)$(docsdir)/available
|
|
@$(MKDIR_P) $(DESTDIR)$(docsdir)/enabled
|
|
@for file in $(d_LINKS); do \
|
|
lnk=$(DESTDIR)$(docsdir)/enabled/$$file; \
|
|
src=available/$$file; \
|
|
rm -f $$lnk; \
|
|
$(LN_S) ../$$src $$lnk; \
|
|
done
|
|
|
|
|
|
uninstall-hook:
|
|
@for file in $(d_LINKS); do \
|
|
lnk=$(DESTDIR)$(docsdir)/enabled/$$file; \
|
|
src=available/$$file; \
|
|
$(RM) -f $$lnk; \
|
|
done
|