3ac495d615ea3ef7678db83b6bb2e999013e295c
[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 # kernel
13 #
14 # until we are able to build the new kernel layout:
15 # use the old exploded-tree, 2.6.20-based, version on fc4, 6 & 7
16 # and the new one on f8 - that requires the build-id patch
17
18
19 # use a package name with srpm in it:
20 # in this case the srpm is created by running make srpm in the codebase
21 #
22
23 srpm-kernel-$(HOSTARCH)-MODULES := linux-patches
24 srpm-kernel-$(HOSTARCH)-SPEC := kernel-2.6-planetlab.spec
25 ifeq ($(HOSTARCH),i386)
26 srpm-kernel-$(HOSTARCH)-RPMFLAGS:= --target i686
27 else
28 srpm-kernel-$(HOSTARCH)-RPMFLAGS:= --target $(HOSTARCH)
29 endif
30 KERNELS += srpm-kernel-$(HOSTARCH)
31
32 #else
33 #kernel-$(HOSTARCH)-MODULES := linux-tree
34 #kernel-$(HOSTARCH)-SPEC := scripts/kernel-2.6-planetlab.spec
35 #ifeq ($(HOSTARCH),i386)
36 #kernel-$(HOSTARCH)-RPMFLAGS:= --target i686
37 #else
38 #kernel-$(HOSTARCH)-RPMFLAGS:= --target $(HOSTARCH)
39 #endif
40 #KERNELS += kernel-$(HOSTARCH)
41 #endif
42
43 kernel: $(KERNELS)
44 kernel-clean: $(foreach package,$(KERNELS),$(package)-clean)
45
46 ALL += $(KERNELS)
47
48 # the first kernel package defined here
49 kernel_package := $(word 1,$(KERNELS))
50
51 #
52 # libnl
53 #
54 # [daniel]    wait for latest Fedora release 
55 # (03:29:46 PM) daniel_hozac: interfacing with the kernel directly when dealing with netlink was fugly, so... i had to find something nicer.
56 # (03:29:53 PM) daniel_hozac: the one in Fedora is lacking certain APIs i need.
57 #
58 libnl-MODULES := libnl
59 libnl-SPEC := libnl.spec
60 ALL += libnl
61
62 #
63 # util-vserver
64 #
65 util-vserver-MODULES := util-vserver
66 util-vserver-SPEC := util-vserver.spec
67 util-vserver-RPMFLAGS:= --without dietlibc
68 util-vserver-DEPENDDEVELS := libnl
69 ALL += util-vserver
70
71 #
72 # NodeUpdate
73 #
74 NodeUpdate-MODULES := NodeUpdate
75 NodeUpdate-SPEC := NodeUpdate.spec
76 ALL += NodeUpdate
77
78 #
79 # ipod
80 #
81 PingOfDeath-MODULES := PingOfDeath
82 PingOfDeath-SPEC := ipod.spec
83 ALL += PingOfDeath
84
85 #
86 # NodeManager
87 #
88 NodeManager-MODULES := NodeManager
89 NodeManager-SPEC := NodeManager.spec
90 ALL += NodeManager
91
92 #
93 # pl_sshd
94 #
95 pl_sshd-MODULES := pl_sshd
96 pl_sshd-SPEC := pl_sshd.spec
97 ALL += pl_sshd
98
99 #
100 # libhttpd++: 
101 #
102 # Deprecate when vsys takes over [sapan].
103 # keep in build for proper.
104 #
105 libhttpd-MODULES := libhttpd++
106 libhttpd-SPEC := libhttpd++.spec
107 ALL += libhttpd
108
109 #
110 # proper: Privileged Operations Service
111 #
112 proper-MODULES := proper
113 proper-SPEC := proper.spec
114 proper-DEPENDDEVELS := libhttpd
115 ALL += proper
116
117 #
118 # codemux: Port 80 demux
119 #
120 codemux-MODULES := CoDemux
121 codemux-SPEC   := codemux.spec
122 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
123 ALL += codemux
124
125 #
126 # ulogd
127 #
128 ulogd-MODULES := ulogd
129 ulogd-SPEC := ulogd.spec
130 ulogd-DEPENDDEVELS := $(kernel_package) proper
131 ALL += ulogd
132
133 #
134 # fprobe-ulog
135 #
136 fprobe-ulog-MODULES := fprobe-ulog
137 fprobe-ulog-SPEC := fprobe-ulog.spec
138 ALL += fprobe-ulog
139
140 #
141 # netflow
142 #
143 netflow-MODULES := PlanetFlow
144 netflow-SPEC := netflow.spec
145 ALL += netflow
146
147 #
148 # PlanetLab Mom: Cleans up your mess
149 #
150 pl_mom-MODULES := Mom
151 pl_mom-SPEC := pl_mom.spec
152 ALL += pl_mom
153
154 #
155 # iptables
156 #
157 iptables-MODULES := iptables
158 iptables-SPEC := iptables.spec
159 iptables-DEPENDDEVELS := $(kernel_package)
160 ALL += iptables
161
162 #
163 # iproute
164 #
165 iproute-MODULES := iproute2
166 iproute-SPEC := iproute.spec
167 ALL += iproute
168
169 #
170 # util-python
171 #
172 # [marc]    deprecate with proper
173 #
174 #util-python-MODULES := util-python
175 #util-python-SPEC := util-python.spec
176 #ALL += util-python
177
178 #
179 # vsys
180 #
181 vsys-MODULES := vsys
182 vsys-SPEC := vsys.spec
183 ifeq ($(DISTRO),"Fedora")
184 ifeq ($(RELEASE),7)
185 ALL += vsys
186 endif
187 endif
188
189 #
190 # PLCAPI
191 #
192 PLCAPI-MODULES := PLCAPI
193 PLCAPI-SPEC := PLCAPI.spec
194 ALL += PLCAPI
195
196 #
197 # PLCWWW
198 #
199 PLCWWW-MODULES := WWW
200 PLCWWW-SPEC := PLCWWW.spec
201 ALL += PLCWWW
202
203 #
204 # bootmanager
205 #
206 bootmanager-MODULES := BootManager build
207 bootmanager-SPEC := bootmanager.spec
208 # Package must be built as root
209 bootmanager-RPMBUILD := sudo bash ./rpmbuild.sh
210 ALL += bootmanager
211
212 #
213 # pypcilib : used in bootcd
214
215 pypcilib-MODULES := pypcilib
216 pypcilib-SPEC := pypcilib.spec
217 ALL += pypcilib
218
219 # copy the current list, so as to keep image-building rpms out
220 ALL-REGULARS := $(ALL)
221
222 #
223 # vserver : reference image for slices
224 #
225 vserver-MODULES := VserverReference build
226 vserver-SPEC := vserver-reference.spec
227 # Package must be built as root
228 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
229 # package requires all regular packages
230 vserver-DEPENDS := $(ALL-REGULARS)
231 vserver-DEPENDFILES := RPMS/yumgroups.xml
232 ALL += vserver
233
234 #
235 # bootcd
236 #
237 bootcd-MODULES := BootCD BootManager build
238 bootcd-SPEC := bootcd.spec
239 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
240 # package has *some* dependencies, at least these ones
241 bootcd-DEPENDS := $(ALL-REGULARS)
242 bootcd-DEPENDFILES := RPMS/yumgroups.xml
243 ALL += bootcd
244
245 #
246 # bootstrapfs
247 #
248 bootstrapfs-MODULES := BootstrapFS build
249 bootstrapfs-SPEC := bootstrapfs.spec
250 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
251 # package requires all regular packages
252 bootstrapfs-DEPENDS := $(ALL-REGULARS)
253 bootstrapfs-DEPENDFILES := RPMS/yumgroups.xml
254 ALL += 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 := $(filter-out vserver,$(ALL))
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