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