need more info from kernel to figure full kernel version
[build.git] / onelab.mk
1 #
2 # OneLab standard components list
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-patches
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 # kexec-tools
43 #
44 ifeq "$(DISTRO)" "Fedora"
45 ifeq "$(RELEASE)" "4"
46 kexec-tools-MODULES := kexec-tools
47 kexec-tools-SPEC := kexec-tools.spec
48 kexec-tools-CVSROOT := :pserver:anon@cvs.planet-lab.org:/cvs
49 kexec-tools-TAG := planetlab-4_1-rc2
50 ALL += kexec-tools
51 IN_BOOTCD += kexec-tools
52 endif
53 endif
54
55 #
56 # madwifi
57 #
58 madwifi-MODULES := madwifi
59 madwifi-SPEC := madwifi.spec
60 madwifi-BUILD-FROM-SRPM := yes
61 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
62 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
63         kernel_release=$(kernel.rpm-release) \
64         kernel_arch=$(kernel.rpm-arch)
65 ALL += madwifi
66 IN_BOOTSTRAPFS += madwifi
67
68 #
69 # wireless-tools
70
71 wireless-tools-MODULES := wireless-tools
72 wireless-tools-SPEC := wireless-tools.spec
73 wireless-tools-BUILD-FROM-SRPM := yes
74 ALL += wireless-tools
75 IN_BOOTSTRAPFS += wireless-tools
76
77
78 # nozomi
79
80
81 nozomi-MODULES := nozomi
82 nozomi-SPEC := nozomi.spec
83 nozomi-DEPEND-DEVEL-RPMS := kernel-devel
84 nozomi-SPECVARS = kernel_version=$(kernel.rpm-version) \
85         kernel_release=$(kernel.rpm-release) \
86         kernel_arch=$(kernel.rpm-arch)
87 IN_BOOTSTRAPFS += nozomi
88 ALL += nozomi
89
90 #
91 # comgt
92
93
94 comgt-MODULES := comgt
95 comgt-SPEC := comgt.spec
96 IN_BOOTSTRAPFS += comgt
97 ALL += comgt
98
99 #
100 # libnl
101 #
102 # [daniel]    wait for latest Fedora release 
103 # (03:29:46 PM) daniel_hozac: interfacing with the kernel directly when dealing with netlink was fugly, so... i had to find something nicer.
104 # (03:29:53 PM) daniel_hozac: the one in Fedora is lacking certain APIs i need.
105 #
106 libnl-MODULES := libnl
107 libnl-SPEC := libnl.spec
108 ALL += libnl
109
110 #
111 # util-vserver
112 #
113 util-vserver-MODULES := util-vserver
114 util-vserver-SPEC := util-vserver.spec
115 util-vserver-RPMFLAGS:= --without dietlibc
116 ALL += util-vserver
117 IN_BOOTSTRAPFS += util-vserver
118
119 #
120 # util-vserver-pl
121 #
122 util-vserver-pl-MODULES := util-vserver-pl
123 util-vserver-pl-SPEC := util-vserver-pl.spec
124 util-vserver-pl-DEPEND-DEVEL-RPMS := libnl libnl-devel util-vserver-lib util-vserver-devel util-vserver-core
125 ALL += util-vserver-pl
126 IN_BOOTSTRAPFS += util-vserver-pl
127
128 #
129 # NodeUpdate
130 #
131 NodeUpdate-MODULES := NodeUpdate
132 NodeUpdate-SPEC := NodeUpdate.spec
133 ALL += NodeUpdate
134 IN_BOOTSTRAPFS += NodeUpdate
135
136 #
137 # ipod
138 #
139 ipod-MODULES := PingOfDeath
140 ipod-SPEC := ipod.spec
141 ALL += ipod
142 IN_BOOTSTRAPFS += ipod
143
144 #
145 # NodeManager
146 #
147 NodeManager-MODULES := NodeManager
148 NodeManager-SPEC := NodeManager.spec
149 ALL += NodeManager
150 IN_BOOTSTRAPFS += NodeManager
151
152 #
153 # pl_sshd
154 #
155 pl_sshd-MODULES := pl_sshd
156 pl_sshd-SPEC := pl_sshd.spec
157 ALL += pl_sshd
158 IN_BOOTSTRAPFS += pl_sshd
159
160 #
161 # libhttpd++: 
162 #
163 # Deprecate when vsys takes over [sapan].
164 # keep in build for proper.
165 #
166 libhttpd-MODULES := libhttpd++
167 libhttpd-SPEC := libhttpd++.spec
168 ALL += libhttpd
169 IN_BOOTSTRAPFS += libhttpd
170
171 #
172 # proper: Privileged Operations Service
173 #
174 proper-MODULES := proper
175 proper-SPEC := proper.spec
176 proper-DEPEND-DEVEL-RPMS := libhttpd++-devel
177 ALL += proper
178 IN_BOOTSTRAPFS += proper
179
180 #
181 # codemux: Port 80 demux
182 #
183 codemux-MODULES := CoDemux
184 codemux-SPEC   := codemux.spec
185 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
186 ALL += codemux
187 IN_BOOTSTRAPFS += codemux
188
189 #
190 # ulogd
191 #
192 ulogd-MODULES := ulogd
193 ulogd-SPEC := ulogd.spec
194 ulogd-DEPEND-DEVEL-RPMS := kernel-devel proper-libs proper-devel
195 ALL += ulogd
196 IN_VSERVER += ulogd
197
198 #
199 # fprobe-ulog
200 #
201 fprobe-ulog-MODULES := fprobe-ulog
202 fprobe-ulog-SPEC := fprobe-ulog.spec
203 ALL += fprobe-ulog
204 IN_BOOTSTRAPFS += fprobe-ulog
205
206 #
207 # netflow
208 #
209 netflow-MODULES := PlanetFlow
210 netflow-SPEC := netflow.spec
211 ALL += netflow
212 IN_BOOTSTRAPFS += netflow
213
214 #
215 # PlanetLab Mom: Cleans up your mess
216 #
217 pl_mom-MODULES := Mom
218 pl_mom-SPEC := pl_mom.spec
219 ALL += pl_mom
220 IN_BOOTSTRAPFS += pl_mom
221
222 #
223 # iptables
224 #
225 iptables-MODULES := iptables
226 iptables-SPEC := iptables.spec
227 iptables-DEPEND-DEVEL-RPMS := kernel-devel
228 ALL += iptables
229 IN_BOOTSTRAPFS += iptables
230
231 #
232 # iproute
233 #
234 iproute-MODULES := iproute2
235 iproute-SPEC := iproute.spec
236 ALL += iproute
237 IN_BOOTSTRAPFS += iproute
238
239 #
240 # vsys
241 #
242 vsys-MODULES := vsys
243 vsys-SPEC := vsys.spec
244 ifeq "$(DISTRO)" "Fedora"
245 ifeq "$(RELEASE)" "7"
246 ALL += vsys
247 endif
248 ifeq "$(RELEASE)" "8"
249 ALL += vsys
250 endif
251 endif
252
253 #
254 # PLCAPI
255 #
256 PLCAPI-MODULES := PLCAPI
257 PLCAPI-SPEC := PLCAPI.spec
258 ALL += PLCAPI
259 IN_MYPLC += PLCAPI
260
261 #
262 # PLCWWW
263 #
264 PLCWWW-MODULES := WWW
265 PLCWWW-SPEC := PLCWWW.spec
266 ALL += PLCWWW
267 IN_MYPLC += PLCWWW
268
269 #
270 # bootmanager
271 #
272 bootmanager-MODULES := BootManager
273 bootmanager-SPEC := bootmanager.spec
274 ALL += bootmanager
275 IN_MYPLC += bootmanager
276
277 #
278 # pypcilib : used in bootcd
279
280 pypcilib-MODULES := pypcilib
281 pypcilib-SPEC := pypcilib.spec
282 ALL += pypcilib
283 IN_BOOTCD += pypcilib
284
285 #
286 # bootcd
287 #
288 bootcd-MODULES := BootCD build
289 bootcd-SPEC := bootcd.spec
290 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
291 # package has *some* dependencies, at least these ones
292 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
293 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
294 ALL += bootcd
295 IN_MYPLC += bootcd
296
297 #
298 # vserver : reference image for slices
299 #
300 vserver-MODULES := VserverReference build
301 vserver-SPEC := vserver-reference.spec
302 # Package must be built as root
303 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
304 # this list is useful for manual builds only, since nightly builds 
305 # always redo all sequentially - try to keep updated
306 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
307 vserver-DEPEND-FILES := RPMS/yumgroups.xml
308 ALL += vserver
309 IN_BOOTSTRAPFS := vserver
310
311 #
312 # bootstrapfs
313 #
314 bootstrapfs-MODULES := BootstrapFS build
315 bootstrapfs-SPEC := bootstrapfs.spec
316 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
317 # package requires all regular packages
318 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
319 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
320 ALL += bootstrapfs
321 IN_MYPLC += bootstrapfs
322
323 #
324 # myplc : initial, chroot-based packaging
325 #
326 myplc-MODULES := MyPLC build
327 myplc-SPEC := myplc.spec
328 # Package must be built as root
329 myplc-RPMBUILD := sudo bash ./rpmbuild.sh
330 # myplc may require all packages
331 myplc-DEPEND-PACKAGES := $(IN_MYPLC)
332 myplc-DEPEND-FILES := RPMS/yumgroups.xml myplc-release
333 ALL += myplc
334
335 #
336 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
337 #
338 myplc-native-MODULES := MyPLC build 
339 myplc-native-SPEC := myplc-native.spec
340 # Package must be built as root
341 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
342 # Thierry : don't depend on anything at build-time
343 #myplc-native-DEPEND-PACKAGES :=
344 # Thierry : dunno about this one, let's stay safe
345 myplc-native-DEPEND-FILES := myplc-release
346 ALL += myplc-native
347