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