Add dependency for util-vserver-0.30.216
[build.git] / planetlab.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 # $Id$
9 #
10 # see doc in Makefile  
11 #
12
13 #
14 # kernel
15 #
16 # use a package name with srpm in it:
17 # so the source rpm is created by running make srpm in the codebase
18 #
19
20 kernel-MODULES := linux-2.6
21 kernel-SPEC := kernel-2.6.spec
22 kernel-BUILD-FROM-SRPM := yes
23 ifeq "$(HOSTARCH)" "i386"
24 kernel-RPMFLAGS:= --target i686
25 else
26 kernel-RPMFLAGS:= --target $(HOSTARCH)
27 endif
28 KERNELS += kernel
29
30 kernels: $(KERNELS)
31 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
32
33 ALL += $(KERNELS)
34 # this is to mark on which image a given rpm is supposed to go
35 IN_BOOTCD += $(KERNELS)
36 IN_VSERVER += $(KERNELS)
37 IN_BOOTSTRAPFS += $(KERNELS)
38 # turns out myplc installs kernel-vserver
39 IN_MYPLC += $(KERNELS)
40
41 #
42 # madwifi
43 #
44 madwifi-MODULES := madwifi
45 madwifi-SPEC := madwifi.spec
46 madwifi-BUILD-FROM-SRPM := yes
47 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
48 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
49         kernel_release=$(kernel.rpm-release) \
50         kernel_arch=$(kernel.rpm-arch)
51 ALL += madwifi
52 IN_BOOTSTRAPFS += madwifi
53
54 #
55 # util-vserver
56 #
57 util-vserver-MODULES := util-vserver
58 util-vserver-SPEC := util-vserver.spec
59 # Dependencies for util-vserver-0.30.216
60 util-vserver-DEPEND-DEVEL-RPMS := ctags
61 util-vserver-RPMFLAGS:= --without dietlibc
62 ALL += util-vserver
63 IN_BOOTSTRAPFS += util-vserver
64
65 #
66 # libnl - local import
67 # we need either 1.1 or at least 1.0.pre6
68 # rebuild this on centos5 - see kexcludes in build.common
69 #
70 local_libnl=false
71 ifeq "$(DISTRONAME)" "centos5"
72 local_libnl=true
73 endif
74
75 ifeq "$(local_libnl)" "true"
76 libnl-MODULES := libnl
77 libnl-SPEC := libnl.spec
78 libnl-BUILD-FROM-SRPM := yes
79 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
80 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
81 ALL += libnl
82 IN_BOOTSTRAPFS += libnl
83 endif
84
85 #
86 # util-vserver-pl
87 #
88 util-vserver-pl-MODULES := util-vserver-pl
89 util-vserver-pl-SPEC := util-vserver-pl.spec
90 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core 
91 ifeq "$(local_libnl)" "true"
92 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
93 endif
94 ALL += util-vserver-pl
95 IN_BOOTSTRAPFS += util-vserver-pl
96
97 #
98 # NodeUpdate
99 #
100 nodeupdate-MODULES := NodeUpdate
101 nodeupdate-SPEC := NodeUpdate.spec
102 ALL += nodeupdate
103 IN_BOOTSTRAPFS += nodeupdate
104
105 #
106 # ipod
107 #
108 ipod-MODULES := PingOfDeath
109 ipod-SPEC := ipod.spec
110 ALL += ipod
111 IN_BOOTSTRAPFS += ipod
112
113 #
114 # NodeManager
115 #
116 nodemanager-MODULES := NodeManager
117 nodemanager-SPEC := NodeManager.spec
118 ALL += nodemanager
119 IN_BOOTSTRAPFS += nodemanager
120
121 #
122 # pl_sshd
123 #
124 sshd-MODULES := pl_sshd
125 sshd-SPEC := pl_sshd.spec
126 ALL += sshd
127 IN_BOOTSTRAPFS += sshd
128
129 #
130 # codemux: Port 80 demux
131 #
132 codemux-MODULES := CoDemux
133 codemux-SPEC   := codemux.spec
134 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
135 ALL += codemux
136 IN_BOOTSTRAPFS += codemux
137
138 #
139 # fprobe-ulog
140 #
141 fprobe-ulog-MODULES := fprobe-ulog
142 fprobe-ulog-SPEC := fprobe-ulog.spec
143 ALL += fprobe-ulog
144 IN_BOOTSTRAPFS += fprobe-ulog
145
146 #
147 # pf2slice
148 #
149 pf2slice-MODULES := pf2slice
150 pf2slice-SPEC := pf2slice.spec
151 ALL += pf2slice
152
153 #
154 # PlanetLab Mom: Cleans up your mess
155 #
156 mom-MODULES := Mom
157 mom-SPEC := pl_mom.spec
158 ALL += mom
159 IN_BOOTSTRAPFS += mom
160
161 #
162 # iptables
163 #
164 iptables-MODULES := iptables
165 iptables-SPEC := iptables.spec
166 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
167 ALL += iptables
168 IN_BOOTSTRAPFS += iptables
169
170 #
171 # iproute
172 #
173 iproute-MODULES := iproute2
174 iproute-SPEC := iproute.spec
175 ALL += iproute
176 IN_BOOTSTRAPFS += iproute
177 IN_VSERVER += iproute
178 IN_BOOTCD += iproute
179
180 #
181 # inotify-tools - local import
182 # rebuild this on centos5 (not found) - see kexcludes in build.common
183 #
184 local_inotify_tools=false
185 ifeq "$(DISTRONAME)" "centos5"
186 local_inotify_tools=true
187 endif
188
189 ifeq "$(local_inotify_tools)" "true"
190 inotify-tools-MODULES := inotify-tools
191 inotify-tools-SPEC := inotify-tools.spec
192 inotify-tools-BUILD-FROM-SRPM := yes
193 IN_BOOTSTRAPFS += inotify-tools
194 ALL += inotify-tools
195 endif
196
197 #
198 # vsys
199 #
200 vsys-MODULES := vsys
201 vsys-SPEC := vsys.spec
202 ifeq "$(local_inotify_tools)" "true"
203 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
204 endif
205 IN_BOOTSTRAPFS += vsys
206 ALL += vsys
207
208 #
209 # vsys-scripts
210 #
211 vsys-scripts-MODULES := vsys-scripts
212 vsys-scripts-SPEC := vsys-scripts.spec
213 IN_BOOTSTRAPFS += vsys-scripts
214 ALL += vsys-scripts
215
216 #
217 # PLCAPI
218 #
219 PLCAPI-MODULES := PLCAPI
220 PLCAPI-SPEC := PLCAPI.spec
221 ALL += PLCAPI
222 IN_MYPLC += PLCAPI
223
224 #
225 # drupal
226
227 drupal-MODULES := drupal
228 drupal-SPEC := drupal.spec
229 drupal-BUILD-FROM-SRPM := yes
230 ALL += drupal
231 IN_MYPLC += drupal
232
233 #
234 # use the plewww module instead
235 #
236 plewww-MODULES := PLEWWW
237 plewww-SPEC := plewww.spec
238 ALL += plewww
239 IN_MYPLC += plewww
240
241 #
242 # www-register-wizard
243 #
244 www-register-wizard-MODULES := www-register-wizard
245 www-register-wizard-SPEC := www-register-wizard.spec
246 ALL += www-register-wizard
247 IN_MYPLC += www-register-wizard
248
249 #
250 # monitor
251 #
252 monitor-MODULES := Monitor
253 monitor-SPEC := Monitor.spec
254 ALL += monitor
255 IN_BOOTSTRAPFS += monitor
256
257 #
258 # PLC RT
259 #
260 plcrt-MODULES := PLCRT
261 plcrt-SPEC := plcrt.spec
262 ALL += plcrt
263
264 #
265 # zabbix
266 #
267 zabbix-MODULES := Monitor
268 zabbix-SPEC := zabbix.spec
269 zabbix-BUILD-FROM-SRPM := yes
270 ALL += zabbix
271
272 #
273 # pyopenssl
274 #
275 pyopenssl-MODULES := pyopenssl
276 pyopenssl-SPEC := pyOpenSSL.spec
277 pyopenssl-BUILD-FROM-SRPM := yes
278 ALL += pyopenssl
279
280
281 #
282 # sfa - Slice Facility Architecture
283 #
284 sfa-MODULES := sfa
285 sfa-SPEC := sfa.spec
286 ALL += sfa
287
288 #
289 # nodeconfig
290 #
291 nodeconfig-MODULES := nodeconfig build
292 nodeconfig-SPEC := nodeconfig.spec
293 ALL += nodeconfig
294 IN_MYPLC += nodeconfig
295
296 #
297 # bootmanager
298 #
299 bootmanager-MODULES := BootManager
300 bootmanager-SPEC := bootmanager.spec
301 ALL += bootmanager
302 IN_MYPLC += bootmanager
303
304 #
305 # pypcilib : used in bootcd
306
307 pypcilib-MODULES := pypcilib
308 pypcilib-SPEC := pypcilib.spec
309 ALL += pypcilib
310 IN_BOOTCD += pypcilib
311
312 #
313 # pyplnet
314 #
315 pyplnet-MODULES := pyplnet
316 pyplnet-SPEC := pyplnet.spec
317 ALL += pyplnet
318 IN_BOOTSTRAPFS += pyplnet
319 IN_MYPLC += pyplnet
320 IN_BOOTCD += pyplnet
321
322 #
323 # bootcd
324 #
325 bootcd-MODULES := BootCD build
326 bootcd-SPEC := bootcd.spec
327 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
328 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
329 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
330 bootcd-RPMDATE := yes
331 ALL += bootcd
332 IN_MYPLC += bootcd
333
334 #
335 # vserver : reference image for slices
336 #
337 vserver-MODULES := VserverReference build
338 vserver-SPEC := vserver-reference.spec
339 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
340 vserver-DEPEND-FILES := RPMS/yumgroups.xml
341 vserver-RPMDATE := yes
342 ALL += vserver
343 IN_BOOTSTRAPFS += vserver
344
345 #
346 # bootstrapfs
347 #
348 bootstrapfs-MODULES := BootstrapFS build
349 bootstrapfs-SPEC := bootstrapfs.spec
350 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
351 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
352 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
353 bootstrapfs-RPMDATE := yes
354 ALL += bootstrapfs
355 IN_MYPLC += bootstrapfs
356
357 #
358 # noderepo
359 #
360 # all rpms resulting from packages marked as being in bootstrapfs and vserver
361 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
362 # replace space with +++ (specvars cannot deal with spaces)
363 SPACE=$(subst x, ,x)
364 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
365
366 noderepo-MODULES := BootstrapFS 
367 noderepo-SPEC := noderepo.spec
368 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
369 # package requires all regular packages
370 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
371 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
372 #export rpm list to the specfile
373 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
374 noderepo-RPMDATE := yes
375 ALL += noderepo
376 IN_MYPLC += noderepo
377
378 #
379 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
380 #
381 myplc-MODULES := MyPLC build 
382 myplc-SPEC := myplc.spec
383 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
384 ALL += myplc
385
386 # myplc-docs only contains docs for PLCAPI and NMAPI, but
387 # we still need to pull MyPLC, as it is where the specfile lies, 
388 # together with the utility script docbook2drupal.sh
389 myplc-docs-MODULES := MyPLC PLCAPI NodeManager Monitor
390 myplc-docs-SPEC := myplc-docs.spec
391 ALL += myplc-docs
392
393 # using some other name than myplc-release, as this is a make target already
394 release-MODULES := MyPLC
395 release-SPEC := myplc-release.spec
396 release-RPMDATE := yes
397 ALL += release
398