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