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