4 # declare the packages to be built and their dependencies
5 # initial version from Mark Huang
6 # Mark Huang <mlhuang@cs.princeton.edu>
7 # Copyright (C) 2003-2006 The Trustees of Princeton University
8 # 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 # this is useful for 2.6.22 but will not be needed anymore with 2.6.27
29 kernel-SPECVARS := iwlwifi=1
33 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
36 # this is to mark on which image a given rpm is supposed to go
37 IN_BOOTCD += $(KERNELS)
38 IN_VSERVER += $(KERNELS)
39 IN_BOOTSTRAPFS += $(KERNELS)
42 # ipfw: root context module, and slice companion
44 ipfwroot-MODULES := ipfwsrc
45 ipfwroot-SPEC := planetlab/ipfwroot.spec
46 ipfwroot-DEPEND-DEVEL-RPMS := kernel-devel
47 ipfwroot-SPECVARS = kernel_version=$(kernel.rpm-version) \
48 kernel_release=$(kernel.rpm-release) \
49 kernel_arch=$(kernel.rpm-arch)
52 ipfwslice-MODULES := ipfwsrc
53 ipfwslice-SPEC := planetlab/ipfwslice.spec
54 ipfwslice-SPECVARS = kernel_version=$(kernel.rpm-version) \
55 kernel_release=$(kernel.rpm-release) \
56 kernel_arch=$(kernel.rpm-arch)
59 # this doesn't build on f12 - weird all right - I suspect gcc to be smarter but that needs investigation
60 # is madwifi still current anyway ? should we move to ath5k instead ?
61 #ifneq "$(DISTRONAME)" "f12"
65 madwifi-MODULES := madwifi
66 madwifi-SPEC := madwifi.spec
67 madwifi-BUILD-FROM-SRPM := yes
68 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
69 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
70 kernel_release=$(kernel.rpm-release) \
71 kernel_arch=$(kernel.rpm-arch)
73 IN_BOOTSTRAPFS += madwifi
79 nozomi-MODULES := nozomi
80 nozomi-SPEC := nozomi.spec
81 nozomi-DEPEND-DEVEL-RPMS := kernel-devel
82 nozomi-SPECVARS = kernel_version=$(kernel.rpm-version) \
83 kernel_release=$(kernel.rpm-release) \
84 kernel_arch=$(kernel.rpm-arch)
85 IN_BOOTSTRAPFS += nozomi
91 comgt-MODULES := comgt
92 comgt-SPEC := comgt.spec
93 IN_BOOTSTRAPFS += comgt
97 # umts: root context stuff
99 umts-backend-MODULES := planetlab-umts-tools
100 umts-backend-SPEC := backend.spec
101 IN_BOOTSTRAPFS += umts-backend
107 umts-frontend-MODULES := planetlab-umts-tools
108 umts-frontend-SPEC := frontend.spec
109 IN_VSERVER += umts-frontend
115 util-vserver-MODULES := util-vserver
116 util-vserver-SPEC := util-vserver.spec
117 util-vserver-RPMFLAGS:= --without dietlibc
119 IN_BOOTSTRAPFS += util-vserver
122 # libnl - local import
123 # we need either 1.1 or at least 1.0.pre6
124 # rebuild this on centos5 - see kexcludes in build.common
127 ifeq "$(DISTRONAME)" "centos5"
131 ifeq "$(local_libnl)" "true"
132 libnl-MODULES := libnl
133 libnl-SPEC := libnl.spec
134 libnl-BUILD-FROM-SRPM := yes
135 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
136 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
138 IN_BOOTSTRAPFS += libnl
144 util-vserver-pl-MODULES := util-vserver-pl
145 util-vserver-pl-SPEC := util-vserver-pl.spec
146 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
147 ifeq "$(local_libnl)" "true"
148 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
150 ALL += util-vserver-pl
151 IN_BOOTSTRAPFS += util-vserver-pl
156 nodeupdate-MODULES := NodeUpdate
157 nodeupdate-SPEC := NodeUpdate.spec
159 IN_BOOTSTRAPFS += nodeupdate
164 ipod-MODULES := PingOfDeath
165 ipod-SPEC := ipod.spec
167 IN_BOOTSTRAPFS += ipod
172 nodemanager-MODULES := NodeManager
173 nodemanager-SPEC := NodeManager.spec
175 IN_BOOTSTRAPFS += nodemanager
180 sshd-MODULES := pl_sshd
181 sshd-SPEC := pl_sshd.spec
183 IN_BOOTSTRAPFS += sshd
186 # codemux: Port 80 demux
188 codemux-MODULES := CoDemux
189 codemux-SPEC := codemux.spec
190 #codemux-RPMBUILD := bash ./rpmbuild.sh
192 IN_BOOTSTRAPFS += codemux
197 fprobe-ulog-MODULES := fprobe-ulog
198 fprobe-ulog-SPEC := fprobe-ulog.spec
200 IN_BOOTSTRAPFS += fprobe-ulog
205 pf2slice-MODULES := pf2slice
206 pf2slice-SPEC := pf2slice.spec
210 # PlanetLab Mom: Cleans up your mess
213 mom-SPEC := pl_mom.spec
215 IN_BOOTSTRAPFS += mom
220 iptables-MODULES := iptables
221 iptables-SPEC := iptables.spec
222 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
224 IN_BOOTSTRAPFS += iptables
229 iproute-MODULES := iproute2
230 iproute-SPEC := iproute.spec
232 IN_BOOTSTRAPFS += iproute
233 IN_VSERVER += iproute
237 # inotify-tools - local import
238 # rebuild this on centos5 (not found) - see kexcludes in build.common
240 local_inotify_tools=false
241 ifeq "$(DISTRONAME)" "centos5"
242 local_inotify_tools=true
245 ifeq "$(local_inotify_tools)" "true"
246 inotify-tools-MODULES := inotify-tools
247 inotify-tools-SPEC := inotify-tools.spec
248 inotify-tools-BUILD-FROM-SRPM := yes
249 IN_BOOTSTRAPFS += inotify-tools
257 vsys-SPEC := vsys.spec
258 ifeq "$(local_inotify_tools)" "true"
259 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
261 IN_BOOTSTRAPFS += vsys
267 vsys-scripts-MODULES := vsys-scripts
268 vsys-scripts-SPEC := vsys-scripts.spec
269 IN_BOOTSTRAPFS += vsys-scripts
275 plcapi-MODULES := PLCAPI
276 plcapi-SPEC := PLCAPI.spec
282 drupal-MODULES := drupal
283 drupal-SPEC := drupal.spec
284 drupal-BUILD-FROM-SRPM := yes
288 # use the plewww module instead
290 plewww-MODULES := PLEWWW
291 plewww-SPEC := plewww.spec
295 # www-register-wizard
297 www-register-wizard-MODULES := www-register-wizard
298 www-register-wizard-SPEC := www-register-wizard.spec
299 ALL += www-register-wizard
304 pcucontrol-MODULES := pcucontrol
305 pcucontrol-SPEC := pcucontrol.spec
311 monitor-MODULES := Monitor
312 monitor-SPEC := Monitor.spec
314 IN_BOOTSTRAPFS += monitor
319 plcrt-MODULES := PLCRT
320 plcrt-SPEC := plcrt.spec
326 zabbix-MODULES := Monitor
327 zabbix-SPEC := zabbix.spec
328 zabbix-BUILD-FROM-SRPM := yes
334 pyopenssl-MODULES := pyopenssl
335 pyopenssl-SPEC := pyOpenSSL.spec
336 pyopenssl-BUILD-FROM-SRPM := yes
341 # sfa - Slice Facility Architecture
350 nodeconfig-MODULES := nodeconfig
351 nodeconfig-SPEC := nodeconfig.spec
357 bootmanager-MODULES := BootManager
358 bootmanager-SPEC := bootmanager.spec
362 # pypcilib : used in bootcd
364 pypcilib-MODULES := pypcilib
365 pypcilib-SPEC := pypcilib.spec
367 IN_BOOTCD += pypcilib
372 pyplnet-MODULES := pyplnet
373 pyplnet-SPEC := pyplnet.spec
375 IN_BOOTSTRAPFS += pyplnet
381 bootcd-MODULES := BootCD build
382 bootcd-SPEC := bootcd.spec
383 bootcd-RPMBUILD := bash ./rpmbuild.sh
384 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
385 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
386 bootcd-RPMDATE := yes
390 # vserver : reference image for slices
392 vserver-MODULES := VserverReference build
393 vserver-SPEC := vserver-reference.spec
394 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
395 vserver-DEPEND-FILES := RPMS/yumgroups.xml
396 vserver-RPMDATE := yes
398 IN_BOOTSTRAPFS += vserver
403 bootstrapfs-MODULES := BootstrapFS build
404 bootstrapfs-SPEC := bootstrapfs.spec
405 bootstrapfs-RPMBUILD := bash ./rpmbuild.sh
406 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
407 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
408 bootstrapfs-RPMDATE := yes
414 # all rpms resulting from packages marked as being in bootstrapfs and vserver
415 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
416 # replace space with +++ (specvars cannot deal with spaces)
418 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
420 noderepo-MODULES := BootstrapFS
421 noderepo-SPEC := noderepo.spec
422 noderepo-RPMBUILD := bash ./rpmbuild.sh
423 # package requires all regular packages
424 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
425 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
426 #export rpm list to the specfile
427 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
428 noderepo-RPMDATE := yes
432 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
434 myplc-MODULES := MyPLC
435 myplc-SPEC := myplc.spec
436 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
439 # myplc-docs only contains docs for PLCAPI and NMAPI, but
440 # we still need to pull MyPLC, as it is where the specfile lies,
441 # together with the utility script docbook2drupal.sh
442 myplc-docs-MODULES := MyPLC PLCAPI NodeManager Monitor
443 myplc-docs-SPEC := myplc-docs.spec
446 # using some other name than myplc-release, as this is a make target already
447 release-MODULES := MyPLC
448 release-SPEC := myplc-release.spec
449 release-RPMDATE := yes