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
11 ### the madwifi drivers ship with fedora16's kernel rpm
14 # lxc-userspace: scripts for entering containers
16 lxc-userspace-MODULES := lxc-userspace
17 lxc-userspace-SPEC := lxc-userspace.spec
19 IN_NODEIMAGE += lxc-userspace
22 # transforward: root context module for transparent port forwarding
24 # with 4.19, the jprobe api has gone entirely
25 # https://github.com/torvalds/linux/commit/4de58696de076d9bd2745d1cbe0930635c3f5ac9
27 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME), f29)"
29 transforward-MODULES := transforward
30 transforward-SPEC := transforward.spec
32 IN_NODEIMAGE += transforward
36 # procprotect: root context module for protecting against weaknesses in /proc
38 ### remove procprotect from the nodes on f20 and above, needs more work starting with 3.19
39 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f20 f21 f22 f23 f24 f25 f27 f29)"
40 procprotect-MODULES := procprotect
41 procprotect-SPEC := procprotect.spec
43 IN_NODEIMAGE += procprotect
47 # ipfw: root context module, and slice companion
49 ### starting August 2015, ipfw module won't build against fedora22
50 # that comes with kernel 4.1.4
51 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f21 f22 f23 f24 f25 f27 f29)"
52 ipfwroot-MODULES := ipfw
53 ipfwroot-SPEC := planetlab/ipfwroot.spec
55 IN_NODEIMAGE += ipfwroot
58 ipfwslice-MODULES := ipfw
59 ipfwslice-SPEC := planetlab/ipfwslice.spec
63 # comgt - a companion to umts tools
65 comgt-MODULES := comgt
66 comgt-SPEC := comgt.spec
71 # umts: root context stuff
73 umts-backend-MODULES := planetlab-umts-tools
74 umts-backend-SPEC := backend.spec
75 IN_NODEIMAGE += umts-backend
81 umts-frontend-MODULES := planetlab-umts-tools
82 umts-frontend-SPEC := frontend.spec
83 IN_SLICEIMAGE += umts-frontend
89 nodeupdate-MODULES := nodeupdate
90 nodeupdate-SPEC := NodeUpdate.spec
92 IN_NODEIMAGE += nodeupdate
97 ipod-MODULES := PingOfDeath
98 ipod-SPEC := ipod.spec
105 plnode-utils-MODULES := plnode-utils
106 plnode-utils-SPEC := plnode-utils-lxc.spec
108 IN_NODEIMAGE += plnode-utils
113 nodemanager-MODULES := nodemanager
114 nodemanager-SPEC := nodemanager.spec
116 IN_NODEIMAGE += nodemanager
121 sshd-MODULES := pl_sshd
122 sshd-SPEC := pl_sshd.spec
127 # codemux: Port 80 demux
129 codemux-MODULES := codemux
130 codemux-SPEC := codemux.spec
132 IN_NODEIMAGE += codemux
137 # xxx temporarily turning this off on f20 and above
138 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f20 f21 f22 f23 f24 f25 f27 f29)"
139 fprobe-ulog-MODULES := fprobe-ulog
140 fprobe-ulog-SPEC := fprobe-ulog.spec
142 IN_NODEIMAGE += fprobe-ulog
145 #################### libvirt version selection
147 # use fedora's libvirt starting with f22
148 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f18 f20 f21)"
155 ifeq "$(local_libvirt)" "true"
157 libvirt-MODULES := libvirt
158 libvirt-SPEC := libvirt.spec
159 libvirt-BUILD-FROM-SRPM := yes
160 # The --without options are breaking spec2make : hard-wired in the specfile instead
161 libvirt-STOCK-DEVEL-RPMS += xhtml1-dtds
162 libvirt-STOCK-DEVEL-RPMS += libattr-devel augeas libpciaccess-devel yajl-devel
163 libvirt-STOCK-DEVEL-RPMS += libpcap-devel radvd ebtables device-mapper-devel
164 libvirt-STOCK-DEVEL-RPMS += ceph-devel numactl-devel libcap-ng-devel scrub
165 # for 1.2.1 - first seen on f20, not sure for the other ones
166 libvirt-STOCK-DEVEL-RPMS += libblkid-devel glusterfs-api-devel glusterfs-devel
167 # strictly speaking fuse-devel is not required anymore but we might wish to turn fuse back on again in the future
168 libvirt-STOCK-DEVEL-RPMS += fuse-devel libssh2-devel dbus-devel numad
169 libvirt-STOCK-DEVEL-RPMS += systemd-devel libnl3-devel iptables-services netcf-devel
171 libvirt-STOCK-DEVEL-RPMS += wireshark-devel
172 libvirt-STOCK-DEVEL-RPMS += ceph-devel-compat
174 IN_NODEREPO += libvirt
175 IN_NODEIMAGE += libvirt
180 libvirt-python-MODULES := libvirt-python
181 libvirt-python-SPEC := libvirt-python.spec
182 libvirt-python-BUILD-FROM-SRPM := yes
183 libvirt-python-STOCK-DEVEL-RPMS += pm-utils
185 libvirt-python-STOCK-DEVEL-RPMS += python-nose
186 # it would make sense to do something like this if we wanted to
187 # build against python3 as well, but for now I turned this feature off
189 #ifeq "$(distro)" "Fedora"
190 #xxx if $(distrorelease) > 18
191 #libvirt-python-STOCK-DEVEL-RPMS += python3-devel python3-nose python3-lxml
194 libvirt-python-LOCAL-DEVEL-RPMS += libvirt-devel libvirt-docs libvirt-client
195 libvirt-python-RPMFLAGS := --define 'packager PlanetLab'
196 ALL += libvirt-python
197 IN_NODEREPO += libvirt-python
198 IN_NODEIMAGE += libvirt-python
200 endif # local_libvirt
203 # DistributedRateLimiting
205 #DistributedRateLimiting-MODULES := DistributedRateLimiting
206 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
207 #ALL += DistributedRateLimiting
208 #IN_NODEREPO += DistributedRateLimiting
213 pf2slice-MODULES := pf2slice
214 pf2slice-SPEC := pf2slice.spec
218 ## PlanetLab Mom: Cleans up your mess
221 #mom-SPEC := pl_mom.spec
228 # openvswitch-MODULES := openvswitch
229 # openvswitch-SPEC := openvswitch.spec
230 # openvswitch-STOCK-DEVEL-RPMS += kernel-devel
231 # IN_NODEIMAGE += openvswitch
232 # # build only on f14 as f16 has this natively
233 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
241 vsys-SPEC := vsys.spec
242 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
243 vsys-STOCK-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
248 # vsyssh : installed in slivers
250 vsyssh-MODULES := vsys
251 vsyssh-SPEC := vsyssh.spec
252 IN_SLICEIMAGE += vsyssh
258 vsys-scripts-MODULES := vsys-scripts
259 vsys-scripts-SPEC := root-context/vsys-scripts.spec
260 IN_NODEIMAGE += vsys-scripts
263 vsys-wrapper-MODULES := vsys-scripts
264 vsys-wrapper-SPEC := slice-context/vsys-wrapper.spec
265 IN_SLICEIMAGE += vsys-wrapper
271 bind_public-MODULES := bind_public
272 bind_public-SPEC := bind_public.spec
273 IN_SLICEIMAGE += bind_public
276 # in fedora 29, this triggers nasty-looking compile messages
277 # not trying too hard, we're mostly after the server-side of f29
278 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME), f29)"
282 sliver-openvswitch-MODULES := sliver-openvswitch
283 sliver-openvswitch-SPEC := sliver-openvswitch.spec
284 IN_SLICEIMAGE += sliver-openvswitch
285 ALL += sliver-openvswitch
291 plcapi-MODULES := plcapi
292 plcapi-SPEC := plcapi.spec
299 drupal-MODULES := drupal
300 drupal-SPEC := drupal.spec
301 drupal-BUILD-FROM-SRPM := yes
306 # use the plewww module instead
308 plewww-MODULES := plewww
309 plewww-SPEC := plewww.spec
314 # www-register-wizard
316 www-register-wizard-MODULES := www-register-wizard
317 www-register-wizard-SPEC := www-register-wizard.spec
318 ALL += www-register-wizard
319 IN_MYPLC += www-register-wizard
324 # WARNING: as of f27 I have to remove support for SSL in pcucontrol
325 # see pcucontrol.spec for details
326 pcucontrol-MODULES := pcucontrol
327 pcucontrol-SPEC := pcucontrol.spec
333 #monitor-MODULES := monitor
334 #monitor-SPEC := Monitor.spec
335 #monitor-STOCK-DEVEL-RPMS += net-snmp net-snmp-devel
337 #IN_NODEIMAGE += monitor
342 plcrt-MODULES := PLCRT
343 plcrt-SPEC := plcrt.spec
346 # f12 has 0.9-1 already
347 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
351 pyopenssl-MODULES := pyopenssl
352 pyopenssl-SPEC := pyOpenSSL.spec
353 pyopenssl-BUILD-FROM-SRPM := yes
359 nodeconfig-MODULES := nodeconfig
360 nodeconfig-SPEC := nodeconfig.spec
362 IN_MYPLC += nodeconfig
367 bootmanager-MODULES := bootmanager
368 bootmanager-SPEC := bootmanager.spec
370 IN_MYPLC += bootmanager
373 # pypcilib : used in bootcd
375 pypcilib-MODULES := pypcilib
376 pypcilib-SPEC := pypcilib.spec
378 IN_BOOTCD += pypcilib
383 pyplnet-MODULES := pyplnet
384 pyplnet-SPEC := pyplnet.spec
386 IN_NODEIMAGE += pyplnet
390 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f23 f24 f25 f27 f29)"
392 # OML measurement library
395 oml-STOCK-DEVEL-RPMS += sqlite-devel
396 oml-SPEC := liboml.spec
403 bootcd-MODULES := bootcd build
404 bootcd-SPEC := bootcd.spec
405 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
406 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
407 bootcd-RPMDATE := yes
414 sliceimage-MODULES := sliceimage build
415 sliceimage-SPEC := sliceimage.spec
416 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
417 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
418 sliceimage-RPMDATE := yes
420 IN_NODEIMAGE += sliceimage
423 # lxc-specific sliceimage initialization
425 lxc-sliceimage-MODULES := sliceimage
426 lxc-sliceimage-SPEC := lxc-sliceimage.spec
427 lxc-sliceimage-RPMDATE := yes
428 ALL += lxc-sliceimage
429 IN_NODEIMAGE += lxc-sliceimage
434 nodeimage-MODULES := nodeimage build
435 nodeimage-SPEC := nodeimage.spec
436 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
437 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
438 nodeimage-RPMDATE := yes
440 IN_MYPLC += nodeimage
445 # all rpms resulting from packages marked as being in nodeimage and sliceimage
446 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
447 # replace space with +++ (specvars cannot deal with spaces)
449 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
451 noderepo-MODULES := nodeimage
452 noderepo-SPEC := noderepo.spec
453 # package requires all embedded packages
454 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
455 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
456 #export rpm list to the specfile
457 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
458 noderepo-RPMDATE := yes
465 # all rpms resulting from packages marked as being in vserver
466 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
467 # replace space with +++ (specvars cannot deal with spaces)
469 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
471 slicerepo-MODULES := nodeimage
472 slicerepo-SPEC := slicerepo.spec
473 # package requires all embedded packages
474 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
475 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
476 #export rpm list to the specfile
477 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
478 slicerepo-RPMDATE := yes
482 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
484 myplc-MODULES := myplc
485 myplc-SPEC := myplc.spec
486 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
489 # myplc-docs only contains docs for PLCAPI and NMAPI, but
490 # we still need to pull MyPLC, as it is where the specfile lies,
491 # together with the utility script docbook2drupal.sh
492 myplc-docs-MODULES := myplc plcapi nodemanager monitor
493 myplc-docs-SPEC := myplc-docs.spec
496 # using some other name than myplc-release, as this is a make target already
497 release-MODULES := myplc
498 release-SPEC := myplc-release.spec
499 release-RPMDATE := yes
502 ##############################
504 # sfa - Slice Facility Architecture