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