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
8 # $Id: planetlab.mk 14230 2009-07-03 00:58:17Z thierry $
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)
31 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
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)
42 # igb : Intel gigabit ethernet driver
45 # using some other name than myplc-release, as this is a make target already
48 ifeq "$(HOSTARCH)" "i386"
49 igb-RPMFLAGS:= --target i686
51 igb-RPMFLAGS:= --target $(HOSTARCH)
53 igb-DEPEND-DEVEL-RPMS := kernel-devel
62 madwifi-MODULES := madwifi
63 madwifi-SPEC := madwifi.spec
64 madwifi-BUILD-FROM-SRPM := yes
65 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
66 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
67 kernel_release=$(kernel.rpm-release) \
68 kernel_arch=$(kernel.rpm-arch)
70 #IN_BOOTSTRAPFS += madwifi
75 util-vserver-MODULES := util-vserver
76 util-vserver-SPEC := util-vserver.spec
77 util-vserver-RPMFLAGS:= --without dietlibc
79 IN_BOOTSTRAPFS += util-vserver
82 # libnl - local import
83 # we need either 1.1 or at least 1.0.pre6
84 # rebuild this on centos5 - see kexcludes in build.common
87 ifeq "$(DISTRONAME)" "centos5"
91 ifeq "$(local_libnl)" "true"
92 libnl-MODULES := libnl
93 libnl-SPEC := libnl.spec
94 libnl-BUILD-FROM-SRPM := yes
95 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
96 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
98 IN_BOOTSTRAPFS += libnl
104 util-vserver-pl-MODULES := util-vserver-pl
105 util-vserver-pl-SPEC := util-vserver-pl.spec
106 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
107 ifeq "$(local_libnl)" "true"
108 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
110 ALL += util-vserver-pl
111 IN_BOOTSTRAPFS += util-vserver-pl
116 nodeupdate-MODULES := NodeUpdate
117 nodeupdate-SPEC := NodeUpdate.spec
119 IN_BOOTSTRAPFS += nodeupdate
124 ipod-MODULES := PingOfDeath
125 ipod-SPEC := ipod.spec
127 IN_BOOTSTRAPFS += ipod
132 nodemanager-MODULES := NodeManager
133 nodemanager-SPEC := NodeManager.spec
135 IN_BOOTSTRAPFS += nodemanager
140 sshd-MODULES := pl_sshd
141 sshd-SPEC := pl_sshd.spec
143 #IN_BOOTSTRAPFS += sshd
146 # codemux: Port 80 demux
148 codemux-MODULES := CoDemux
149 codemux-SPEC := codemux.spec
150 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
152 IN_BOOTSTRAPFS += codemux
157 fprobe-ulog-MODULES := fprobe-ulog
158 fprobe-ulog-SPEC := fprobe-ulog.spec
160 IN_BOOTSTRAPFS += fprobe-ulog
165 pf2slice-MODULES := pf2slice
166 pf2slice-SPEC := pf2slice.spec
170 # PlanetLab Mom: Cleans up your mess
173 mom-SPEC := pl_mom.spec
175 IN_BOOTSTRAPFS += mom
180 iptables-MODULES := iptables
181 iptables-SPEC := iptables.spec
182 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
184 IN_BOOTSTRAPFS += iptables
189 iproute-MODULES := iproute2
190 iproute-SPEC := iproute.spec
192 IN_BOOTSTRAPFS += iproute
193 IN_VSERVER += iproute
197 # inotify-tools - local import
198 # rebuild this on centos5 (not found) - see kexcludes in build.common
200 local_inotify_tools=false
201 ifeq "$(DISTRONAME)" "centos5"
202 local_inotify_tools=true
205 ifeq "$(local_inotify_tools)" "true"
206 inotify-tools-MODULES := inotify-tools
207 inotify-tools-SPEC := inotify-tools.spec
208 inotify-tools-BUILD-FROM-SRPM := yes
209 IN_BOOTSTRAPFS += inotify-tools
217 vsys-SPEC := vsys.spec
218 ifeq "$(local_inotify_tools)" "true"
219 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
221 IN_BOOTSTRAPFS += vsys
227 vsys-scripts-MODULES := vsys-scripts
228 vsys-scripts-SPEC := vsys-scripts.spec
229 IN_BOOTSTRAPFS += vsys-scripts
235 PLCAPI-MODULES := PLCAPI
236 PLCAPI-SPEC := PLCAPI.spec
243 drupal-MODULES := drupal
244 drupal-SPEC := drupal.spec
245 drupal-BUILD-FROM-SRPM := yes
250 # use the plewww module instead
252 plewww-MODULES := PLEWWW
253 plewww-SPEC := plewww.spec
258 # www-register-wizard
260 www-register-wizard-MODULES := www-register-wizard
261 www-register-wizard-SPEC := www-register-wizard.spec
262 ALL += www-register-wizard
263 IN_MYPLC += www-register-wizard
268 monitor-MODULES := Monitor
269 monitor-SPEC := Monitor.spec
271 IN_BOOTSTRAPFS += monitor
276 plcrt-MODULES := PLCRT
277 plcrt-SPEC := plcrt.spec
283 zabbix-MODULES := Monitor
284 zabbix-SPEC := zabbix.spec
285 zabbix-BUILD-FROM-SRPM := yes
291 pyopenssl-MODULES := pyopenssl
292 pyopenssl-SPEC := pyOpenSSL.spec
293 pyopenssl-BUILD-FROM-SRPM := yes
298 # sfa - Slice Facility Architecture - fka geniwrapper
307 nodeconfig-MODULES := nodeconfig build
308 nodeconfig-SPEC := nodeconfig.spec
310 IN_MYPLC += nodeconfig
315 bootmanager-MODULES := BootManager
316 bootmanager-SPEC := bootmanager.spec
318 IN_MYPLC += bootmanager
321 # pypcilib : used in bootcd
323 pypcilib-MODULES := pypcilib
324 pypcilib-SPEC := pypcilib.spec
326 IN_BOOTCD += pypcilib
331 pyplnet-MODULES := pyplnet
332 pyplnet-SPEC := pyplnet.spec
334 IN_BOOTSTRAPFS += pyplnet
341 bootcd-MODULES := BootCD build
342 bootcd-SPEC := bootcd.spec
343 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
344 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
345 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
346 bootcd-RPMDATE := yes
351 # vserver : reference image for slices
353 vserver-MODULES := VserverReference build
354 vserver-SPEC := vserver-reference.spec
355 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
356 vserver-DEPEND-FILES := RPMS/yumgroups.xml
357 vserver-RPMDATE := yes
359 IN_BOOTSTRAPFS += vserver
364 bootstrapfs-MODULES := BootstrapFS build
365 bootstrapfs-SPEC := bootstrapfs.spec
366 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
367 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
368 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
369 bootstrapfs-RPMDATE := yes
371 IN_MYPLC += bootstrapfs
376 # all rpms resulting from packages marked as being in bootstrapfs and vserver
377 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
378 # replace space with +++ (specvars cannot deal with spaces)
380 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
382 noderepo-MODULES := BootstrapFS
383 noderepo-SPEC := noderepo.spec
384 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
385 # package requires all regular packages
386 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
387 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
388 #export rpm list to the specfile
389 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
390 noderepo-RPMDATE := yes
395 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
397 myplc-MODULES := MyPLC build
398 myplc-SPEC := myplc.spec
399 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
402 # myplc-docs only contains docs for PLCAPI and NMAPI, but
403 # we still need to pull MyPLC, as it is where the specfile lies,
404 # together with the utility script docbook2drupal.sh
405 myplc-docs-MODULES := MyPLC PLCAPI NodeManager Monitor
406 myplc-docs-SPEC := myplc-docs.spec
409 # using some other name than myplc-release, as this is a make target already
410 release-MODULES := MyPLC
411 release-SPEC := myplc-release.spec
412 release-RPMDATE := yes