drop vsys off f33
[build.git] / lxc.mk
1 #
2 # declare the packages to be built and their dependencies
3 # initial version from Mark Huang
4 # Mark Huang <mlhuang@cs.princeton.edu>
5 # Copyright (C) 2003-2006 The Trustees of Princeton University
6 # rewritten by Thierry Parmentelat - INRIA Sophia Antipolis
7 #
8 # see doc in Makefile
9 #
10
11 ### the madwifi drivers ship with fedora16's kernel rpm
12
13 #
14 # lxc-userspace: scripts for entering containers
15 #
16 lxc-userspace-MODULES := lxc-userspace
17 lxc-userspace-SPEC := lxc-userspace.spec
18 ALL += lxc-userspace
19 IN_NODEIMAGE += lxc-userspace
20
21 #
22 # transforward: root context module for transparent port forwarding
23 #
24 # with 4.19, the jprobe api has gone entirely
25 # https://github.com/torvalds/linux/commit/4de58696de076d9bd2745d1cbe0930635c3f5ac9
26 #
27 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME), f29 f31 f33)"
28 #
29 transforward-MODULES := transforward
30 transforward-SPEC := transforward.spec
31 ALL += transforward
32 IN_NODEIMAGE += transforward
33 endif
34
35 #
36 # procprotect: root context module for protecting against weaknesses in /proc
37 # has gone since f20
38 #
39
40 #
41 # ipfw: root context module, and slice companion
42 # has gone since f21
43 #
44
45 #
46 # comgt - a companion to umts tools
47 #
48 comgt-MODULES := comgt
49 comgt-SPEC := comgt.spec
50 IN_NODEIMAGE += comgt
51 ALL += comgt
52
53 #
54 # umts: root context stuff
55 #
56 umts-backend-MODULES := planetlab-umts-tools
57 umts-backend-SPEC := backend.spec
58 IN_NODEIMAGE += umts-backend
59 ALL += umts-backend
60
61 #
62 # umts: slice tools
63 #
64 umts-frontend-MODULES := planetlab-umts-tools
65 umts-frontend-SPEC := frontend.spec
66 IN_SLICEIMAGE += umts-frontend
67 ALL += umts-frontend
68
69 #
70 # NodeUpdate
71 #
72 nodeupdate-MODULES := nodeupdate
73 nodeupdate-SPEC := NodeUpdate.spec
74 ALL += nodeupdate
75 IN_NODEIMAGE += nodeupdate
76
77 #
78 # ipod
79 #
80 ipod-MODULES := PingOfDeath
81 ipod-SPEC := ipod.spec
82 ALL += ipod
83 IN_NODEIMAGE += ipod
84
85 #
86 # plnode-utils
87 #
88 plnode-utils-MODULES := plnode-utils
89 plnode-utils-SPEC := plnode-utils-lxc.spec
90 ALL += plnode-utils
91 IN_NODEIMAGE += plnode-utils
92
93 #
94 # nodemanager
95 #
96 nodemanager-MODULES := nodemanager
97 nodemanager-SPEC := nodemanager.spec
98 ALL += nodemanager
99 IN_NODEIMAGE += nodemanager
100
101 #
102 # pl_sshd
103 #
104 sshd-MODULES := pl_sshd
105 sshd-SPEC := pl_sshd.spec
106 ALL += sshd
107 IN_NODEIMAGE += sshd
108
109 #
110 # codemux: Port 80 demux
111 #
112 codemux-MODULES := codemux
113 codemux-SPEC   := codemux.spec
114 ALL += codemux
115 IN_NODEIMAGE += codemux
116
117 #
118 # fprobe-ulog
119 # has gone since f20
120 #
121
122 #
123 # our own brew of libvirt
124 # is no longer needed since f22
125 #
126
127 #
128 # pf2slice
129 #
130 pf2slice-MODULES := pf2slice
131 pf2slice-SPEC := pf2slice.spec
132 ALL += pf2slice
133
134 #
135 # vsys
136 #
137 # dropped in f33:
138 #ocamlopt  -c -o inotify.cmx inotify.ml
139 #File "inotify.ml", line 95, characters 27-30:
140 #95 |    let toread = Unix.read fd buf 0 toread in
141 #                                ^^^
142 #Error: This expression has type string but an expression was expected of type bytes
143
144 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME), f33)"
145 vsys-MODULES := vsys
146 vsys-SPEC := vsys.spec
147 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
148 vsys-STOCK-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
149 IN_NODEIMAGE += vsys
150 ALL += vsys
151 endif
152
153 #
154 # vsyssh : installed in slivers
155 #
156 vsyssh-MODULES := vsys
157 vsyssh-SPEC := vsyssh.spec
158 IN_SLICEIMAGE += vsyssh
159 ALL += vsyssh
160
161 #
162 # vsys-scripts
163 #
164 vsys-scripts-MODULES := vsys-scripts
165 vsys-scripts-SPEC := root-context/vsys-scripts.spec
166 IN_NODEIMAGE += vsys-scripts
167 ALL += vsys-scripts
168
169 vsys-wrapper-MODULES := vsys-scripts
170 vsys-wrapper-SPEC := slice-context/vsys-wrapper.spec
171 IN_SLICEIMAGE += vsys-wrapper
172 ALL += vsys-wrapper
173
174 #
175 # bind_public
176 #
177 bind_public-MODULES := bind_public
178 bind_public-SPEC := bind_public.spec
179 IN_SLICEIMAGE += bind_public
180 ALL += bind_public
181
182 # in fedora 29, this triggers nasty-looking compile messages
183 # not trying too hard, we're mostly after the server-side of f29 and above
184 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME), f29 f31 f33)"
185 #
186 # sliver-openvswitch
187 #
188 sliver-openvswitch-MODULES := sliver-openvswitch
189 sliver-openvswitch-SPEC := sliver-openvswitch.spec
190 IN_SLICEIMAGE += sliver-openvswitch
191 ALL += sliver-openvswitch
192 endif
193
194 #
195 # plcapi
196 #
197 plcapi-MODULES := plcapi
198 plcapi-SPEC := plcapi.spec
199 ALL += plcapi
200 IN_MYPLC += plcapi
201
202 #
203 # drupal
204 #
205 drupal-MODULES := drupal
206 drupal-SPEC := drupal.spec
207 drupal-BUILD-FROM-SRPM := yes
208 ALL += drupal
209 IN_MYPLC += drupal
210
211 #
212 # use the plewww module instead
213 #
214 plewww-MODULES := plewww
215 plewww-SPEC := plewww.spec
216 ALL += plewww
217 IN_MYPLC += plewww
218
219 #
220 # www-register-wizard
221 #
222 www-register-wizard-MODULES := www-register-wizard
223 www-register-wizard-SPEC := www-register-wizard.spec
224 ALL += www-register-wizard
225 IN_MYPLC += www-register-wizard
226
227 #
228 # pcucontrol
229 #
230 # WARNING: as of f27 I have to remove support for SSL in pcucontrol
231 # see pcucontrol.spec for details
232 pcucontrol-MODULES := pcucontrol
233 pcucontrol-SPEC := pcucontrol.spec
234 ALL += pcucontrol
235
236 #
237 # monitor
238 #
239 #monitor-MODULES := monitor
240 #monitor-SPEC := Monitor.spec
241 #monitor-STOCK-DEVEL-RPMS += net-snmp net-snmp-devel
242 #ALL += monitor
243 #IN_NODEIMAGE += monitor
244
245 #
246 # PLC RT
247 #
248 plcrt-MODULES := PLCRT
249 plcrt-SPEC := plcrt.spec
250 ALL += plcrt
251
252 # nodeconfig
253 #
254 nodeconfig-MODULES := nodeconfig
255 nodeconfig-SPEC := nodeconfig.spec
256 ALL += nodeconfig
257 IN_MYPLC += nodeconfig
258
259 #
260 # bootmanager
261 #
262 bootmanager-MODULES := bootmanager
263 bootmanager-SPEC := bootmanager.spec
264 ALL += bootmanager
265 IN_MYPLC += bootmanager
266
267 #
268 # pypcilib : used in bootcd
269 #
270 pypcilib-MODULES := pypcilib
271 pypcilib-SPEC := pypcilib.spec
272 ALL += pypcilib
273 IN_BOOTCD += pypcilib
274
275 #
276 # pyplnet
277 #
278 pyplnet-MODULES := pyplnet
279 pyplnet-SPEC := pyplnet.spec
280 ALL += pyplnet
281 IN_NODEIMAGE += pyplnet
282 IN_MYPLC += pyplnet
283 IN_BOOTCD += pyplnet
284
285 #
286 # bootcd
287 #
288 bootcd-MODULES := bootcd build
289 bootcd-SPEC := bootcd.spec
290 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
291 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
292 bootcd-RPMDATE := yes
293 ALL += bootcd
294 IN_MYPLC += bootcd
295
296 #
297 # images for slices
298 #
299 sliceimage-MODULES := sliceimage build
300 sliceimage-SPEC := sliceimage.spec
301 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
302 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
303 sliceimage-RPMDATE := yes
304 ALL += sliceimage
305 IN_NODEIMAGE += sliceimage
306
307 #
308 # lxc-specific sliceimage initialization
309 #
310 lxc-sliceimage-MODULES  := sliceimage
311 lxc-sliceimage-SPEC     := lxc-sliceimage.spec
312 lxc-sliceimage-RPMDATE  := yes
313 ALL                     += lxc-sliceimage
314 IN_NODEIMAGE            += lxc-sliceimage
315
316 #
317 # nodeimage
318 #
319 nodeimage-MODULES := nodeimage build
320 nodeimage-SPEC := nodeimage.spec
321 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
322 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
323 nodeimage-RPMDATE := yes
324 ALL += nodeimage
325 IN_MYPLC += nodeimage
326
327 #
328 # noderepo
329 #
330 # all rpms resulting from packages marked as being in nodeimage and sliceimage
331 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
332 # replace space with +++ (specvars cannot deal with spaces)
333 SPACE=$(subst x, ,x)
334 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
335
336 noderepo-MODULES := nodeimage
337 noderepo-SPEC := noderepo.spec
338 # package requires all embedded packages
339 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
340 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
341 #export rpm list to the specfile
342 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
343 noderepo-RPMDATE := yes
344 ALL += noderepo
345 IN_MYPLC += noderepo
346
347 #
348 # slicerepo
349 #
350 # all rpms resulting from packages marked as being in vserver
351 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
352 # replace space with +++ (specvars cannot deal with spaces)
353 SPACE=$(subst x, ,x)
354 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
355
356 slicerepo-MODULES := nodeimage
357 slicerepo-SPEC := slicerepo.spec
358 # package requires all embedded packages
359 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
360 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
361 #export rpm list to the specfile
362 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
363 slicerepo-RPMDATE := yes
364 ALL += slicerepo
365
366 #
367 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
368 #
369 myplc-MODULES := myplc
370 myplc-SPEC := myplc.spec
371 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
372 ALL += myplc
373
374 # myplc-docs only contains docs for PLCAPI and NMAPI, but
375 # we still need to pull MyPLC, as it is where the specfile lies,
376 # together with the utility script docbook2drupal.sh
377 myplc-docs-MODULES := myplc plcapi nodemanager monitor
378 myplc-docs-SPEC := myplc-docs.spec
379 ALL += myplc-docs
380
381 # using some other name than myplc-release, as this is a make target already
382 release-MODULES := myplc
383 release-SPEC := myplc-release.spec
384 release-RPMDATE := yes
385 ALL += release
386
387 ##############################
388 #
389 # sfa - Slice Facility Architecture
390 #
391 # this is python2, somehow the tests won't pass against a py3 plcapi
392 # oddly enough, when the py2 sfa code issues xmlrpc calls over ssl
393 # to the underlying myplc, we get SSL handshake issues
394 # so, let's keep this out of the way for now
395 # 2019 mar 27: reinstating for hopefully connecting fed4fire
396 #
397 #ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME), f27 f29 f31)"
398 sfa-MODULES := sfa
399 sfa-SPEC := sfa.spec
400 ALL += sfa
401 #endif