bootstrapfs master for yumexclude
[wextoolbox.git] / wextoolbox.mk
1 #
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
7 #
8 ### NOTES on diffs with onelab
9 # 2.6.27 vs 2.6.22 - does not need iwlwifi exception anymore
10 # does not include:
11 # ipfw (might just work) - svn:ipfw
12 # ipfwslice - svn:ipfw
13 # nozomi (does not work on 2.6.27) svn:nozomi
14 # comgt - svn:comgt
15 # umts-backend - svn:planetlab-umts-tools
16 # umts-frontend - svn:planetlab-umts-tools
17 # dummynet_image - svn:dummynet_image
18
19 #
20 # see doc in Makefile  
21 #
22
23 #
24 # bbn
25 #
26 bbn-MODULES := bbn_80211
27 bbn-SPEC := bbn_80211.spec
28 bbn-BUILD-FROM-SRPM := yes
29 # now from the stock repo
30 bbn-DEVEL-RPMS := gnuradio gnuradio-devel boost boost-devel swig
31 #bbn-DEPEND-DEVEL-RPMS := gnuradio gnuradio-devel boost boost-devel
32 ALL += bbn
33 IN_BOOTSTRAPFS += bbn
34
35 #
36 # crunchxml
37 #
38 crunchxml-MODULES := crunchxml
39 crunchxml-SPEC := crunchxml.spec
40 crunchxml-BUILD-FROM-SRPM := yes
41 crunchxml-DEVEL-RPMS := glib2-devel libxml-devel libxml2-devel scons
42 ALL += crunchxml
43 IN_BOOTSTRAPFS += crunchxml
44
45 #
46 # spectools
47 #
48 spectools-MODULES := spectools
49 spectools-SPEC := spectools.spec
50 spectools-BUILD-FROM-SRPM := yes
51 spectools-DEVEL-RPMS := gtk2-devel
52 ALL += spectools
53 IN_BOOTSTRAPFS += spectools
54
55 #
56 # sge
57 #
58 sge-MODULES := sge
59 sge-SPEC := sge.spec
60 sge-BUILD-FROM-SRPM := yes
61 sge-DEVEL-RPMS += kdevelop-devel kdevelop kdevelop-libs java-1.6.0-openjdk 
62 sge-DEVEL-RPMS += lesstif lesstif-devel
63
64 # turning this off - current focus is on deploying the sge box separately from myplc
65 # packaging is still broken, and we're exploring a ready-to-use distro on centos
66 # ALL += sge
67 # IN_BOOTSTRAPFS += sge
68
69 #
70 # kernel
71 #
72 # use a package name with srpm in it:
73 # so the source rpm is created by running make srpm in the codebase
74 #
75
76 kernel-MODULES := linux-2.6
77 kernel-SPEC := kernel-2.6.spec
78 kernel-BUILD-FROM-SRPM := yes
79 ifeq "$(HOSTARCH)" "i386"
80 kernel-RPMFLAGS:= --target i686
81 else
82 kernel-RPMFLAGS:= --target $(HOSTARCH)
83 endif
84 # this is useful for 2.6.22 but will not be needed anymore with 2.6.27
85 kernel-SPECVARS += iwlwifi=1 
86 kernel-SPECVARS += kernelconfig=planetlab
87 KERNELS += kernel
88
89 kernels: $(KERNELS)
90 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
91
92 ALL += $(KERNELS)
93 # this is to mark on which image a given rpm is supposed to go
94 IN_BOOTCD += $(KERNELS)
95 IN_VSERVER += $(KERNELS)
96 IN_BOOTSTRAPFS += $(KERNELS)
97
98 #
99 # ipfw: root context module, and slice companion
100 #
101 ipfwroot-MODULES := ipfw
102 ipfwroot-SPEC := planetlab/ipfwroot.spec
103 ipfwroot-DEPEND-DEVEL-RPMS += kernel-devel
104 ipfwroot-SPECVARS = kernel_version=$(kernel.rpm-version) \
105         kernel_release=$(kernel.rpm-release) \
106         kernel_arch=$(kernel.rpm-arch)
107 ALL += ipfwroot
108 IN_BOOTSTRAPFS += ipfwroot
109
110 ipfwslice-MODULES := ipfw
111 ipfwslice-SPEC := planetlab/ipfwslice.spec
112 ipfwslice-SPECVARS = kernel_version=$(kernel.rpm-version) \
113         kernel_release=$(kernel.rpm-release) \
114         kernel_arch=$(kernel.rpm-arch)
115 ALL += ipfwslice
116
117 #
118 # madwifi
119 #
120 madwifi-MODULES := madwifi
121 madwifi-SPEC := madwifi.spec
122 madwifi-BUILD-FROM-SRPM := yes
123 madwifi-DEPEND-DEVEL-RPMS += kernel-devel
124 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
125         kernel_release=$(kernel.rpm-release) \
126         kernel_arch=$(kernel.rpm-arch)
127 ALL += madwifi
128 IN_BOOTSTRAPFS += madwifi
129
130 #
131 # umts: root context stuff
132 #
133 umts-backend-MODULES := planetlab-umts-tools
134 umts-backend-SPEC := backend.spec
135 IN_BOOTSTRAPFS += umts-backend
136 ALL += umts-backend
137
138 #
139 # umts: slice tools
140 #
141 umts-frontend-MODULES := planetlab-umts-tools
142 umts-frontend-SPEC := frontend.spec
143 IN_VSERVER += umts-frontend
144 ALL += umts-frontend
145
146 #
147 # iptables
148 #
149 iptables-MODULES := iptables
150 iptables-SPEC := iptables.spec
151 iptables-BUILD-FROM-SRPM := yes 
152 iptables-DEPEND-DEVEL-RPMS += kernel-devel kernel-headers
153 ALL += iptables
154 IN_BOOTSTRAPFS += iptables
155
156 #
157 # util-vserver
158 #
159 util-vserver-MODULES := util-vserver
160 util-vserver-SPEC := util-vserver.spec
161 util-vserver-BUILD-FROM-SRPM := yes
162 util-vserver-RPMFLAGS:= --without dietlibc
163 ALL += util-vserver
164 IN_BOOTSTRAPFS += util-vserver
165
166 #
167 # util-vserver-pl
168 #
169 util-vserver-pl-MODULES := util-vserver-pl
170 util-vserver-pl-SPEC := util-vserver-pl.spec
171 util-vserver-pl-DEPEND-DEVEL-RPMS += util-vserver-lib util-vserver-devel util-vserver-core 
172 ALL += util-vserver-pl
173 IN_BOOTSTRAPFS += util-vserver-pl
174
175 #
176 # NodeUpdate
177 #
178 nodeupdate-MODULES := nodeupdate
179 nodeupdate-SPEC := NodeUpdate.spec
180 ALL += nodeupdate
181 IN_BOOTSTRAPFS += nodeupdate
182
183 #
184 # ipod
185 #
186 ipod-MODULES := PingOfDeath
187 ipod-SPEC := ipod.spec
188 ALL += ipod
189 IN_BOOTSTRAPFS += ipod
190
191 #
192 # NodeManager
193 #
194 nodemanager-MODULES := nodemanager
195 nodemanager-SPEC := NodeManager.spec
196 ALL += nodemanager
197 IN_BOOTSTRAPFS += nodemanager
198
199 #
200 # pl_sshd
201 #
202 sshd-MODULES := pl_sshd
203 sshd-SPEC := pl_sshd.spec
204 ALL += sshd
205 IN_BOOTSTRAPFS += sshd
206
207 #
208 # codemux: Port 80 demux
209 #
210 codemux-MODULES := codemux
211 codemux-SPEC   := codemux.spec
212 ALL += codemux
213 IN_BOOTSTRAPFS += codemux
214
215 #
216 # fprobe-ulog
217 #
218 fprobe-ulog-MODULES := fprobe-ulog
219 fprobe-ulog-SPEC := fprobe-ulog.spec
220 ALL += fprobe-ulog
221 IN_BOOTSTRAPFS += fprobe-ulog
222
223 #
224 # pf2slice
225 #
226 pf2slice-MODULES := pf2slice
227 pf2slice-SPEC := pf2slice.spec
228 ALL += pf2slice
229
230 #
231 # PlanetLab Mom: Cleans up your mess
232 #
233 mom-MODULES := Mom
234 mom-SPEC := pl_mom.spec
235 ALL += mom
236 IN_BOOTSTRAPFS += mom
237
238 #
239 # vsys
240 #
241 vsys-MODULES := vsys
242 vsys-SPEC := vsys.spec
243 vsys-DEVEL-RPMS += ocaml-ocamldoc
244 ifeq "$(local_inotify_tools)" "true"
245 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
246 endif
247 IN_BOOTSTRAPFS += vsys
248 ALL += vsys
249
250 #
251 # vsys-scripts
252 #
253 vsys-scripts-MODULES := vsys-scripts
254 vsys-scripts-SPEC := vsys-scripts.spec
255 IN_BOOTSTRAPFS += vsys-scripts
256 ALL += vsys-scripts
257
258 #
259 # plcapi
260 #
261 plcapi-MODULES := plcapi
262 plcapi-SPEC := PLCAPI.spec
263 ALL += plcapi
264 IN_MYPLC += plcapi
265
266 #
267 # drupal
268
269 drupal-MODULES := drupal
270 drupal-SPEC := drupal.spec
271 drupal-BUILD-FROM-SRPM := yes
272 ALL += drupal
273 IN_MYPLC += drupal
274
275 #
276 # use the plewww module instead
277 #
278 plewww-MODULES := plewww
279 plewww-SPEC := plewww.spec
280 ALL += plewww
281 IN_MYPLC += plewww
282
283 #
284 # www-register-wizard
285 #
286 www-register-wizard-MODULES := www-register-wizard
287 www-register-wizard-SPEC := www-register-wizard.spec
288 ALL += www-register-wizard
289 IN_MYPLC += www-register-wizard
290
291 #
292 # pcucontrol
293 #
294 pcucontrol-MODULES := pcucontrol
295 pcucontrol-SPEC := pcucontrol.spec
296 ALL += pcucontrol
297
298 #
299 # pyopenssl
300 #
301 pyopenssl-MODULES := pyopenssl
302 pyopenssl-SPEC := pyOpenSSL.spec
303 pyopenssl-BUILD-FROM-SRPM := yes
304 ALL += pyopenssl
305
306 #
307 # pyaspects
308 #
309 pyaspects-MODULES := pyaspects
310 pyaspects-SPEC := pyaspects.spec
311 pyaspects-BUILD-FROM-SRPM := yes
312 ALL += pyaspects
313
314 #
315 # nodeconfig
316 #
317 nodeconfig-MODULES := nodeconfig
318 nodeconfig-SPEC := nodeconfig.spec
319 ALL += nodeconfig
320 IN_MYPLC += nodeconfig
321
322 #
323 # bootmanager
324 #
325 bootmanager-MODULES := bootmanager
326 bootmanager-SPEC := bootmanager.spec
327 ALL += bootmanager
328 IN_MYPLC += bootmanager
329
330 #
331 # pypcilib : used in bootcd
332
333 pypcilib-MODULES := pypcilib
334 pypcilib-SPEC := pypcilib.spec
335 ALL += pypcilib
336 IN_BOOTCD += pypcilib
337
338 #
339 # pyplnet
340 #
341 pyplnet-MODULES := pyplnet
342 pyplnet-SPEC := pyplnet.spec
343 ALL += pyplnet
344 IN_BOOTSTRAPFS += pyplnet
345 IN_MYPLC += pyplnet
346 IN_BOOTCD += pyplnet
347
348 #
349 # OMF resource controller
350 #
351 omf-resctl-MODULES := omf
352 omf-resctl-SPEC := omf-resctl.spec
353 ALL += omf-resctl
354 IN_VSERVER += omf-resctl
355
356 #
357 # OMF exp controller
358 #
359 omf-expctl-MODULES := omf
360 omf-expctl-SPEC := omf-expctl.spec
361 ALL += omf-expctl
362
363 #
364 # OML measurement library
365 #
366 oml-MODULES := oml
367 oml-DEVEL-RPMS += sqlite-devel 
368 oml-SPEC := liboml.spec
369 ALL += oml
370
371 #
372 # bootcd
373 #
374 bootcd-MODULES := bootcd build
375 bootcd-SPEC := bootcd.spec
376 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
377 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
378 bootcd-RPMDATE := yes
379 ALL += bootcd
380 IN_MYPLC += bootcd
381
382 #
383 # vserver : reference image for slices
384 #
385 vserver-MODULES := vserver-reference build
386 vserver-SPEC := vserver-reference.spec
387 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
388 vserver-DEPEND-FILES := RPMS/yumgroups.xml
389 vserver-RPMDATE := yes
390 ALL += vserver
391 IN_BOOTSTRAPFS += vserver
392
393 #
394 # bootstrapfs
395 #
396 bootstrapfs-MODULES := bootstrapfs build
397 bootstrapfs-SPEC := bootstrapfs.spec
398 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
399 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
400 bootstrapfs-RPMDATE := yes
401 ALL += bootstrapfs
402 IN_MYPLC += bootstrapfs
403
404 #
405 # noderepo
406 #
407 # all rpms resulting from packages marked as being in bootstrapfs and vserver
408 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER),$($(package).rpms))
409 # replace space with +++ (specvars cannot deal with spaces)
410 SPACE=$(subst x, ,x)
411 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
412
413 noderepo-MODULES := bootstrapfs
414 noderepo-SPEC := noderepo.spec
415 # package requires all embedded packages
416 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER)
417 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
418 #export rpm list to the specfile
419 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
420 noderepo-RPMDATE := yes
421 ALL += noderepo
422 IN_MYPLC += noderepo
423
424 #
425 # slicerepo
426 #
427 # all rpms resulting from packages marked as being in vserver
428 SLICEREPO_RPMS = $(foreach package,$(IN_VSERVER),$($(package).rpms))
429 # replace space with +++ (specvars cannot deal with spaces)
430 SPACE=$(subst x, ,x)
431 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
432
433 slicerepo-MODULES := bootstrapfs
434 slicerepo-SPEC := slicerepo.spec
435 # package requires all embedded packages
436 slicerepo-DEPEND-PACKAGES := $(IN_VSERVER)
437 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
438 #export rpm list to the specfile
439 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
440 slicerepo-RPMDATE := yes
441 ALL += slicerepo
442
443 #
444 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
445 #
446 myplc-MODULES := myplc
447 myplc-SPEC := myplc.spec
448 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
449 ALL += myplc
450
451 # myplc-docs only contains docs for PLCAPI and NMAPI, but
452 # we still need to pull MyPLC, as it is where the specfile lies, 
453 # together with the utility script docbook2drupal.sh
454 myplc-docs-MODULES := myplc plcapi nodemanager 
455 myplc-docs-SPEC := myplc-docs.spec
456 ALL += myplc-docs
457
458 # using some other name than myplc-release, as this is a make target already
459 release-MODULES := myplc
460 release-SPEC := myplc-release.spec
461 release-RPMDATE := yes
462 ALL += release