summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/deps-build4
-rw-r--r--package/deps.mak17
-rw-r--r--package/info4
-rw-r--r--package/modes4
-rw-r--r--package/targets.mak75
5 files changed, 104 insertions, 0 deletions
diff --git a/package/deps-build b/package/deps-build
new file mode 100644
index 0000000..cc1abb1
--- /dev/null
+++ b/package/deps-build
@@ -0,0 +1,4 @@
+/package/prog/skalibs
+/package/admin/execline
+/package/admin/s6
+/package/admin/s6-rc
diff --git a/package/deps.mak b/package/deps.mak
new file mode 100644
index 0000000..ec41fd5
--- /dev/null
+++ b/package/deps.mak
@@ -0,0 +1,17 @@
+#
+# This file has been generated by tools/gen-deps.sh
+#
+
+src/alias/s6-frontend-alias-chpst.o src/alias/s6-frontend-alias-chpst.lo: src/alias/s6-frontend-alias-chpst.c
+src/alias/s6-frontend-alias-sv.o src/alias/s6-frontend-alias-sv.lo: src/alias/s6-frontend-alias-sv.c
+src/alias/s6-frontend-alias.o src/alias/s6-frontend-alias.lo: src/alias/s6-frontend-alias.c src/include/s6-frontend/config.h
+src/config/s6-frontend-config-preprocess.o src/config/s6-frontend-config-preprocess.lo: src/config/s6-frontend-config-preprocess.c
+
+s6-frontend-alias: EXTRA_LIBS := -lskarnet
+s6-frontend-alias: src/alias/s6-frontend-alias.o
+s6-frontend-alias-chpst: EXTRA_LIBS := -lskarnet
+s6-frontend-alias-chpst: src/alias/s6-frontend-alias-chpst.o
+s6-frontend-alias-sv: EXTRA_LIBS := -ls6 -lskarnet ${SPAWN_LIB}
+s6-frontend-alias-sv: src/alias/s6-frontend-alias-sv.o
+s6-frontend-config-preprocess: EXTRA_LIBS := -lskarnet
+s6-frontend-config-preprocess: src/config/s6-frontend-config-preprocess.o
diff --git a/package/info b/package/info
new file mode 100644
index 0000000..f0b5985
--- /dev/null
+++ b/package/info
@@ -0,0 +1,4 @@
+package=s6-frontend
+version=0.0.1.0
+category=admin
+package_macro_name=S6_FRONTEND
diff --git a/package/modes b/package/modes
new file mode 100644
index 0000000..8e2e6cf
--- /dev/null
+++ b/package/modes
@@ -0,0 +1,4 @@
+s6-frontend-config-preprocess 0755
+s6-frontend-alias 0755
+s6-frontend-alias-sv 0755
+s6-frontend-alias-chpst 0755
diff --git a/package/targets.mak b/package/targets.mak
new file mode 100644
index 0000000..5767606
--- /dev/null
+++ b/package/targets.mak
@@ -0,0 +1,75 @@
+BIN_TARGETS := \
+s6-frontend-config-preprocess
+
+LIBEXEC_TARGETS :=
+
+WRAP_ANY :=
+
+ifdef WRAP_DAEMONTOOLS
+
+DAEMONTOOLS_TARGETS := \
+envdir \
+envuidgid \
+fghack \
+multilog \
+pgrphack \
+readproctitle \
+setlock \
+setuidgid \
+softlimit \
+supervise \
+svc \
+svok \
+svscan \
+svscanboot \
+svstat \
+tai64n \
+tai64nlocal
+
+install-bin: $(DAEMONTOOLS_TARGETS:%=$(DESTDIR)$(bindir)/%)
+
+ifneq ($(exthome),)
+global-links: $(DAEMONTOOLS_TARGETS:%=$(DESTDIR)$(sproot)/command/%)
+endif
+
+WRAP_ANY := 1
+
+endif
+
+ifdef WRAP_RUNIT
+
+RUNIT_TARGETS := \
+runit \
+runit-init \
+runsv \
+runsvchdir \
+runsvdir \
+svlogd \
+utmpset
+
+RUNIT_SPECIAL_TARGETS := chpst sv
+BIN_TARGETS += s6-frontend-alias-sv s6-frontend-alias-chpst
+
+install-bin: $(RUNIT_TARGETS:%=$(DESTDIR)$(bindir)/%) $(RUNIT_SPECIAL_TARGETS:%=$(DESTDIR)$(bindir)/%)
+
+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
+ exec $(INSTALL) -D -l s6-frontend-alias-sv $@
+
+endif
+
+ifdef WRAP_ANY
+
+BIN_TARGETS += s6-frontend-alias
+
+$(DAEMONTOOLS_TARGETS:%=$(DESTDIR)$(bindir)/%) $(RUNIT_TARGETS:%=$(DESTDIR)$(bindir)/%): $(DESTDIR)$(bindir)/s6-frontend-alias
+ exec $(INSTALL) -D -l s6-frontend-alias $@
+
+endif