9e21653321fde2e6713df24594dad32716d24f81
[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-RPMBUILD := sudo bash ./rpmbuild.sh
115 proper-DEPENDDEVELS := libhttpd++
116 ALL += proper
117
118 #
119 # codemux: Port 80 demux
120 #
121 codemux-MODULES := CoDemux
122 codemux-SPEC   := codemux.spec
123 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
124 ALL += codemux
125
126 #
127 # ulogd
128 #
129 ulogd-MODULES := ulogd
130 ulogd-SPEC := ulogd.spec
131 ulogd-DEPENDDEVELS := $(kernel_package) proper
132 ALL += ulogd
133
134 #
135 # fprobe-ulog
136 #
137 fprobe-ulog-MODULES := fprobe-ulog
138 fprobe-ulog-SPEC := fprobe-ulog.spec
139 ALL += fprobe-ulog
140
141 #
142 # netflow
143 #
144 netflow-MODULES := PlanetFlow
145 netflow-SPEC := netflow.spec
146 ALL += 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
155 #
156 # iptables
157 #
158 iptables-MODULES := iptables
159 iptables-SPEC := iptables.spec
160 iptables-DEPENDDEVELS := $(kernel_package)
161 ALL += iptables
162
163 #
164 # iproute
165 #
166 iproute-MODULES := iproute2
167 iproute-SPEC := iproute.spec
168 ALL += iproute
169
170 #
171 # util-python
172 #
173 # [marc]    deprecate with proper
174 #
175 #util-python-MODULES := util-python
176 #util-python-SPEC := util-python.spec
177 #ALL += util-python
178
179 #
180 # vsys
181 #
182 vsys-MODULES := vsys
183 vsys-SPEC := vsys.spec
184 ifeq ($(DISTRO),"Fedora")
185 ifeq ($(RELEASE),7)
186 ALL += vsys
187 endif
188 endif
189
190 #
191 # PLCAPI
192 #
193 PLCAPI-MODULES := PLCAPI
194 PLCAPI-SPEC := PLCAPI.spec
195 ALL += PLCAPI
196
197 #
198 # PLCWWW
199 #
200 PLCWWW-MODULES := WWW
201 PLCWWW-SPEC := PLCWWW.spec
202 ALL += PLCWWW
203
204 #
205 # bootmanager
206 #
207 bootmanager-MODULES := BootManager build
208 bootmanager-SPEC := bootmanager.spec
209 # Package must be built as root
210 bootmanager-RPMBUILD := sudo bash ./rpmbuild.sh
211 ALL += bootmanager
212
213 #
214 # pypcilib : used in bootcd
215
216 pypcilib-MODULES := pypcilib
217 pypcilib-SPEC := pypcilib.spec
218 ALL += pypcilib
219
220 # copy the current list, so as to keep image-building rpms out
221 ALL-REGULARS := $(ALL)
222
223 #
224 # vserver : reference image for slices
225 #
226 vserver-MODULES := VserverReference build
227 vserver-SPEC := vserver-reference.spec
228 # Package must be built as root
229 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
230 # package requires all regular packages
231 vserver-DEPENDS := $(ALL-REGULARS)
232 vserver-DEPENDFILES := RPMS/yumgroups.xml
233 ALL += vserver
234
235 #
236 # bootcd
237 #
238 bootcd-MODULES := BootCD BootManager build
239 bootcd-SPEC := bootcd.spec
240 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
241 # package has *some* dependencies, at least these ones
242 bootcd-DEPENDS := $(ALL-REGULARS)
243 bootcd-DEPENDFILES := RPMS/yumgroups.xml
244 ALL += bootcd
245
246 #
247 # bootstrapfs
248 #
249 bootstrapfs-MODULES := BootstrapFS build
250 bootstrapfs-SPEC := bootstrapfs.spec
251 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
252 # package requires all regular packages
253 bootstrapfs-DEPENDS := $(ALL-REGULARS)
254 bootstrapfs-DEPENDFILES := RPMS/yumgroups.xml
255 ALL += bootstrapfs
256
257 #
258 # myplc : initial, chroot-based packaging
259 #
260 myplc-MODULES := MyPLC build
261 myplc-SPEC := myplc.spec
262 # Package must be built as root
263 myplc-RPMBUILD := sudo bash ./rpmbuild.sh
264 # myplc may require all packages
265 myplc-DEPENDS := $(filter-out vserver,$(ALL))
266 myplc-DEPENDFILES := RPMS/yumgroups.xml
267 ALL += myplc
268
269 #
270 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
271 #
272 myplc-native-MODULES := MyPLC build 
273 myplc-native-SPEC := myplc-native.spec
274 # Package must be built as root
275 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
276 # Thierry : don't depend on these at build-time
277 #myplc-native-DEPENDS := $(MyPLC-DEPENDS)
278 # Thierry : dunno about this one, let's stay safe
279 myplc-native-DEPENDFILES := $(MyPLC-DEPENDFILES)
280 #ALL += myplc-native
281
282 #
283 # MyPLC development environment : chroot-based 
284 #
285 myplc-devel-MODULES := MyPLC build 
286 myplc-devel-SPEC := myplc-devel.spec
287 myplc-devel-RPMBUILD := sudo bash ./rpmbuild.sh
288 #ALL += myplc-devel
289
290 #
291 # MyPLC native development environment
292 #
293 myplc-devel-native-MODULES := MyPLC
294 myplc-devel-native-SPEC := myplc-devel-native.spec
295 #ALL += myplc-devel-native