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
18 # use a package name with srpm in it:
19 # so the source rpm is created by running make srpm in the codebase
22 kernel-MODULES := linux-2.6
23 kernel-SPEC := kernel-2.6.spec
24 kernel-BUILD-FROM-SRPM := yes
25 ifeq "$(HOSTARCH)" "i386"
26 kernel-RPMFLAGS:= --target i686
28 kernel-RPMFLAGS:= --target $(HOSTARCH)
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)
46 madwifi-MODULES := madwifi
47 madwifi-SPEC := madwifi.spec
48 madwifi-BUILD-FROM-SRPM := yes
49 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
50 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
51 kernel_release=$(kernel.rpm-release) \
52 kernel_arch=$(kernel.rpm-arch)
54 IN_BOOTSTRAPFS += madwifi
59 util-vserver-MODULES := util-vserver
60 util-vserver-SPEC := util-vserver.spec
61 util-vserver-RPMFLAGS:= --without dietlibc
63 IN_BOOTSTRAPFS += util-vserver
66 # libnl - local import
67 # we need either 1.1 or at least 1.0.pre6
68 # rebuild this on centos5 - see kexcludes in build.common
71 ifeq "$(DISTRONAME)" "centos5"
75 ifeq "$(local_libnl)" "true"
76 libnl-MODULES := libnl
77 libnl-SPEC := libnl.spec
78 libnl-BUILD-FROM-SRPM := yes
79 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
80 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
82 IN_BOOTSTRAPFS += libnl
88 util-vserver-pl-MODULES := util-vserver-pl
89 util-vserver-pl-SPEC := util-vserver-pl.spec
90 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
91 ifeq "$(local_libnl)" "true"
92 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
94 ALL += util-vserver-pl
95 IN_BOOTSTRAPFS += util-vserver-pl
100 nodeupdate-MODULES := NodeUpdate
101 nodeupdate-SPEC := NodeUpdate.spec
103 IN_BOOTSTRAPFS += nodeupdate
108 ipod-MODULES := PingOfDeath
109 ipod-SPEC := ipod.spec
111 IN_BOOTSTRAPFS += ipod
116 nodemanager-MODULES := NodeManager
117 nodemanager-SPEC := NodeManager.spec
119 IN_BOOTSTRAPFS += nodemanager
124 sshd-MODULES := pl_sshd
125 sshd-SPEC := pl_sshd.spec
127 IN_BOOTSTRAPFS += sshd
130 # codemux: Port 80 demux
132 codemux-MODULES := CoDemux
133 codemux-SPEC := codemux.spec
134 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
136 IN_BOOTSTRAPFS += codemux
141 fprobe-ulog-MODULES := fprobe-ulog
142 fprobe-ulog-SPEC := fprobe-ulog.spec
144 IN_BOOTSTRAPFS += fprobe-ulog
149 pf2slice-MODULES := pf2slice
150 pf2slice-SPEC := pf2slice.spec
154 # PlanetLab Mom: Cleans up your mess
157 mom-SPEC := pl_mom.spec
159 IN_BOOTSTRAPFS += mom
164 iptables-MODULES := iptables
165 iptables-SPEC := iptables.spec
166 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
168 IN_BOOTSTRAPFS += iptables
173 iproute-MODULES := iproute2
174 iproute-SPEC := iproute.spec
176 IN_BOOTSTRAPFS += iproute
177 IN_VSERVER += iproute
181 # inotify-tools - local import
182 # rebuild this on centos5 (not found) - see kexcludes in build.common
184 local_inotify_tools=false
185 ifeq "$(DISTRONAME)" "centos5"
186 local_inotify_tools=true
189 ifeq "$(local_inotify_tools)" "true"
190 inotify-tools-MODULES := inotify-tools
191 inotify-tools-SPEC := inotify-tools.spec
192 inotify-tools-BUILD-FROM-SRPM := yes
193 IN_BOOTSTRAPFS += inotify-tools
201 vsys-SPEC := vsys.spec
202 ifeq "$(local_inotify_tools)" "true"
203 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
205 IN_BOOTSTRAPFS += vsys
211 vsys-scripts-MODULES := vsys-scripts
212 vsys-scripts-SPEC := vsys-scripts.spec
213 IN_BOOTSTRAPFS += vsys-scripts
219 PLCAPI-MODULES := PLCAPI
220 PLCAPI-SPEC := PLCAPI.spec
227 drupal-MODULES := drupal
228 drupal-SPEC := drupal.spec
229 drupal-BUILD-FROM-SRPM := yes
234 # use the plewww module instead
236 plewww-MODULES := PLEWWW
237 plewww-SPEC := plewww.spec
242 # www-register-wizard
244 www-register-wizard-MODULES := www-register-wizard
245 www-register-wizard-SPEC := www-register-wizard.spec
246 ALL += www-register-wizard
247 IN_MYPLC += www-register-wizard
252 pcucontrol-MODULES := pcucontrol
253 pcucontrol-SPEC := pcucontrol.spec
259 monitor-MODULES := Monitor
260 monitor-SPEC := Monitor.spec
262 IN_BOOTSTRAPFS += monitor
267 plcrt-MODULES := PLCRT
268 plcrt-SPEC := plcrt.spec
274 zabbix-MODULES := Monitor
275 zabbix-SPEC := zabbix.spec
276 zabbix-BUILD-FROM-SRPM := yes
282 pyopenssl-MODULES := pyopenssl
283 pyopenssl-SPEC := pyOpenSSL.spec
284 pyopenssl-BUILD-FROM-SRPM := yes
289 # sfa - Slice Facility Architecture
298 nodeconfig-MODULES := nodeconfig build
299 nodeconfig-SPEC := nodeconfig.spec
301 IN_MYPLC += nodeconfig
306 bootmanager-MODULES := BootManager
307 bootmanager-SPEC := bootmanager.spec
309 IN_MYPLC += bootmanager
312 # pypcilib : used in bootcd
314 pypcilib-MODULES := pypcilib
315 pypcilib-SPEC := pypcilib.spec
317 IN_BOOTCD += pypcilib
322 pyplnet-MODULES := pyplnet
323 pyplnet-SPEC := pyplnet.spec
325 IN_BOOTSTRAPFS += pyplnet
332 bootcd-MODULES := BootCD build
333 bootcd-SPEC := bootcd.spec
334 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
335 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
336 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
337 bootcd-RPMDATE := yes
342 # vserver : reference image for slices
344 vserver-MODULES := VserverReference build
345 vserver-SPEC := vserver-reference.spec
346 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
347 vserver-DEPEND-FILES := RPMS/yumgroups.xml
348 vserver-RPMDATE := yes
350 IN_BOOTSTRAPFS += vserver
355 bootstrapfs-MODULES := BootstrapFS build
356 bootstrapfs-SPEC := bootstrapfs.spec
357 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
358 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
359 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
360 bootstrapfs-RPMDATE := yes
362 IN_MYPLC += bootstrapfs
367 # all rpms resulting from packages marked as being in bootstrapfs and vserver
368 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
369 # replace space with +++ (specvars cannot deal with spaces)
371 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
373 noderepo-MODULES := BootstrapFS
374 noderepo-SPEC := noderepo.spec
375 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
376 # package requires all regular packages
377 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
378 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
379 #export rpm list to the specfile
380 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
381 noderepo-RPMDATE := yes
386 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
388 myplc-MODULES := MyPLC build
389 myplc-SPEC := myplc.spec
390 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
393 # myplc-docs only contains docs for PLCAPI and NMAPI, but
394 # we still need to pull MyPLC, as it is where the specfile lies,
395 # together with the utility script docbook2drupal.sh
396 myplc-docs-MODULES := MyPLC PLCAPI NodeManager Monitor
397 myplc-docs-SPEC := myplc-docs.spec
400 # using some other name than myplc-release, as this is a make target already
401 release-MODULES := MyPLC
402 release-SPEC := myplc-release.spec
403 release-RPMDATE := yes