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
13 ### starting with f31 : server-side-only
14 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME), f31 f33)"
19 ### the madwifi drivers ship with fedora16's kernel rpm
22 # lxc-userspace: scripts for entering containers
24 lxc-userspace-MODULES := lxc-userspace
25 lxc-userspace-SPEC := lxc-userspace.spec
27 IN_NODEIMAGE += lxc-userspace
30 # transforward: root context module for transparent port forwarding
32 # with 4.19, the jprobe api has gone entirely
33 # https://github.com/torvalds/linux/commit/4de58696de076d9bd2745d1cbe0930635c3f5ac9
35 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME), f29 f31 f33)"
37 transforward-MODULES := transforward
38 transforward-SPEC := transforward.spec
40 IN_NODEIMAGE += transforward
44 # procprotect: root context module for protecting against weaknesses in /proc
49 # ipfw: root context module, and slice companion
54 # comgt - a companion to umts tools
56 comgt-MODULES := comgt
57 comgt-SPEC := comgt.spec
62 # umts: root context stuff
64 umts-backend-MODULES := planetlab-umts-tools
65 umts-backend-SPEC := backend.spec
66 IN_NODEIMAGE += umts-backend
72 umts-frontend-MODULES := planetlab-umts-tools
73 umts-frontend-SPEC := frontend.spec
74 IN_SLICEIMAGE += umts-frontend
80 nodeupdate-MODULES := nodeupdate
81 nodeupdate-SPEC := NodeUpdate.spec
83 IN_NODEIMAGE += nodeupdate
88 ipod-MODULES := PingOfDeath
89 ipod-SPEC := ipod.spec
96 plnode-utils-MODULES := plnode-utils
97 plnode-utils-SPEC := plnode-utils-lxc.spec
99 IN_NODEIMAGE += plnode-utils
104 nodemanager-MODULES := nodemanager
105 nodemanager-SPEC := nodemanager.spec
107 IN_NODEIMAGE += nodemanager
112 sshd-MODULES := pl_sshd
113 sshd-SPEC := pl_sshd.spec
118 # codemux: Port 80 demux
120 codemux-MODULES := codemux
121 codemux-SPEC := codemux.spec
123 IN_NODEIMAGE += codemux
131 # our own brew of libvirt
132 # is no longer needed since f22
138 pf2slice-MODULES := pf2slice
139 pf2slice-SPEC := pf2slice.spec
146 #ocamlopt -c -o inotify.cmx inotify.ml
147 #File "inotify.ml", line 95, characters 27-30:
148 #95 | let toread = Unix.read fd buf 0 toread in
150 #Error: This expression has type string but an expression was expected of type bytes
152 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME), f33)"
154 vsys-SPEC := vsys.spec
155 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
156 vsys-STOCK-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
162 # vsyssh : installed in slivers
164 vsyssh-MODULES := vsys
165 vsyssh-SPEC := vsyssh.spec
166 IN_SLICEIMAGE += vsyssh
172 vsys-scripts-MODULES := vsys-scripts
173 vsys-scripts-SPEC := root-context/vsys-scripts.spec
174 IN_NODEIMAGE += vsys-scripts
177 vsys-wrapper-MODULES := vsys-scripts
178 vsys-wrapper-SPEC := slice-context/vsys-wrapper.spec
179 IN_SLICEIMAGE += vsys-wrapper
185 bind_public-MODULES := bind_public
186 bind_public-SPEC := bind_public.spec
187 IN_SLICEIMAGE += bind_public
190 # in fedora 29, this triggers nasty-looking compile messages
191 # not trying too hard, we're mostly after the server-side of f29 and above
192 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME), f29 f31 f33)"
196 sliver-openvswitch-MODULES := sliver-openvswitch
197 sliver-openvswitch-SPEC := sliver-openvswitch.spec
198 IN_SLICEIMAGE += sliver-openvswitch
199 ALL += sliver-openvswitch
214 plcapi-MODULES := plcapi
215 plcapi-SPEC := plcapi.spec
222 drupal-MODULES := drupal
223 drupal-SPEC := drupal.spec
224 drupal-BUILD-FROM-SRPM := yes
229 # use the plewww module instead
231 plewww-MODULES := plewww
232 plewww-SPEC := plewww.spec
237 # www-register-wizard
239 www-register-wizard-MODULES := www-register-wizard
240 www-register-wizard-SPEC := www-register-wizard.spec
241 ALL += www-register-wizard
242 IN_MYPLC += www-register-wizard
247 # WARNING: as of f27 I have to remove support for SSL in pcucontrol
248 # see pcucontrol.spec for details
249 # no longer builds in f33
250 # stdsoap2.cpp: In function ‘char* soap_string_in(soap*, int, long int, long int)’:
251 # stdsoap2.cpp:8259:18: error: narrowing conversion of ‘2147483708’ from ‘unsigned int’ to ‘int’ [-Wnarrowing]
252 # 8259 | case '<' | 0x80000000:
254 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME), f33)"
255 pcucontrol-MODULES := pcucontrol
256 pcucontrol-SPEC := pcucontrol.spec
263 #monitor-MODULES := monitor
264 #monitor-SPEC := Monitor.spec
265 #monitor-STOCK-DEVEL-RPMS += net-snmp net-snmp-devel
267 #IN_NODEIMAGE += monitor
271 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME), f31 f33)"
278 plcrt-MODULES := PLCRT
279 plcrt-SPEC := plcrt.spec
284 nodeconfig-MODULES := nodeconfig
285 nodeconfig-SPEC := nodeconfig.spec
287 IN_MYPLC += nodeconfig
292 bootmanager-MODULES := bootmanager
293 bootmanager-SPEC := bootmanager.spec
295 IN_MYPLC += bootmanager
298 # pypcilib : used in bootcd
300 pypcilib-MODULES := pypcilib
301 pypcilib-SPEC := pypcilib.spec
303 IN_BOOTCD += pypcilib
308 pyplnet-MODULES := pyplnet
309 pyplnet-SPEC := pyplnet.spec
311 IN_NODEIMAGE += pyplnet
318 bootcd-MODULES := bootcd build
319 bootcd-SPEC := bootcd.spec
320 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
321 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
322 bootcd-RPMDATE := yes
329 sliceimage-MODULES := sliceimage build
330 sliceimage-SPEC := sliceimage.spec
331 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
332 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
333 sliceimage-RPMDATE := yes
335 IN_NODEIMAGE += sliceimage
338 # lxc-specific sliceimage initialization
340 lxc-sliceimage-MODULES := sliceimage
341 lxc-sliceimage-SPEC := lxc-sliceimage.spec
342 lxc-sliceimage-RPMDATE := yes
343 ALL += lxc-sliceimage
344 IN_NODEIMAGE += lxc-sliceimage
349 nodeimage-MODULES := nodeimage build
350 nodeimage-SPEC := nodeimage.spec
351 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
352 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
353 nodeimage-RPMDATE := yes
355 IN_MYPLC += nodeimage
360 # all rpms resulting from packages marked as being in nodeimage and sliceimage
361 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
362 # replace space with +++ (specvars cannot deal with spaces)
364 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
366 noderepo-MODULES := nodeimage
367 noderepo-SPEC := noderepo.spec
368 # package requires all embedded packages
369 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
370 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
371 #export rpm list to the specfile
372 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
373 noderepo-RPMDATE := yes
380 # all rpms resulting from packages marked as being in vserver
381 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
382 # replace space with +++ (specvars cannot deal with spaces)
384 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
386 slicerepo-MODULES := nodeimage
387 slicerepo-SPEC := slicerepo.spec
388 # package requires all embedded packages
389 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
390 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
391 #export rpm list to the specfile
392 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
393 slicerepo-RPMDATE := yes
403 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
405 myplc-MODULES := myplc
406 myplc-SPEC := myplc.spec
407 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
410 # myplc-docs only contains docs for PLCAPI and NMAPI, but
411 # we still need to pull MyPLC, as it is where the specfile lies,
412 # together with the utility script docbook2drupal.sh
413 myplc-docs-MODULES := myplc plcapi nodemanager monitor
414 myplc-docs-SPEC := myplc-docs.spec
417 # using some other name than myplc-release, as this is a make target already
418 release-MODULES := myplc
419 release-SPEC := myplc-release.spec
420 release-RPMDATE := yes
423 ##############################
425 # sfa - Slice Facility Architecture
427 # this is python2, somehow the tests won't pass against a py3 plcapi
428 # oddly enough, when the py2 sfa code issues xmlrpc calls over ssl
429 # to the underlying myplc, we get SSL handshake issues
430 # so, let's keep this out of the way for now
431 # 2019 mar 27: reinstating for hopefully connecting fed4fire
433 #ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME), f27 f29 f31)"