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