2 ### status as of may 23 2012
3 # this essentially targets f16 of course
4 # however in f16 gnuradio comes as 3.4 while f14 had 3.2:
5 # [2012.05.23--wtx-f14-64] ~ # rpm -q gnuradio
6 # gnuradio-3.2.2-9.fc14.x86_64
7 # [2012.05.23--wexlxc-f16-64] ~ # rpm -q gnuradio
8 # gnuradio-3.4.2-7.fc16.x86_64
10 # This causes bbn build crash
11 # our bbn comes from http://mirror.onelab.eu/third-party/bbn_80211-3.2.2.tar.gz
12 # and when built against gnuradio in f16, we're getting
13 # g++ -DHAVE_CONFIG_H -I. -I../.. -pthread -I/usr/include/gnuradio -I/usr/include/python2.7 -g -O2 -Wall -Woverloaded-virtual -pthread -MT bbn.lo -M\
14 # D -MP -MF .deps/bbn.Tpo -c bbn.cc -fPIC -DPIC -o .libs/bbn.o
15 # In file included from bbn.cc:4108:0:
16 # bbn_tap.h:38:24: fatal error: omnithread.h: No such file or directory
18 # I could not at first sight easily locate a new bbn that would be numbered 3.4
19 # all they have seems to be a svn repo...
21 # we'll start with using plain lxc for orange and we'll see if that's a real issue
22 # might as well be just fine
24 ### moving forward I face another issue with spectools
26 # gcc -I./ -g -O2 -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -c spectool_raw.c -o spectool_raw.o
27 # gcc spectool_container.o wispy_hw_gen1.o wispy_hw_24x.o wispy_hw_dbx.o spectool_net_client.o spectool_raw.o -o spectool_raw -lpthread -lm -lusb
28 # wispy_hw_dbx.o: In function `wispydbx_usb_open':
29 # /longbuildroot/BUILD/spectools-2009_06_R1/wispy_hw_dbx.c:635: undefined reference to `usb_debug'
30 # collect2: ld returned 1 exit status
31 # make[1]: *** [spectool_raw] Error 1
32 # make[1]: Leaving directory `/build/BUILD/spectools-2009_06_R1'
33 # error: Bad exit status from /longbuildroot/tmp/rpm-tmp.zqqEgL (%build)
35 # putting this aside as well for now
39 # declare the packages to be built and their dependencies
40 # initial version from Mark Huang
41 # Mark Huang <mlhuang@cs.princeton.edu>
42 # Copyright (C) 2003-2006 The Trustees of Princeton University
43 # rewritten by Thierry Parmentelat - INRIA Sophia Antipolis
51 bbn-MODULES := bbn_80211
52 bbn-SPEC := bbn_80211.spec
53 bbn-BUILD-FROM-SRPM := yes
54 # now from the stock repo
55 bbn-DEVEL-RPMS := gnuradio gnuradio-devel boost boost-devel swig
56 #bbn-DEPEND-DEVEL-RPMS := gnuradio gnuradio-devel boost boost-devel
63 crunchxml-MODULES := crunchxml
64 crunchxml-SPEC := crunchxml.spec
65 crunchxml-BUILD-FROM-SRPM := yes
66 crunchxml-DEVEL-RPMS := glib2-devel libxml-devel libxml2-devel scons gsl-devel
68 IN_NODEIMAGE += crunchxml
73 spectools-MODULES := spectools
74 spectools-SPEC := spectools.spec
75 spectools-BUILD-FROM-SRPM := yes
76 spectools-DEVEL-RPMS := gtk2-devel libusb-devel
78 #IN_NODEIMAGE += spectools
85 sge-BUILD-FROM-SRPM := yes
86 sge-DEVEL-RPMS += kdevelop-devel kdevelop kdevelop-libs java-1.6.0-openjdk
87 sge-DEVEL-RPMS += lesstif lesstif-devel
89 # turning this off - current focus is on deploying the sge box separately from myplc
90 # packaging is still broken, and we're exploring a ready-to-use distro on centos
94 ########################################
96 # lxctools: scripts for entering containers
98 lxctools-MODULES := lxctools
99 lxctools-SPEC := lxctools.spec
101 IN_NODEIMAGE += lxctools
104 # lxcsu: root context module for entering namespaces
106 lxcsu-MODULES := lxcsu
107 lxcsu-SPEC := lxcsu.spec
109 IN_NODEIMAGE += lxcsu
113 # transforward: root context module for transparent port forwarding
115 transforward-MODULES := transforward
116 transforward-SPEC := transforward.spec
118 IN_NODEIMAGE += transforward
121 # procprotect: root context module for protecting against weaknesses in /proc
123 procprotect-MODULES := procprotect
124 procprotect-SPEC := procprotect.spec
126 IN_NODEIMAGE += procprotect
129 # ipfw: root context module, and slice companion
131 ipfwroot-MODULES := ipfw
132 ipfwroot-SPEC := planetlab/ipfwroot.spec
134 IN_NODEIMAGE += ipfwroot
136 ipfwslice-MODULES := ipfw
137 ipfwslice-SPEC := planetlab/ipfwslice.spec
143 nodeupdate-MODULES := nodeupdate
144 nodeupdate-SPEC := NodeUpdate.spec
146 IN_NODEIMAGE += nodeupdate
151 ipod-MODULES := PingOfDeath
152 ipod-SPEC := ipod.spec
159 plnode-utils-MODULES := plnode-utils
160 plnode-utils-SPEC := plnode-utils-lxc.spec
162 IN_NODEIMAGE += plnode-utils
167 nodemanager-lib-MODULES := nodemanager
168 nodemanager-lib-SPEC := nodemanager-lib.spec
169 ALL += nodemanager-lib
170 IN_NODEIMAGE += nodemanager-lib
172 nodemanager-lxc-MODULES := nodemanager
173 nodemanager-lxc-SPEC := nodemanager-lxc.spec
174 ALL += nodemanager-lxc
175 IN_NODEIMAGE += nodemanager-lxc
180 sshd-MODULES := pl_sshd
181 sshd-SPEC := pl_sshd.spec
186 # codemux: Port 80 demux
188 codemux-MODULES := codemux
189 codemux-SPEC := codemux.spec
191 IN_NODEIMAGE += codemux
196 fprobe-ulog-MODULES := fprobe-ulog
197 fprobe-ulog-SPEC := fprobe-ulog.spec
199 IN_NODEIMAGE += fprobe-ulog
201 #################### libvirt on f16 is too old, sounds like f17 has something fine
203 ifeq "$(DISTRONAME)" "f16"
207 ifeq "$(local_libvirt)" "true"
211 libvirt-MODULES := libvirt
212 libvirt-SPEC := libvirt.spec
213 libvirt-BUILD-FROM-SRPM := yes
214 libvirt-DEVEL-RPMS += libxml2-devel gnutls-devel device-mapper-devel yajl-devel gettext
215 libvirt-DEVEL-RPMS += python-devel libcap-ng-devel libpciaccess-devel radvd numactl-devel
216 libvirt-DEVEL-RPMS += xhtml1-dtds libxslt libtasn1-devel systemtap-sdt-devel iptables-ipv6 augeas
217 libvirt-DEVEL-RPMS += libudev-devel libpcap-devel libnl-devel ebtables scrub
218 libvirt-RPMFLAGS := --without storage-disk --without storage-iscsi --without storage-scsi \
219 --without storage-fs --without storage-lvm \
220 --without polkit --without sasl --without audit --with capng --with udev \
221 --without netcf --without avahi --without sanlock \
222 --without xen --without qemu --without hyperv --without phyp --without esx \
224 --define 'packager PlanetLab'
226 IN_NODEREPO += libvirt
227 IN_NODEIMAGE += libvirt
231 # DistributedRateLimiting
233 #DistributedRateLimiting-MODULES := DistributedRateLimiting
234 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
235 #ALL += DistributedRateLimiting
236 #IN_NODEREPO += DistributedRateLimiting
241 pf2slice-MODULES := pf2slice
242 pf2slice-SPEC := pf2slice.spec
246 ## PlanetLab Mom: Cleans up your mess
249 #mom-SPEC := pl_mom.spec
254 # inotify-tools - local import
255 # rebuild this on centos5 (not found) - see yumexclude
257 local_inotify_tools=false
258 ifeq "$(DISTRONAME)" "centos5"
259 local_inotify_tools=true
262 ifeq "$(DISTRONAME)" "sl6"
263 local_inotify_tools=true
266 ifeq "$(local_inotify_tools)" "true"
267 inotify-tools-MODULES := inotify-tools
268 inotify-tools-SPEC := inotify-tools.spec
269 inotify-tools-BUILD-FROM-SRPM := yes
270 IN_NODEIMAGE += inotify-tools
277 # openvswitch-MODULES := openvswitch
278 # openvswitch-SPEC := openvswitch.spec
279 # openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
280 # IN_NODEIMAGE += openvswitch
281 # # build only on f14 as f16 has this natively
282 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
290 vsys-SPEC := vsys.spec
291 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
292 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
293 ifeq "$(local_inotify_tools)" "true"
294 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
300 # vsyssh : installed in slivers
302 vsyssh-MODULES := vsys
303 vsyssh-SPEC := vsyssh.spec
304 IN_SLICEIMAGE += vsyssh
310 vsys-scripts-MODULES := vsys-scripts
311 vsys-scripts-SPEC := root-context/vsys-scripts.spec
312 IN_NODEIMAGE += vsys-scripts
318 bind_public-MODULES := bind_public
319 bind_public-SPEC := bind_public.spec
320 IN_SLICEIMAGE += bind_public
326 plcapi-MODULES := plcapi
327 plcapi-SPEC := PLCAPI.spec
334 drupal-MODULES := drupal
335 drupal-SPEC := drupal.spec
336 drupal-BUILD-FROM-SRPM := yes
341 # use the plewww module instead
343 plewww-MODULES := plewww
344 plewww-SPEC := plewww.spec
349 # www-register-wizard
351 www-register-wizard-MODULES := www-register-wizard
352 www-register-wizard-SPEC := www-register-wizard.spec
353 ALL += www-register-wizard
354 IN_MYPLC += www-register-wizard
359 pyaspects-MODULES := pyaspects
360 pyaspects-SPEC := pyaspects.spec
361 pyaspects-BUILD-FROM-SRPM := yes
367 nodeconfig-MODULES := nodeconfig
368 nodeconfig-SPEC := nodeconfig.spec
370 IN_MYPLC += nodeconfig
375 bootmanager-MODULES := bootmanager
376 bootmanager-SPEC := bootmanager.spec
378 IN_MYPLC += bootmanager
381 # pypcilib : used in bootcd
383 pypcilib-MODULES := pypcilib
384 pypcilib-SPEC := pypcilib.spec
386 IN_BOOTCD += pypcilib
391 pyplnet-MODULES := pyplnet
392 pyplnet-SPEC := pyplnet.spec
394 IN_NODEIMAGE += pyplnet
399 # OMF resource controller
401 omf-resctl-MODULES := omf
402 omf-resctl-SPEC := omf-resctl.spec
404 IN_SLICEIMAGE += omf-resctl
409 omf-expctl-MODULES := omf
410 omf-expctl-SPEC := omf-expctl.spec
416 bootcd-MODULES := bootcd build
417 bootcd-SPEC := bootcd.spec
418 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
419 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
420 bootcd-RPMDATE := yes
427 sliceimage-MODULES := sliceimage build
428 sliceimage-SPEC := sliceimage.spec
429 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
430 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
431 sliceimage-RPMDATE := yes
433 IN_NODEIMAGE += sliceimage
436 # lxc-specific sliceimage initialization
438 lxc-sliceimage-MODULES := sliceimage
439 lxc-sliceimage-SPEC := lxc-sliceimage.spec
440 lxc-sliceimage-RPMDATE := yes
441 ALL += lxc-sliceimage
442 IN_NODEIMAGE += lxc-sliceimage
447 nodeimage-MODULES := nodeimage build
448 nodeimage-SPEC := nodeimage.spec
449 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
450 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
451 nodeimage-RPMDATE := yes
453 IN_MYPLC += nodeimage
458 # all rpms resulting from packages marked as being in nodeimage and sliceimage
459 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
460 # replace space with +++ (specvars cannot deal with spaces)
462 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
464 noderepo-MODULES := nodeimage
465 noderepo-SPEC := noderepo.spec
466 # package requires all embedded packages
467 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
468 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
469 #export rpm list to the specfile
470 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
471 noderepo-RPMDATE := yes
478 # all rpms resulting from packages marked as being in vserver
479 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
480 # replace space with +++ (specvars cannot deal with spaces)
482 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
484 slicerepo-MODULES := nodeimage
485 slicerepo-SPEC := slicerepo.spec
486 # package requires all embedded packages
487 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
488 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
489 #export rpm list to the specfile
490 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
491 slicerepo-RPMDATE := yes
495 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
497 myplc-MODULES := myplc
498 myplc-SPEC := myplc.spec
499 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
502 # myplc-docs only contains docs for PLCAPI and NMAPI, but
503 # we still need to pull MyPLC, as it is where the specfile lies,
504 # together with the utility script docbook2drupal.sh
505 myplc-docs-MODULES := myplc plcapi nodemanager monitor
506 myplc-docs-SPEC := myplc-docs.spec
509 # using some other name than myplc-release, as this is a make target already
510 release-MODULES := myplc
511 release-SPEC := myplc-release.spec
512 release-RPMDATE := yes