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