blob: 409f511a87fc9d132590bb8329d960b548067f44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
|
BIN_TARGETS := \
ucspilogd \
s6-ftrig-listen1 \
s6-ftrig-listen \
s6-ftrig-notify \
s6-ftrig-wait \
s6-cleanfifodir \
s6-mkfifodir \
s6-svscan \
s6-supervise \
s6-svc \
s6-svscanctl \
s6-svok \
s6-svstat \
s6-svdt \
s6-svdt-clear \
s6-permafailon \
s6-svwait \
s6-svlisten1 \
s6-svlisten \
s6-svperms \
s6-svlink \
s6-svunlink \
s6-notifyoncheck \
s6-envdir \
s6-envuidgid \
s6-fghack \
s6-log \
s6-setlock \
s6-setsid \
s6-softlimit \
s6-socklog \
s6-tai64n \
s6-tai64nlocal \
s6-accessrules-cdb-from-fs \
s6-accessrules-fs-from-cdb \
s6-connlimit \
s6-ioconnect \
s6-ipcclient \
s6-ipcserver-access \
s6-ipcserver-socketbinder \
s6-ipcserver \
s6-ipcserverd \
s6-sudo \
s6-sudoc \
s6-sudod \
s6-fdholder-daemon \
s6-fdholderd \
s6-fdholder-delete \
s6-fdholder-store \
s6-fdholder-retrieve \
s6-fdholder-list \
s6-fdholder-getdump \
s6-fdholder-setdump \
s6-fdholder-transferdump \
s6-applyuidgid \
s6-setuidgid \
s6-instance-create \
s6-instance-delete \
s6-instance-control \
s6-instance-status \
s6-instance-list \
s6-background-watch \
s6-notify-fd-from-socket \
s6-notify-socket-from-fd \
LIBEXEC_TARGETS := \
s6-ftrigrd \
LIB_DEFS := S6=s6
S6_DESCRIPTION :=
$(shell grep -qFx "prctl: no" $(sysdeps)/sysdeps && grep -qFx "procctl: no" $(sysdeps)/sysdeps && grep -qFx "kevent: yes" $(sysdeps)/sysdeps)
ifeq ($(.SHELLSTATUS),0)
KEVENTPTHREAD_LIB := $(PTHREAD_LIB)
else
KEVENTPTHREAD_LIB :=
endif
ifneq ($(EXECLINE_LIB),)
LIB_DEFS += S6AUTO=s6auto
S6AUTO_DESCRIPTION := The s6auto library (C helpers to create service directories)
BIN_TARGETS += s6-usertree-maker s6-instance-maker s6-svscanboot
endif
WRAP_ANY :=
ifdef WRAP_DAEMONTOOLS
WRAP_ANY := 1
ifdef WRAP_SYMLINKS
DAEMONTOOLS_TARGETS := \
envdir \
envuidgid \
fghack \
multilog \
pgrphack \
readproctitle \
setlock \
setuidgid \
softlimit \
supervise \
svc \
svok \
svscan \
svscanboot \
svstat \
tai64n \
tai64nlocal \
else
DAEMONTOOLS_TARGETS :=
endif
install-bin: $(DAEMONTOOLS_TARGETS:%=$(DESTDIR)$(bindir)/%)
ifneq ($(exthome),)
global-links: $(DAEMONTOOLS_TARGETS:%=$(DESTDIR)$(sproot)/command/%)
endif
endif
ifdef WRAP_RUNIT
WRAP_ANY := 1
ifdef WRAP_SYMLINKS
RUNIT_TARGETS := \
runit \
runit-init \
runsv \
runsvchdir \
runsvdir \
svlogd \
utmpset
RUNIT_SPECIAL_TARGETS := chpst sv
else
RUNIT_TARGETS :=
RUNIT_SPECIAL_TARGETS :=
endif
BIN_TARGETS += s6-alias-sv s6-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
$(DESTDIR)$(bindir)/chpst: $(DESTDIR)$(bindir)/s6-alias-chpst
exec $(INSTALL) -D -l s6-alias-chpst $@
$(DESTDIR)$(bindir)/sv: $(DESTDIR)$(bindir)/s6-alias-sv
exec $(INSTALL) -D -l s6-alias-sv $@
endif
ifdef WRAP_ANY
BIN_TARGETS += s6-alias
$(DAEMONTOOLS_TARGETS:%=$(DESTDIR)$(bindir)/%) $(RUNIT_TARGETS:%=$(DESTDIR)$(bindir)/%): $(DESTDIR)$(bindir)/s6-alias
exec $(INSTALL) -D -l s6-alias $@
endif
|