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
23 # transforward: root context module for transparent port forwarding
25 transforward-MODULES := transforward
26 transforward-SPEC := transforward.spec
28 IN_NODEIMAGE += transforward
31 # procprotect: root context module for protecting against weaknesses in /proc
33 ### remove procprotect from the nodes on f20 and above, needs more work starting with 3.19
34 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f20 f21 f22 f23 f24 f25 f27 f29)"
35 procprotect-MODULES := procprotect
36 procprotect-SPEC := procprotect.spec
38 IN_NODEIMAGE += procprotect
42 # ipfw: root context module, and slice companion
44 ### starting August 2015, ipfw module won't build against fedora22
45 # that comes with kernel 4.1.4
46 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f21 f22 f23 f24 f25 f27 f29)"
47 ipfwroot-MODULES := ipfw
48 ipfwroot-SPEC := planetlab/ipfwroot.spec
50 IN_NODEIMAGE += ipfwroot
53 ipfwslice-MODULES := ipfw
54 ipfwslice-SPEC := planetlab/ipfwslice.spec
58 # comgt - a companion to umts tools
60 comgt-MODULES := comgt
61 comgt-SPEC := comgt.spec
66 # umts: root context stuff
68 umts-backend-MODULES := planetlab-umts-tools
69 umts-backend-SPEC := backend.spec
70 IN_NODEIMAGE += umts-backend
76 umts-frontend-MODULES := planetlab-umts-tools
77 umts-frontend-SPEC := frontend.spec
78 IN_SLICEIMAGE += umts-frontend
84 nodeupdate-MODULES := nodeupdate
85 nodeupdate-SPEC := NodeUpdate.spec
87 IN_NODEIMAGE += nodeupdate
92 ipod-MODULES := PingOfDeath
93 ipod-SPEC := ipod.spec
100 plnode-utils-MODULES := plnode-utils
101 plnode-utils-SPEC := plnode-utils-lxc.spec
103 IN_NODEIMAGE += plnode-utils
108 nodemanager-MODULES := nodemanager
109 nodemanager-SPEC := nodemanager.spec
111 IN_NODEIMAGE += nodemanager
116 sshd-MODULES := pl_sshd
117 sshd-SPEC := pl_sshd.spec
122 # codemux: Port 80 demux
124 codemux-MODULES := codemux
125 codemux-SPEC := codemux.spec
127 IN_NODEIMAGE += codemux
132 # xxx temporarily turning this off on f20 and above
133 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f20 f21 f22 f23 f24 f25 f27 f29)"
134 fprobe-ulog-MODULES := fprobe-ulog
135 fprobe-ulog-SPEC := fprobe-ulog.spec
137 IN_NODEIMAGE += fprobe-ulog
140 #################### libvirt version selection
142 # use fedora's libvirt starting with f22
143 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f18 f20 f21)"
150 ifeq "$(local_libvirt)" "true"
152 libvirt-MODULES := libvirt
153 libvirt-SPEC := libvirt.spec
154 libvirt-BUILD-FROM-SRPM := yes
155 # The --without options are breaking spec2make : hard-wired in the specfile instead
156 libvirt-STOCK-DEVEL-RPMS += xhtml1-dtds
157 libvirt-STOCK-DEVEL-RPMS += libattr-devel augeas libpciaccess-devel yajl-devel
158 libvirt-STOCK-DEVEL-RPMS += libpcap-devel radvd ebtables device-mapper-devel
159 libvirt-STOCK-DEVEL-RPMS += ceph-devel numactl-devel libcap-ng-devel scrub
160 # for 1.2.1 - first seen on f20, not sure for the other ones
161 libvirt-STOCK-DEVEL-RPMS += libblkid-devel glusterfs-api-devel glusterfs-devel
162 # strictly speaking fuse-devel is not required anymore but we might wish to turn fuse back on again in the future
163 libvirt-STOCK-DEVEL-RPMS += fuse-devel libssh2-devel dbus-devel numad
164 libvirt-STOCK-DEVEL-RPMS += systemd-devel libnl3-devel iptables-services netcf-devel
166 libvirt-STOCK-DEVEL-RPMS += wireshark-devel
167 libvirt-STOCK-DEVEL-RPMS += ceph-devel-compat
169 IN_NODEREPO += libvirt
170 IN_NODEIMAGE += libvirt
175 libvirt-python-MODULES := libvirt-python
176 libvirt-python-SPEC := libvirt-python.spec
177 libvirt-python-BUILD-FROM-SRPM := yes
178 libvirt-python-STOCK-DEVEL-RPMS += pm-utils
180 libvirt-python-STOCK-DEVEL-RPMS += python-nose
181 # it would make sense to do something like this if we wanted to
182 # build against python3 as well, but for now I turned this feature off
184 #ifeq "$(distro)" "Fedora"
185 #xxx if $(distrorelease) > 18
186 #libvirt-python-STOCK-DEVEL-RPMS += python3-devel python3-nose python3-lxml
189 libvirt-python-LOCAL-DEVEL-RPMS += libvirt-devel libvirt-docs libvirt-client
190 libvirt-python-RPMFLAGS := --define 'packager PlanetLab'
191 ALL += libvirt-python
192 IN_NODEREPO += libvirt-python
193 IN_NODEIMAGE += libvirt-python
195 endif # local_libvirt
198 # DistributedRateLimiting
200 #DistributedRateLimiting-MODULES := DistributedRateLimiting
201 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
202 #ALL += DistributedRateLimiting
203 #IN_NODEREPO += DistributedRateLimiting
208 pf2slice-MODULES := pf2slice
209 pf2slice-SPEC := pf2slice.spec
213 ## PlanetLab Mom: Cleans up your mess
216 #mom-SPEC := pl_mom.spec
223 # openvswitch-MODULES := openvswitch
224 # openvswitch-SPEC := openvswitch.spec
225 # openvswitch-STOCK-DEVEL-RPMS += kernel-devel
226 # IN_NODEIMAGE += openvswitch
227 # # build only on f14 as f16 has this natively
228 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
236 vsys-SPEC := vsys.spec
237 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
238 vsys-STOCK-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
243 # vsyssh : installed in slivers
245 vsyssh-MODULES := vsys
246 vsyssh-SPEC := vsyssh.spec
247 IN_SLICEIMAGE += vsyssh
253 vsys-scripts-MODULES := vsys-scripts
254 vsys-scripts-SPEC := root-context/vsys-scripts.spec
255 IN_NODEIMAGE += vsys-scripts
258 vsys-wrapper-MODULES := vsys-scripts
259 vsys-wrapper-SPEC := slice-context/vsys-wrapper.spec
260 IN_SLICEIMAGE += vsys-wrapper
266 bind_public-MODULES := bind_public
267 bind_public-SPEC := bind_public.spec
268 IN_SLICEIMAGE += bind_public
271 # in fedora 29, this triggers nasty-looking compile messages
272 # not trying too hard, we're mostly after the server-side of f29
273 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f23 f24 f25 f27 f29)"
277 sliver-openvswitch-MODULES := sliver-openvswitch
278 sliver-openvswitch-SPEC := sliver-openvswitch.spec
279 IN_SLICEIMAGE += sliver-openvswitch
280 ALL += sliver-openvswitch
286 plcapi-MODULES := plcapi
287 plcapi-SPEC := plcapi.spec
294 drupal-MODULES := drupal
295 drupal-SPEC := drupal.spec
296 drupal-BUILD-FROM-SRPM := yes
301 # use the plewww module instead
303 plewww-MODULES := plewww
304 plewww-SPEC := plewww.spec
309 # www-register-wizard
311 www-register-wizard-MODULES := www-register-wizard
312 www-register-wizard-SPEC := www-register-wizard.spec
313 ALL += www-register-wizard
314 IN_MYPLC += www-register-wizard
319 # WARNING: as of f27 I have to remove support for SSL in pcucontrol
320 # see pcucontrol.spec for details
321 pcucontrol-MODULES := pcucontrol
322 pcucontrol-SPEC := pcucontrol.spec
328 #monitor-MODULES := monitor
329 #monitor-SPEC := Monitor.spec
330 #monitor-STOCK-DEVEL-RPMS += net-snmp net-snmp-devel
332 #IN_NODEIMAGE += monitor
337 plcrt-MODULES := PLCRT
338 plcrt-SPEC := plcrt.spec
341 # f12 has 0.9-1 already
342 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
346 pyopenssl-MODULES := pyopenssl
347 pyopenssl-SPEC := pyOpenSSL.spec
348 pyopenssl-BUILD-FROM-SRPM := yes
355 pyaspects-MODULES := pyaspects
356 pyaspects-SPEC := pyaspects.spec
357 pyaspects-BUILD-FROM-SRPM := yes
363 nodeconfig-MODULES := nodeconfig
364 nodeconfig-SPEC := nodeconfig.spec
366 IN_MYPLC += nodeconfig
371 bootmanager-MODULES := bootmanager
372 bootmanager-SPEC := bootmanager.spec
374 IN_MYPLC += bootmanager
377 # pypcilib : used in bootcd
379 pypcilib-MODULES := pypcilib
380 pypcilib-SPEC := pypcilib.spec
382 IN_BOOTCD += pypcilib
387 pyplnet-MODULES := pyplnet
388 pyplnet-SPEC := pyplnet.spec
390 IN_NODEIMAGE += pyplnet
394 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f23 f24 f25 f27 f29)"
396 # OML measurement library
399 oml-STOCK-DEVEL-RPMS += sqlite-devel
400 oml-SPEC := liboml.spec
407 bootcd-MODULES := bootcd build
408 bootcd-SPEC := bootcd.spec
409 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
410 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
411 bootcd-RPMDATE := yes
418 sliceimage-MODULES := sliceimage build
419 sliceimage-SPEC := sliceimage.spec
420 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
421 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
422 sliceimage-RPMDATE := yes
424 IN_NODEIMAGE += sliceimage
427 # lxc-specific sliceimage initialization
429 lxc-sliceimage-MODULES := sliceimage
430 lxc-sliceimage-SPEC := lxc-sliceimage.spec
431 lxc-sliceimage-RPMDATE := yes
432 ALL += lxc-sliceimage
433 IN_NODEIMAGE += lxc-sliceimage
438 nodeimage-MODULES := nodeimage build
439 nodeimage-SPEC := nodeimage.spec
440 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
441 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
442 nodeimage-RPMDATE := yes
444 IN_MYPLC += nodeimage
449 # all rpms resulting from packages marked as being in nodeimage and sliceimage
450 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
451 # replace space with +++ (specvars cannot deal with spaces)
453 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
455 noderepo-MODULES := nodeimage
456 noderepo-SPEC := noderepo.spec
457 # package requires all embedded packages
458 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
459 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
460 #export rpm list to the specfile
461 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
462 noderepo-RPMDATE := yes
469 # all rpms resulting from packages marked as being in vserver
470 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
471 # replace space with +++ (specvars cannot deal with spaces)
473 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
475 slicerepo-MODULES := nodeimage
476 slicerepo-SPEC := slicerepo.spec
477 # package requires all embedded packages
478 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
479 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
480 #export rpm list to the specfile
481 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
482 slicerepo-RPMDATE := yes
486 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
488 myplc-MODULES := myplc
489 myplc-SPEC := myplc.spec
490 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
493 # myplc-docs only contains docs for PLCAPI and NMAPI, but
494 # we still need to pull MyPLC, as it is where the specfile lies,
495 # together with the utility script docbook2drupal.sh
496 myplc-docs-MODULES := myplc plcapi nodemanager monitor
497 myplc-docs-SPEC := myplc-docs.spec
500 # using some other name than myplc-release, as this is a make target already
501 release-MODULES := myplc
502 release-SPEC := myplc-release.spec
503 release-RPMDATE := yes
506 ##############################
508 # sfa - Slice Facility Architecture