about summary refs log tree commit diff
path: root/package
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-03-14 10:40:34 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-03-14 10:40:34 +0000
commit1c666ca77c146316bc661cb391f7a8fde3d9505b (patch)
treee7fd8b5499be56c6d265c7f57e93e4a29ff6c4f4 /package
parent616f4c8a7870e80c5c1dcf0bdfeb152d94275158 (diff)
downloads6-frontend-1c666ca77c146316bc661cb391f7a8fde3d9505b.tar.gz
s6-frontend-1c666ca77c146316bc661cb391f7a8fde3d9505b.tar.xz
s6-frontend-1c666ca77c146316bc661cb391f7a8fde3d9505b.zip
Add --disable-alias-symlinks option
Diffstat (limited to 'package')
-rw-r--r--package/targets.mak24
1 files changed, 20 insertions, 4 deletions
diff --git a/package/targets.mak b/package/targets.mak
index 5767606..ce3d7b2 100644
--- a/package/targets.mak
+++ b/package/targets.mak
@@ -7,6 +7,10 @@ WRAP_ANY :=
 
 ifdef WRAP_DAEMONTOOLS
 
+ifdef WRAP_SYMLINKS
+
+WRAP_ANY := 1
+
 DAEMONTOOLS_TARGETS := \
 envdir \
 envuidgid \
@@ -26,18 +30,26 @@ svstat \
 tai64n \
 tai64nlocal
 
+else
+
+DAEMONTOOLS_TARGETS :=
+
+endif
+
 install-bin: $(DAEMONTOOLS_TARGETS:%=$(DESTDIR)$(bindir)/%)
 
 ifneq ($(exthome),)
 global-links: $(DAEMONTOOLS_TARGETS:%=$(DESTDIR)$(sproot)/command/%)
 endif
 
-WRAP_ANY := 1
-
 endif
 
 ifdef WRAP_RUNIT
 
+ifdef WRAP_SYMLINKS
+
+WRAP_ANY := 1
+
 RUNIT_TARGETS := \
 runit \
 runit-init \
@@ -47,6 +59,12 @@ runsvdir \
 svlogd \
 utmpset
 
+else
+
+RUNIT_TARGETS :=
+
+endif
+
 RUNIT_SPECIAL_TARGETS := chpst sv
 BIN_TARGETS += s6-frontend-alias-sv s6-frontend-alias-chpst
 
@@ -56,8 +74,6 @@ ifneq ($(exthome),)
 global-links: $(RUNIT_TARGETS:%=$(DESTDIR)$(sproot)/command/%) $(RUNIT_SPECIAL_TARGETS:%=$(DESTDIR)$(sproot)/command/%)
 endif
 
-WRAP_ANY := 1
-
 $(DESTDIR)$(bindir)/chpst: $(DESTDIR)$(bindir)/s6-frontend-alias-chpst
 	 exec $(INSTALL) -D -l s6-frontend-alias-chpst $@
 $(DESTDIR)$(bindir)/sv: $(DESTDIR)$(bindir)/s6-frontend-alias-sv