symlink to the lxc devel.pkgs
[wextoolbox.git] / wexlxc.mk
1 #
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
9 ###
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
17 #
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...
20 #
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
23 #
24 ### moving forward I face another issue with spectools
25 #
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)
34
35 # putting this aside as well for now
36 #
37 ### 
38 #
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
44 #
45 # see doc in Makefile  
46 #
47
48 #
49 # bbn
50 #
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
57 #ALL += bbn
58 #IN_NODEIMAGE += bbn
59
60 #
61 # crunchxml
62 #
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
67 ALL += crunchxml
68 IN_NODEIMAGE += crunchxml
69
70 #
71 # spectools
72 #
73 spectools-MODULES := spectools
74 spectools-SPEC := spectools.spec
75 spectools-BUILD-FROM-SRPM := yes
76 spectools-DEVEL-RPMS := gtk2-devel libusb-devel
77 #ALL += spectools
78 #IN_NODEIMAGE += spectools
79
80 #
81 # sge
82 #
83 sge-MODULES := sge
84 sge-SPEC := sge.spec
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
88
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
91 # ALL += sge
92 # IN_NODEIMAGE += sge
93
94 ########################################
95 #
96 # lxctools: scripts for entering containers
97 #
98 lxctools-MODULES := lxctools
99 lxctools-SPEC := lxctools.spec
100 ALL += lxctools
101 IN_NODEIMAGE += lxctools
102
103 #
104 # lxcsu: root context module for entering namespaces
105 #
106 lxcsu-MODULES := lxcsu
107 lxcsu-SPEC := lxcsu.spec
108 ALL += lxcsu
109 IN_NODEIMAGE += lxcsu
110
111 #
112 #
113 # transforward: root context module for transparent port forwarding
114 #
115 transforward-MODULES := transforward
116 transforward-SPEC := transforward.spec
117 ALL += transforward
118 IN_NODEIMAGE += transforward
119
120 #
121 # procprotect: root context module for protecting against weaknesses in /proc
122 #
123 procprotect-MODULES := procprotect
124 procprotect-SPEC := procprotect.spec
125 ALL += procprotect
126 IN_NODEIMAGE += procprotect
127
128 #
129 # ipfw: root context module, and slice companion
130 #
131 ipfwroot-MODULES := ipfw
132 ipfwroot-SPEC := planetlab/ipfwroot.spec
133 ALL += ipfwroot
134 IN_NODEIMAGE += ipfwroot
135
136 ipfwslice-MODULES := ipfw
137 ipfwslice-SPEC := planetlab/ipfwslice.spec
138 ALL += ipfwslice
139
140 #
141 # NodeUpdate
142 #
143 nodeupdate-MODULES := nodeupdate
144 nodeupdate-SPEC := NodeUpdate.spec
145 ALL += nodeupdate
146 IN_NODEIMAGE += nodeupdate
147
148 #
149 # ipod
150 #
151 ipod-MODULES := PingOfDeath
152 ipod-SPEC := ipod.spec
153 ALL += ipod
154 IN_NODEIMAGE += ipod
155
156 #
157 # plnode-utils
158
159 plnode-utils-MODULES := plnode-utils
160 plnode-utils-SPEC := plnode-utils-lxc.spec
161 ALL += plnode-utils
162 IN_NODEIMAGE += plnode-utils
163
164 #
165 # nodemanager
166 #
167 nodemanager-lib-MODULES := nodemanager
168 nodemanager-lib-SPEC := nodemanager-lib.spec
169 ALL += nodemanager-lib
170 IN_NODEIMAGE += nodemanager-lib
171
172 nodemanager-lxc-MODULES := nodemanager
173 nodemanager-lxc-SPEC := nodemanager-lxc.spec
174 ALL += nodemanager-lxc
175 IN_NODEIMAGE += nodemanager-lxc
176
177 #
178 # pl_sshd
179 #
180 sshd-MODULES := pl_sshd
181 sshd-SPEC := pl_sshd.spec
182 ALL += sshd
183 IN_NODEIMAGE += sshd
184
185 #
186 # codemux: Port 80 demux
187 #
188 codemux-MODULES := codemux
189 codemux-SPEC   := codemux.spec
190 ALL += codemux
191 IN_NODEIMAGE += codemux
192
193 #
194 # fprobe-ulog
195 #
196 fprobe-ulog-MODULES := fprobe-ulog
197 fprobe-ulog-SPEC := fprobe-ulog.spec
198 ALL += fprobe-ulog
199 IN_NODEIMAGE += fprobe-ulog
200
201 #################### libvirt on f16 is too old, sounds like f17 has something fine
202 local_libvirt=false
203 ifeq "$(DISTRONAME)" "f16"
204 local_libvirt=true
205 endif
206
207 ifeq "$(local_libvirt)" "true"
208 #
209 # libvirt
210 #
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 \
223                         --without libxl \
224                         --define 'packager PlanetLab'
225 ALL += libvirt
226 IN_NODEREPO += libvirt
227 IN_NODEIMAGE += libvirt
228 endif
229
230 #
231 # DistributedRateLimiting
232 #
233 #DistributedRateLimiting-MODULES := DistributedRateLimiting
234 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
235 #ALL += DistributedRateLimiting
236 #IN_NODEREPO += DistributedRateLimiting
237
238 #
239 # pf2slice
240 #
241 pf2slice-MODULES := pf2slice
242 pf2slice-SPEC := pf2slice.spec
243 ALL += pf2slice
244
245 ##
246 ## PlanetLab Mom: Cleans up your mess
247 ##
248 #mom-MODULES := Mom
249 #mom-SPEC := pl_mom.spec
250 #ALL += mom
251 #IN_NODEIMAGE += mom
252
253 #
254 # inotify-tools - local import
255 # rebuild this on centos5 (not found) - see yumexclude
256 #
257 local_inotify_tools=false
258 ifeq "$(DISTRONAME)" "centos5"
259 local_inotify_tools=true
260 endif
261
262 ifeq "$(DISTRONAME)" "sl6"
263 local_inotify_tools=true
264 endif
265
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
271 ALL += inotify-tools
272 endif
273
274 #
275 # openvswitch
276 #
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)"
283 # ALL += openvswitch
284 # endif
285
286 #
287 # vsys
288 #
289 vsys-MODULES := vsys
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
295 endif
296 IN_NODEIMAGE += vsys
297 ALL += vsys
298
299 #
300 # vsyssh : installed in slivers
301 #
302 vsyssh-MODULES := vsys
303 vsyssh-SPEC := vsyssh.spec
304 IN_SLICEIMAGE += vsyssh
305 ALL += vsyssh
306
307 #
308 # vsys-scripts
309 #
310 vsys-scripts-MODULES := vsys-scripts
311 vsys-scripts-SPEC := root-context/vsys-scripts.spec
312 IN_NODEIMAGE += vsys-scripts
313 ALL += vsys-scripts
314
315 #
316 # bind_public
317 #
318 bind_public-MODULES := bind_public
319 bind_public-SPEC := bind_public.spec
320 IN_SLICEIMAGE += bind_public
321 ALL += bind_public
322
323 #
324 # plcapi
325 #
326 plcapi-MODULES := plcapi
327 plcapi-SPEC := PLCAPI.spec
328 ALL += plcapi
329 IN_MYPLC += plcapi
330
331 #
332 # drupal
333
334 drupal-MODULES := drupal
335 drupal-SPEC := drupal.spec
336 drupal-BUILD-FROM-SRPM := yes
337 ALL += drupal
338 IN_MYPLC += drupal
339
340 #
341 # use the plewww module instead
342 #
343 plewww-MODULES := plewww
344 plewww-SPEC := plewww.spec
345 ALL += plewww
346 IN_MYPLC += plewww
347
348 #
349 # www-register-wizard
350 #
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
355
356 #
357 # pyaspects
358 #
359 pyaspects-MODULES := pyaspects
360 pyaspects-SPEC := pyaspects.spec
361 pyaspects-BUILD-FROM-SRPM := yes
362 ALL += pyaspects
363
364 #
365 # nodeconfig
366 #
367 nodeconfig-MODULES := nodeconfig
368 nodeconfig-SPEC := nodeconfig.spec
369 ALL += nodeconfig
370 IN_MYPLC += nodeconfig
371
372 #
373 # bootmanager
374 #
375 bootmanager-MODULES := bootmanager
376 bootmanager-SPEC := bootmanager.spec
377 ALL += bootmanager
378 IN_MYPLC += bootmanager
379
380 #
381 # pypcilib : used in bootcd
382
383 pypcilib-MODULES := pypcilib
384 pypcilib-SPEC := pypcilib.spec
385 ALL += pypcilib
386 IN_BOOTCD += pypcilib
387
388 #
389 # pyplnet
390 #
391 pyplnet-MODULES := pyplnet
392 pyplnet-SPEC := pyplnet.spec
393 ALL += pyplnet
394 IN_NODEIMAGE += pyplnet
395 IN_MYPLC += pyplnet
396 IN_BOOTCD += pyplnet
397
398 #
399 # OMF resource controller
400 #
401 omf-resctl-MODULES := omf
402 omf-resctl-SPEC := omf-resctl.spec
403 ALL += omf-resctl
404 IN_SLICEIMAGE += omf-resctl
405
406 #
407 # OMF exp controller
408 #
409 omf-expctl-MODULES := omf
410 omf-expctl-SPEC := omf-expctl.spec
411 ALL += omf-expctl
412
413 #
414 # bootcd
415 #
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
421 ALL += bootcd
422 IN_MYPLC += bootcd
423
424 #
425 # images for slices
426 #
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
432 ALL += sliceimage
433 IN_NODEIMAGE += sliceimage
434
435 #
436 # lxc-specific sliceimage initialization
437
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
443
444 #
445 # nodeimage
446 #
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
452 ALL += nodeimage
453 IN_MYPLC += nodeimage
454
455 #
456 # noderepo
457 #
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)
461 SPACE=$(subst x, ,x)
462 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
463
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
472 ALL += noderepo
473 IN_MYPLC += noderepo
474
475 #
476 # slicerepo
477 #
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)
481 SPACE=$(subst x, ,x)
482 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
483
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
492 ALL += slicerepo
493
494 #
495 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
496 #
497 myplc-MODULES := myplc
498 myplc-SPEC := myplc.spec
499 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
500 ALL += myplc
501
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
507 ALL += myplc-docs
508
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
513 ALL += release