2 # declare the packages to be built and their dependencies
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
16 # use a package name with srpm in it:
17 # so the source rpm is created by running make srpm in the codebase
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
26 kernel-RPMFLAGS:= --target $(HOSTARCH)
28 kernel-SPECVARS := iwlwifi=1
32 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
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)
45 madwifi-MODULES := madwifi
46 madwifi-SPEC := madwifi.spec
47 madwifi-BUILD-FROM-SRPM := yes
48 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
49 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
50 kernel_release=$(kernel.rpm-release) \
51 kernel_arch=$(kernel.rpm-arch)
53 IN_BOOTSTRAPFS += madwifi
58 nozomi-MODULES := nozomi
59 nozomi-SPEC := nozomi.spec
60 nozomi-DEPEND-DEVEL-RPMS := kernel-devel
61 nozomi-SPECVARS = kernel_version=$(kernel.rpm-version) \
62 kernel_release=$(kernel.rpm-release) \
63 kernel_arch=$(kernel.rpm-arch)
64 IN_BOOTSTRAPFS += nozomi
70 comgt-MODULES := comgt
71 comgt-SPEC := comgt.spec
72 IN_BOOTSTRAPFS += comgt
78 util-vserver-MODULES := util-vserver
79 util-vserver-SPEC := util-vserver.spec
80 util-vserver-RPMFLAGS:= --without dietlibc
82 IN_BOOTSTRAPFS += util-vserver
85 # libnl - local import
86 # we need either 1.1 or at least 1.0.pre6
87 # rebuild this on centos5 - see kexcludes in build.common
90 ifeq "$(DISTRONAME)" "centos5"
94 ifeq "$(local_libnl)" "true"
95 libnl-MODULES := libnl
96 libnl-SPEC := libnl.spec
97 libnl-BUILD-FROM-SRPM := yes
99 IN_BOOTSTRAPFS += libnl
105 util-vserver-pl-MODULES := util-vserver-pl
106 util-vserver-pl-SPEC := util-vserver-pl.spec
107 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
108 ifeq "$(local_libnl)" "true"
109 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
111 ALL += util-vserver-pl
112 IN_BOOTSTRAPFS += util-vserver-pl
117 nodeupdate-MODULES := NodeUpdate
118 nodeupdate-SPEC := NodeUpdate.spec
120 IN_BOOTSTRAPFS += nodeupdate
125 ipod-MODULES := PingOfDeath
126 ipod-SPEC := ipod.spec
128 IN_BOOTSTRAPFS += ipod
133 nodemanager-MODULES := NodeManager
134 nodemanager-SPEC := NodeManager.spec
136 IN_BOOTSTRAPFS += nodemanager
141 sshd-MODULES := pl_sshd
142 sshd-SPEC := pl_sshd.spec
144 IN_BOOTSTRAPFS += sshd
147 # codemux: Port 80 demux
149 codemux-MODULES := CoDemux
150 codemux-SPEC := codemux.spec
151 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
153 IN_BOOTSTRAPFS += codemux
158 fprobe-ulog-MODULES := fprobe-ulog
159 fprobe-ulog-SPEC := fprobe-ulog.spec
161 IN_BOOTSTRAPFS += fprobe-ulog
166 pf2slice-MODULES := pf2slice
167 pf2slice-SPEC := pf2slice.spec
171 # PlanetLab Mom: Cleans up your mess
174 mom-SPEC := pl_mom.spec
176 IN_BOOTSTRAPFS += mom
181 iptables-MODULES := iptables
182 iptables-SPEC := iptables.spec
183 iptables-DEPEND-DEVEL-RPMS := kernel-devel
185 IN_BOOTSTRAPFS += iptables
190 iproute-MODULES := iproute2
191 iproute-SPEC := iproute.spec
193 IN_BOOTSTRAPFS += iproute
194 IN_VSERVER += iproute
198 # inotify-tools - local import
199 # rebuild this on centos5 (not found) - see kexcludes in build.common
201 local_inotify_tools=false
202 ifeq "$(DISTRONAME)" "centos5"
203 local_inotify_tools=true
206 ifeq "$(local_inotify_tools)" "true"
207 inotify-tools-MODULES := inotify-tools
208 inotify-tools-SPEC := inotify-tools.spec
209 inotify-tools-BUILD-FROM-SRPM := yes
210 IN_BOOTSTRAPFS += inotify-tools
218 vsys-SPEC := vsys.spec
219 ifeq "$(local_inotify_tools)" "true"
220 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
222 IN_BOOTSTRAPFS += vsys
228 dummynet_image-MODULES := dummynet_image
229 dummynet_image-SPEC := dummynet_image.spec
230 IN_MYPLC += dummynet_image
231 ALL += dummynet_image
236 PLCAPI-MODULES := PLCAPI
237 PLCAPI-SPEC := PLCAPI.spec
244 PLCWWW-MODULES := PLCWWW
245 PLCWWW-SPEC := PLCWWW.spec
252 monitor-MODULES := Monitor
253 monitor-SPEC := Monitor.spec
255 IN_BOOTSTRAPFS += monitor
260 monitor-server-MODULES := Monitor
261 monitor-server-SPEC := monitor-server.spec
262 ALL += monitor-server
267 nodeconfig-MODULES := nodeconfig build
268 nodeconfig-SPEC := nodeconfig.spec
270 IN_MYPLC += nodeconfig
275 bootmanager-MODULES := BootManager
276 bootmanager-SPEC := bootmanager.spec
278 IN_MYPLC += bootmanager
281 # pypcilib : used in bootcd
283 pypcilib-MODULES := pypcilib
284 pypcilib-SPEC := pypcilib.spec
286 IN_BOOTCD += pypcilib
291 pyplnet-MODULES := pyplnet
292 pyplnet-SPEC := pyplnet.spec
294 IN_BOOTSTRAPFS += pyplnet
301 bootcd-MODULES := BootCD build
302 bootcd-SPEC := bootcd.spec
303 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
304 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
305 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
306 bootcd-RPMDATE := yes
311 # vserver : reference image for slices
313 vserver-MODULES := VserverReference build
314 vserver-SPEC := vserver-reference.spec
315 # Package must be built as root
316 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
317 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
318 vserver-DEPEND-FILES := RPMS/yumgroups.xml
319 vserver-RPMDATE := yes
321 IN_BOOTSTRAPFS += vserver
326 bootstrapfs-MODULES := BootstrapFS build
327 bootstrapfs-SPEC := bootstrapfs.spec
328 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
329 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
330 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
331 bootstrapfs-RPMDATE := yes
333 IN_MYPLC += bootstrapfs
338 # all rpms resulting from packages marked as being in bootstrapfs and vserver
339 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
340 # replace space with +++ (specvars cannot deal with spaces)
342 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
344 noderepo-MODULES := BootstrapFS
345 noderepo-SPEC := noderepo.spec
346 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
347 # package requires all regular packages
348 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
349 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
350 #export rpm list to the specfile
351 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
352 noderepo-RPMDATE := yes
357 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
359 myplc-native-MODULES := MyPLC build
360 myplc-native-SPEC := myplc-native.spec
361 # Package must be built as root
362 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
363 myplc-native-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
367 ## # myplc : old-fashioned, chroot-based packaging
369 ## myplc-MODULES := MyPLC build
370 ## myplc-SPEC := myplc.spec
371 ## # Package must be built as root
372 ## myplc-RPMBUILD := sudo bash ./rpmbuild.sh
373 ## # myplc may require all packages
374 ## myplc-DEPEND-PACKAGES := $(IN_MYPLC)
375 ## myplc-DEPEND-FILES := RPMS/yumgroups.xml myplc-release
376 ## myplc-RPMDATE := yes
379 # myplc-docs only contains docs for PLCAPI and NMAPI, but
380 # we still need to pull MyPLC, as it is where the specfile lies,
381 # together with the utility script docbook2drupal.sh
382 myplc-docs-MODULES := MyPLC PLCAPI NodeManager
383 myplc-docs-SPEC := myplc-docs.spec
386 # using some other name than myplc-release, as this is a make target already
387 release-MODULES := MyPLC
388 release-SPEC := myplc-release.spec
389 release-RPMDATE := yes