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 # 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)
40 # turns out myplc installs kernel-vserver
41 IN_MYPLC += $(KERNELS)
44 # ipfw: root context module, and slice companion
46 ipfwroot-MODULES := ipfwsrc
47 ipfwroot-SPEC := planetlab/ipfwroot.spec
48 ipfwroot-DEPEND-DEVEL-RPMS := kernel-devel
49 ipfwroot-SPECVARS = kernel_version=$(kernel.rpm-version) \
50 kernel_release=$(kernel.rpm-release) \
51 kernel_arch=$(kernel.rpm-arch)
54 ipfwslice-MODULES := ipfwsrc
55 ipfwslice-SPEC := planetlab/ipfwslice.spec
56 ipfwslice-SPECVARS = kernel_version=$(kernel.rpm-version) \
57 kernel_release=$(kernel.rpm-release) \
58 kernel_arch=$(kernel.rpm-arch)
64 madwifi-MODULES := madwifi
65 madwifi-SPEC := madwifi.spec
66 madwifi-BUILD-FROM-SRPM := yes
67 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
68 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
69 kernel_release=$(kernel.rpm-release) \
70 kernel_arch=$(kernel.rpm-arch)
72 IN_BOOTSTRAPFS += madwifi
77 nozomi-MODULES := nozomi
78 nozomi-SPEC := nozomi.spec
79 nozomi-DEPEND-DEVEL-RPMS := kernel-devel
80 nozomi-SPECVARS = kernel_version=$(kernel.rpm-version) \
81 kernel_release=$(kernel.rpm-release) \
82 kernel_arch=$(kernel.rpm-arch)
83 IN_BOOTSTRAPFS += nozomi
89 comgt-MODULES := comgt
90 comgt-SPEC := comgt.spec
91 IN_BOOTSTRAPFS += comgt
95 # umts: root context stuff
97 umts-backend-MODULES := planetlab-umts-tools
98 umts-backend-SPEC := backend.spec
99 IN_BOOTSTRAPFS += umts-backend
105 umts-frontend-MODULES := planetlab-umts-tools
106 umts-frontend-SPEC := frontend.spec
107 IN_VSERVER += umts-frontend
113 util-vserver-MODULES := util-vserver
114 util-vserver-SPEC := util-vserver.spec
115 util-vserver-RPMFLAGS:= --without dietlibc
117 IN_BOOTSTRAPFS += util-vserver
120 # libnl - local import
121 # we need either 1.1 or at least 1.0.pre6
122 # rebuild this on centos5 - see kexcludes in build.common
125 ifeq "$(DISTRONAME)" "centos5"
129 ifeq "$(local_libnl)" "true"
130 libnl-MODULES := libnl
131 libnl-SPEC := libnl.spec
132 libnl-BUILD-FROM-SRPM := yes
133 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
134 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
136 IN_BOOTSTRAPFS += libnl
142 util-vserver-pl-MODULES := util-vserver-pl
143 util-vserver-pl-SPEC := util-vserver-pl.spec
144 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
145 ifeq "$(local_libnl)" "true"
146 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
148 ALL += util-vserver-pl
149 IN_BOOTSTRAPFS += util-vserver-pl
154 nodeupdate-MODULES := NodeUpdate
155 nodeupdate-SPEC := NodeUpdate.spec
157 IN_BOOTSTRAPFS += nodeupdate
162 ipod-MODULES := PingOfDeath
163 ipod-SPEC := ipod.spec
165 IN_BOOTSTRAPFS += ipod
170 nodemanager-MODULES := NodeManager
171 nodemanager-SPEC := NodeManager.spec
173 IN_BOOTSTRAPFS += nodemanager
178 sshd-MODULES := pl_sshd
179 sshd-SPEC := pl_sshd.spec
181 IN_BOOTSTRAPFS += sshd
184 # codemux: Port 80 demux
186 codemux-MODULES := CoDemux
187 codemux-SPEC := codemux.spec
188 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
190 IN_BOOTSTRAPFS += codemux
195 fprobe-ulog-MODULES := fprobe-ulog
196 fprobe-ulog-SPEC := fprobe-ulog.spec
198 IN_BOOTSTRAPFS += fprobe-ulog
203 pf2slice-MODULES := pf2slice
204 pf2slice-SPEC := pf2slice.spec
208 # PlanetLab Mom: Cleans up your mess
211 mom-SPEC := pl_mom.spec
213 IN_BOOTSTRAPFS += mom
218 iptables-MODULES := iptables
219 iptables-SPEC := iptables.spec
220 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
222 IN_BOOTSTRAPFS += iptables
227 iproute-MODULES := iproute2
228 iproute-SPEC := iproute.spec
230 IN_BOOTSTRAPFS += iproute
231 IN_VSERVER += iproute
235 # inotify-tools - local import
236 # rebuild this on centos5 (not found) - see kexcludes in build.common
238 local_inotify_tools=false
239 ifeq "$(DISTRONAME)" "centos5"
240 local_inotify_tools=true
243 ifeq "$(local_inotify_tools)" "true"
244 inotify-tools-MODULES := inotify-tools
245 inotify-tools-SPEC := inotify-tools.spec
246 inotify-tools-BUILD-FROM-SRPM := yes
247 IN_BOOTSTRAPFS += inotify-tools
255 vsys-SPEC := vsys.spec
256 ifeq "$(local_inotify_tools)" "true"
257 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
259 IN_BOOTSTRAPFS += vsys
265 vsys-scripts-MODULES := vsys-scripts
266 vsys-scripts-SPEC := vsys-scripts.spec
267 IN_BOOTSTRAPFS += vsys-scripts
273 dummynet_image-MODULES := dummynet_image
274 dummynet_image-SPEC := dummynet_image.spec
275 IN_MYPLC += dummynet_image
276 ALL += dummynet_image
281 PLCAPI-MODULES := PLCAPI
282 PLCAPI-SPEC := PLCAPI.spec
289 drupal-MODULES := drupal
290 drupal-SPEC := drupal.spec
291 drupal-BUILD-FROM-SRPM := yes
296 # use the plewww module instead
298 plewww-MODULES := PLEWWW
299 plewww-SPEC := plewww.spec
304 # www-register-wizard
306 www-register-wizard-MODULES := www-register-wizard
307 www-register-wizard-SPEC := www-register-wizard.spec
308 ALL += www-register-wizard
309 IN_MYPLC += www-register-wizard
314 monitor-MODULES := Monitor
315 monitor-SPEC := Monitor.spec
317 IN_BOOTSTRAPFS += monitor
322 plcrt-MODULES := PLCRT
323 plcrt-SPEC := plcrt.spec
329 zabbix-MODULES := Monitor
330 zabbix-SPEC := zabbix.spec
331 zabbix-BUILD-FROM-SRPM := yes
337 pyopenssl-MODULES := pyopenssl
338 pyopenssl-SPEC := pyOpenSSL.spec
339 pyopenssl-BUILD-FROM-SRPM := yes
344 # sfa - Slice Facility Architecture
353 nodeconfig-MODULES := nodeconfig build
354 nodeconfig-SPEC := nodeconfig.spec
356 IN_MYPLC += nodeconfig
361 bootmanager-MODULES := BootManager
362 bootmanager-SPEC := bootmanager.spec
364 IN_MYPLC += bootmanager
367 # pypcilib : used in bootcd
369 pypcilib-MODULES := pypcilib
370 pypcilib-SPEC := pypcilib.spec
372 IN_BOOTCD += pypcilib
377 pyplnet-MODULES := pyplnet
378 pyplnet-SPEC := pyplnet.spec
380 IN_BOOTSTRAPFS += pyplnet
387 bootcd-MODULES := BootCD build
388 bootcd-SPEC := bootcd.spec
389 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
390 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
391 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
392 bootcd-RPMDATE := yes
397 # vserver : reference image for slices
399 vserver-MODULES := VserverReference build
400 vserver-SPEC := vserver-reference.spec
401 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
402 vserver-DEPEND-FILES := RPMS/yumgroups.xml
403 vserver-RPMDATE := yes
405 IN_BOOTSTRAPFS += vserver
410 bootstrapfs-MODULES := BootstrapFS build
411 bootstrapfs-SPEC := bootstrapfs.spec
412 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
413 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
414 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
415 bootstrapfs-RPMDATE := yes
417 IN_MYPLC += bootstrapfs
422 # all rpms resulting from packages marked as being in bootstrapfs and vserver
423 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
424 # replace space with +++ (specvars cannot deal with spaces)
426 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
428 noderepo-MODULES := BootstrapFS
429 noderepo-SPEC := noderepo.spec
430 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
431 # package requires all regular packages
432 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
433 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
434 #export rpm list to the specfile
435 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
436 noderepo-RPMDATE := yes
441 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
443 myplc-MODULES := MyPLC build
444 myplc-SPEC := myplc.spec
445 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
448 # myplc-docs only contains docs for PLCAPI and NMAPI, but
449 # we still need to pull MyPLC, as it is where the specfile lies,
450 # together with the utility script docbook2drupal.sh
451 myplc-docs-MODULES := MyPLC PLCAPI NodeManager Monitor
452 myplc-docs-SPEC := myplc-docs.spec
455 # using some other name than myplc-release, as this is a make target already
456 release-MODULES := MyPLC
457 release-SPEC := myplc-release.spec
458 release-RPMDATE := yes