trying out inotify-tools
[build.git] / planetlab.mk
1 #
2 # PlanetLab standard components list
3 # initial version from Mark Huang
4 # Mark Huang <mlhuang@cs.princeton.edu>
5 # Copyright (C) 2003-2006 The Trustees of Princeton University
6 # rewritten by Thierry Parmentelat - INRIA Sophia Antipolis
7 #
8 # $Id$
9 #
10 # see doc in Makefile  
11 #
12
13 #
14 # kernel
15 #
16 # use a package name with srpm in it:
17 # so the source rpm is created by running make srpm in the codebase
18 #
19
20 kernel-MODULES := linux-2.6
21 kernel-SPEC := kernel-2.6.spec
22 kernel-BUILD-FROM-SRPM := yes
23 ifeq "$(HOSTARCH)" "i386"
24 kernel-RPMFLAGS:= --target i686
25 else
26 kernel-RPMFLAGS:= --target $(HOSTARCH)
27 endif
28 KERNELS += kernel
29
30 kernels: $(KERNELS)
31 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
32
33 ALL += $(KERNELS)
34 # this is to mark on which image a given rpm is supposed to go
35 IN_BOOTCD += $(KERNELS)
36 IN_VSERVER += $(KERNELS)
37 IN_BOOTSTRAPFS += $(KERNELS)
38 # turns out myplc installs kernel-vserver
39 IN_MYPLC += $(KERNELS)
40
41 #
42 # madwifi
43 #
44 madwifi-MODULES := madwifi
45 madwifi-SPEC := madwifi.spec
46 madwifi-BUILD-FROM-SRPM := yes
47 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
48 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
49         kernel_release=$(kernel.rpm-release) \
50         kernel_arch=$(kernel.rpm-arch)
51 ALL += madwifi
52 IN_BOOTSTRAPFS += madwifi
53
54 #
55 # util-vserver
56 #
57 util-vserver-MODULES := util-vserver
58 util-vserver-SPEC := util-vserver.spec
59 util-vserver-RPMFLAGS:= --without dietlibc
60 ALL += util-vserver
61 IN_BOOTSTRAPFS += util-vserver
62
63 ## #
64 ## # libnl - local import
65 ## # the version available in centos 5.2 is too old
66 ## # we need either 1.1 or at least 1.0.pre6
67 ## #
68 ## libnl-MODULES := libnl
69 ## libnl-SPEC := libnl.spec
70 ## ALL += libnl
71 ## IN_BOOTSTRAPFS += libnl
72
73 #
74 # util-vserver-pl
75 #
76 util-vserver-pl-MODULES := util-vserver-pl
77 util-vserver-pl-SPEC := util-vserver-pl.spec
78 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core libnl-devel
79 ALL += util-vserver-pl
80 IN_BOOTSTRAPFS += util-vserver-pl
81
82 #
83 # NodeUpdate
84 #
85 nodeupdate-MODULES := NodeUpdate
86 nodeupdate-SPEC := NodeUpdate.spec
87 ALL += nodeupdate
88 IN_BOOTSTRAPFS += nodeupdate
89
90 #
91 # ipod
92 #
93 ipod-MODULES := PingOfDeath
94 ipod-SPEC := ipod.spec
95 ALL += ipod
96 IN_BOOTSTRAPFS += ipod
97
98 #
99 # NodeManager
100 #
101 nodemanager-MODULES := NodeManager
102 nodemanager-SPEC := NodeManager.spec
103 ALL += nodemanager
104 IN_BOOTSTRAPFS += nodemanager
105
106 #
107 # pl_sshd
108 #
109 sshd-MODULES := pl_sshd
110 sshd-SPEC := pl_sshd.spec
111 ALL += sshd
112 IN_BOOTSTRAPFS += sshd
113
114 #
115 # codemux: Port 80 demux
116 #
117 codemux-MODULES := CoDemux
118 codemux-SPEC   := codemux.spec
119 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
120 ALL += codemux
121 IN_BOOTSTRAPFS += codemux
122
123 #
124 # fprobe-ulog
125 #
126 fprobe-ulog-MODULES := fprobe-ulog
127 fprobe-ulog-SPEC := fprobe-ulog.spec
128 ALL += fprobe-ulog
129 IN_BOOTSTRAPFS += fprobe-ulog
130
131 #
132 # pf2slice
133 #
134 pf2slice-MODULES := pf2slice
135 pf2slice-SPEC := pf2slice.spec
136 ALL += pf2slice
137
138 #
139 # PlanetLab Mom: Cleans up your mess
140 #
141 mom-MODULES := Mom
142 mom-SPEC := pl_mom.spec
143 ALL += mom
144 IN_BOOTSTRAPFS += mom
145
146 #
147 # iptables
148 #
149 iptables-MODULES := iptables
150 iptables-SPEC := iptables.spec
151 iptables-DEPEND-DEVEL-RPMS := kernel-devel
152 ALL += iptables
153 IN_BOOTSTRAPFS += iptables
154
155 #
156 # iproute
157 #
158 iproute-MODULES := iproute2
159 iproute-SPEC := iproute.spec
160 ALL += iproute
161 IN_BOOTSTRAPFS += iproute
162 IN_VSERVER += iproute
163 IN_BOOTCD += iproute
164
165 #
166 # inotify-tools - local import
167 # could not find this in cen
168 #
169 inotify-tools-MODULES := inotify-tools
170 inotify-tools-SPEC := inotify-tools.spec
171 inotify-tools-BUILD-FROM-SRPM := yes
172 IN_BOOTSTRAPFS += inotify-tools
173 ALL += inotify-tools
174
175 #
176 # vsys
177 # should now work on f{8,9} , and even centos 5.2
178 #
179 vsys-MODULES := vsys
180 vsys-SPEC := vsys.spec
181 IN_BOOTSTRAPFS += vsys
182 ALL += vsys
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 := PLCWWW
196 PLCWWW-SPEC := PLCWWW.spec
197 ALL += PLCWWW
198 IN_MYPLC += PLCWWW
199
200 #
201 # monitor
202 #
203 monitor-MODULES := Monitor
204 monitor-SPEC := Monitor.spec
205 ALL += monitor
206 IN_BOOTSTRAPFS += monitor
207
208 #
209 # monitor-server
210 #
211 monitor-server-MODULES := Monitor
212 monitor-server-SPEC := monitor-server.spec
213 ALL += monitor-server
214
215 #
216 # nodeconfig
217 #
218 nodeconfig-MODULES := nodeconfig
219 nodeconfig-SPEC := nodeconfig.spec
220 ALL += nodeconfig
221 IN_MYPLC += nodeconfig
222
223 #
224 # bootmanager
225 #
226 bootmanager-MODULES := BootManager
227 bootmanager-SPEC := bootmanager.spec
228 ALL += bootmanager
229 IN_MYPLC += bootmanager
230
231 #
232 # pypcilib : used in bootcd
233
234 pypcilib-MODULES := pypcilib
235 pypcilib-SPEC := pypcilib.spec
236 ALL += pypcilib
237 IN_BOOTCD += pypcilib
238
239 #
240 # bootcd
241 #
242 bootcd-MODULES := BootCD build
243 bootcd-SPEC := bootcd.spec
244 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
245 # package has *some* dependencies, at least these ones
246 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
247 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
248 bootcd-RPMDATE := yes
249 ALL += bootcd
250 IN_MYPLC += bootcd
251
252 #
253 # vserver : reference image for slices
254 #
255 vserver-MODULES := VserverReference build
256 vserver-SPEC := vserver-reference.spec
257 # Package must be built as root
258 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
259 # this list is useful for manual builds only, since nightly builds 
260 # always redo all sequentially - try to keep updated
261 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
262 vserver-DEPEND-FILES := RPMS/yumgroups.xml
263 vserver-RPMDATE := yes
264 ALL += vserver
265 IN_BOOTSTRAPFS += vserver
266
267 #
268 # bootstrapfs
269 #
270 bootstrapfs-MODULES := BootstrapFS build
271 bootstrapfs-SPEC := bootstrapfs.spec
272 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
273 # package requires all regular packages
274 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
275 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
276 bootstrapfs-RPMDATE := yes
277 ALL += bootstrapfs
278 IN_MYPLC += bootstrapfs
279
280 #
281 # noderepo
282 #
283 # all rpms resulting from packages marked as being in bootstrapfs and vserver
284 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
285 # replace space with +++ (specvars cannot deal with spaces)
286 SPACE=$(subst x, ,x)
287 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
288
289 noderepo-MODULES := BootstrapFS 
290 noderepo-SPEC := noderepo.spec
291 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
292 # package requires all regular packages
293 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
294 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
295 #export rpm list to the specfile
296 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
297 noderepo-RPMDATE := yes
298 ALL += noderepo
299 IN_MYPLC += noderepo
300
301 #
302 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
303 #
304 myplc-native-MODULES := MyPLC build 
305 myplc-native-SPEC := myplc-native.spec
306 # Package must be built as root
307 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
308 myplc-native-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
309 ALL += myplc-native
310
311 ## #
312 ## # myplc : old-fashioned, chroot-based packaging
313 ## #
314 ## myplc-MODULES := MyPLC build
315 ## myplc-SPEC := myplc.spec
316 ## # Package must be built as root
317 ## myplc-RPMBUILD := sudo bash ./rpmbuild.sh
318 ## # myplc may require all packages
319 ## myplc-DEPEND-PACKAGES := $(IN_MYPLC)
320 ## myplc-DEPEND-FILES := RPMS/yumgroups.xml myplc-release
321 ## myplc-RPMDATE := yes
322 ## ALL += myplc
323
324 # myplc-docs only contains docs for PLCAPI and NMAPI, but
325 # we still need to pull MyPLC, as it is where the specfile lies, 
326 # together with the utility script docbook2drupal.sh
327 myplc-docs-MODULES := MyPLC PLCAPI NodeManager
328 myplc-docs-SPEC := myplc-docs.spec
329 ALL += myplc-docs