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 ahip with fedora16's kernel rpm
14 # transforward: root context module for transparent port forwarding
16 transforward-MODULES := transforward
17 transforward-SPEC := transforward.spec
19 IN_NODEIMAGE += transforward
22 # procprotect: root context module for protecting against weaknesses in /proc
24 procprotect-MODULES := procprotect
25 procprotect-SPEC := procprotect.spec
27 IN_NODEIMAGE += procprotect
30 # ipfw: root context module, and slice companion
32 ipfwroot-MODULES := ipfw
33 ipfwroot-SPEC := planetlab/ipfwroot.spec
35 IN_NODEIMAGE += ipfwroot
37 ipfwslice-MODULES := ipfw
38 ipfwslice-SPEC := planetlab/ipfwslice.spec
44 nodeupdate-MODULES := nodeupdate
45 nodeupdate-SPEC := NodeUpdate.spec
47 IN_NODEIMAGE += nodeupdate
52 ipod-MODULES := PingOfDeath
53 ipod-SPEC := ipod.spec
60 plnode-utils-MODULES := plnode-utils
61 plnode-utils-SPEC := plnode-utils-lxc.spec
63 IN_NODEIMAGE += plnode-utils
68 nodemanager-lib-MODULES := nodemanager
69 nodemanager-lib-SPEC := nodemanager-lib.spec
70 ALL += nodemanager-lib
71 IN_NODEIMAGE += nodemanager-lib
73 nodemanager-lxc-MODULES := nodemanager
74 nodemanager-lxc-SPEC := nodemanager-lxc.spec
75 ALL += nodemanager-lxc
76 IN_NODEIMAGE += nodemanager-lxc
81 sshd-MODULES := pl_sshd
82 sshd-SPEC := pl_sshd.spec
87 # codemux: Port 80 demux
89 codemux-MODULES := codemux
90 codemux-SPEC := codemux.spec
92 IN_NODEIMAGE += codemux
97 fprobe-ulog-MODULES := fprobe-ulog
98 fprobe-ulog-SPEC := fprobe-ulog.spec
100 IN_NODEIMAGE += fprobe-ulog
102 #################### libvirt on f16 is too old, sounds like f17 has something fine
104 ifeq "$(DISTRONAME)" "f16"
108 ifeq "$(local_libvirt)" "true"
112 libvirt-MODULES := libvirt
113 libvirt-SPEC := libvirt.spec
114 libvirt-BUILD-FROM-SRPM := yes
115 libvirt-DEVEL-RPMS += libxml2-devel gnutls-devel device-mapper-devel yajl-devel gettext
116 libvirt-DEVEL-RPMS += python-devel libcap-ng-devel libpciaccess-devel radvd numactl-devel
117 libvirt-DEVEL-RPMS += xhtml1-dtds libxslt libtasn1-devel systemtap-sdt-devel iptables-ipv6 augeas
118 libvirt-DEVEL-RPMS += libudev-devel libpcap-devel libnl-devel ebtables scrub
119 libvirt-RPMFLAGS := --without storage-disk --without storage-iscsi --without storage-scsi \
120 --without storage-fs --without storage-lvm \
121 --without polkit --without sasl --without audit --with capng --with udev \
122 --without netcf --without avahi --without sanlock \
123 --without xen --without qemu --without hyperv --without phyp --without esx \
125 --define 'packager PlanetLab'
127 IN_NODEREPO += libvirt
128 IN_NODEIMAGE += libvirt
132 # DistributedRateLimiting
134 #DistributedRateLimiting-MODULES := DistributedRateLimiting
135 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
136 #ALL += DistributedRateLimiting
137 #IN_NODEREPO += DistributedRateLimiting
142 pf2slice-MODULES := pf2slice
143 pf2slice-SPEC := pf2slice.spec
147 ## PlanetLab Mom: Cleans up your mess
150 #mom-SPEC := pl_mom.spec
155 # inotify-tools - local import
156 # rebuild this on centos5 (not found) - see yumexclude
158 local_inotify_tools=false
159 ifeq "$(DISTRONAME)" "centos5"
160 local_inotify_tools=true
163 ifeq "$(DISTRONAME)" "sl6"
164 local_inotify_tools=true
167 ifeq "$(local_inotify_tools)" "true"
168 inotify-tools-MODULES := inotify-tools
169 inotify-tools-SPEC := inotify-tools.spec
170 inotify-tools-BUILD-FROM-SRPM := yes
171 IN_NODEIMAGE += inotify-tools
178 # openvswitch-MODULES := openvswitch
179 # openvswitch-SPEC := openvswitch.spec
180 # openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
181 # IN_NODEIMAGE += openvswitch
182 # # build only on f14 as f16 has this natively
183 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
191 vsys-SPEC := vsys.spec
192 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
193 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
194 ifeq "$(local_inotify_tools)" "true"
195 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
201 # vsyssh : installed in slivers
203 vsyssh-MODULES := vsys
204 vsyssh-SPEC := vsyssh.spec
205 IN_SLICEIMAGE += vsyssh
211 vsys-scripts-MODULES := vsys-scripts
212 vsys-scripts-SPEC := vsys-scripts.spec
213 IN_NODEIMAGE += vsys-scripts
219 bind_public-MODULES := bind_public
220 bind_public-SPEC := bind_public.spec
221 IN_SLICEIMAGE += bind_public
227 plcapi-MODULES := plcapi
228 plcapi-SPEC := PLCAPI.spec
235 drupal-MODULES := drupal
236 drupal-SPEC := drupal.spec
237 drupal-BUILD-FROM-SRPM := yes
242 # use the plewww module instead
244 plewww-MODULES := plewww
245 plewww-SPEC := plewww.spec
250 # www-register-wizard
252 www-register-wizard-MODULES := www-register-wizard
253 www-register-wizard-SPEC := www-register-wizard.spec
254 ALL += www-register-wizard
255 IN_MYPLC += www-register-wizard
260 pcucontrol-MODULES := pcucontrol
261 pcucontrol-SPEC := pcucontrol.spec
267 #monitor-MODULES := monitor
268 #monitor-SPEC := Monitor.spec
269 #monitor-DEVEL-RPMS += net-snmp net-snmp-devel
271 #IN_NODEIMAGE += monitor
276 plcrt-MODULES := PLCRT
277 plcrt-SPEC := plcrt.spec
280 # f12 has 0.9-1 already
281 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
285 pyopenssl-MODULES := pyopenssl
286 pyopenssl-SPEC := pyOpenSSL.spec
287 pyopenssl-BUILD-FROM-SRPM := yes
294 pyaspects-MODULES := pyaspects
295 pyaspects-SPEC := pyaspects.spec
296 pyaspects-BUILD-FROM-SRPM := yes
299 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
300 # In addition we now use sqlalchemy and 0.5 as per f12 is not compatible with our model
302 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
306 ifeq "$(build_sfa)" "true"
308 # sfa - Slice Facility Architecture
314 sface-MODULES := sface
315 sface-SPEC := sface.spec
322 nodeconfig-MODULES := nodeconfig
323 nodeconfig-SPEC := nodeconfig.spec
325 IN_MYPLC += nodeconfig
330 bootmanager-MODULES := bootmanager
331 bootmanager-SPEC := bootmanager.spec
333 IN_MYPLC += bootmanager
336 # pypcilib : used in bootcd
338 pypcilib-MODULES := pypcilib
339 pypcilib-SPEC := pypcilib.spec
341 IN_BOOTCD += pypcilib
346 pyplnet-MODULES := pyplnet
347 pyplnet-SPEC := pyplnet.spec
349 IN_NODEIMAGE += pyplnet
354 # OMF resource controller
356 omf-resctl-MODULES := omf
357 omf-resctl-SPEC := omf-resctl.spec
359 IN_SLICEIMAGE += omf-resctl
364 omf-expctl-MODULES := omf
365 omf-expctl-SPEC := omf-expctl.spec
371 bootcd-MODULES := bootcd build
372 bootcd-SPEC := bootcd.spec
373 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
374 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
375 bootcd-RPMDATE := yes
382 sliceimage-MODULES := sliceimage build
383 sliceimage-SPEC := sliceimage.spec
384 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
385 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
386 sliceimage-RPMDATE := yes
388 IN_NODEIMAGE += sliceimage
391 # lxc-specific sliceimage initialization
393 lxc-sliceimage-MODULES := sliceimage
394 lxc-sliceimage-SPEC := lxc-sliceimage.spec
395 lxc-sliceimage-RPMDATE := yes
396 ALL += lxc-sliceimage
397 IN_NODEIMAGE += lxc-sliceimage
402 nodeimage-MODULES := nodeimage build
403 nodeimage-SPEC := nodeimage.spec
404 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
405 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
406 nodeimage-RPMDATE := yes
408 IN_MYPLC += nodeimage
413 # all rpms resulting from packages marked as being in nodeimage and sliceimage
414 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
415 # replace space with +++ (specvars cannot deal with spaces)
417 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
419 noderepo-MODULES := nodeimage
420 noderepo-SPEC := noderepo.spec
421 # package requires all embedded packages
422 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
423 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
424 #export rpm list to the specfile
425 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
426 noderepo-RPMDATE := yes
433 # all rpms resulting from packages marked as being in vserver
434 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
435 # replace space with +++ (specvars cannot deal with spaces)
437 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
439 slicerepo-MODULES := nodeimage
440 slicerepo-SPEC := slicerepo.spec
441 # package requires all embedded packages
442 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
443 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
444 #export rpm list to the specfile
445 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
446 slicerepo-RPMDATE := yes
450 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
452 myplc-MODULES := myplc
453 myplc-SPEC := myplc.spec
454 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
457 # myplc-docs only contains docs for PLCAPI and NMAPI, but
458 # we still need to pull MyPLC, as it is where the specfile lies,
459 # together with the utility script docbook2drupal.sh
460 myplc-docs-MODULES := myplc plcapi nodemanager monitor
461 myplc-docs-SPEC := myplc-docs.spec
464 # using some other name than myplc-release, as this is a make target already
465 release-MODULES := myplc
466 release-SPEC := myplc-release.spec
467 release-RPMDATE := yes