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