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 ### # 2.6.27 not yet ready for this
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)
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
56 ### # 2.6.27 not yet ready for this
60 ### nozomi-MODULES := nozomi
61 ### nozomi-SPEC := nozomi.spec
62 ### nozomi-DEPEND-DEVEL-RPMS := kernel-devel
63 ### nozomi-SPECVARS = kernel_version=$(kernel.rpm-version) \
64 ### kernel_release=$(kernel.rpm-release) \
65 ### kernel_arch=$(kernel.rpm-arch)
66 ### IN_BOOTSTRAPFS += nozomi
72 ### comgt-MODULES := comgt
73 ### comgt-SPEC := comgt.spec
74 ### IN_BOOTSTRAPFS += comgt
80 util-vserver-MODULES := util-vserver
81 util-vserver-SPEC := util-vserver.spec
82 util-vserver-RPMFLAGS:= --without dietlibc
84 IN_BOOTSTRAPFS += util-vserver
87 # libnl - local import
88 # we need either 1.1 or at least 1.0.pre6
89 # rebuild this on centos5 - see kexcludes in build.common
92 ifeq "$(DISTRONAME)" "centos5"
96 ifeq "$(local_libnl)" "true"
97 libnl-MODULES := libnl
98 libnl-SPEC := libnl.spec
99 libnl-BUILD-FROM-SRPM := yes
100 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
101 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
103 IN_BOOTSTRAPFS += libnl
109 util-vserver-pl-MODULES := util-vserver-pl
110 util-vserver-pl-SPEC := util-vserver-pl.spec
111 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
112 ifeq "$(local_libnl)" "true"
113 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
115 ALL += util-vserver-pl
116 IN_BOOTSTRAPFS += util-vserver-pl
121 nodeupdate-MODULES := NodeUpdate
122 nodeupdate-SPEC := NodeUpdate.spec
124 IN_BOOTSTRAPFS += nodeupdate
129 ipod-MODULES := PingOfDeath
130 ipod-SPEC := ipod.spec
132 IN_BOOTSTRAPFS += ipod
137 nodemanager-MODULES := NodeManager
138 nodemanager-SPEC := NodeManager.spec
140 IN_BOOTSTRAPFS += nodemanager
145 sshd-MODULES := pl_sshd
146 sshd-SPEC := pl_sshd.spec
148 IN_BOOTSTRAPFS += sshd
151 # codemux: Port 80 demux
153 codemux-MODULES := CoDemux
154 codemux-SPEC := codemux.spec
155 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
157 IN_BOOTSTRAPFS += codemux
162 fprobe-ulog-MODULES := fprobe-ulog
163 fprobe-ulog-SPEC := fprobe-ulog.spec
165 IN_BOOTSTRAPFS += fprobe-ulog
170 pf2slice-MODULES := pf2slice
171 pf2slice-SPEC := pf2slice.spec
175 # PlanetLab Mom: Cleans up your mess
178 mom-SPEC := pl_mom.spec
180 IN_BOOTSTRAPFS += mom
185 iptables-MODULES := iptables
186 iptables-SPEC := iptables.spec
187 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
189 IN_BOOTSTRAPFS += iptables
194 iproute-MODULES := iproute2
195 iproute-SPEC := iproute.spec
197 IN_BOOTSTRAPFS += iproute
198 IN_VSERVER += iproute
202 # inotify-tools - local import
203 # rebuild this on centos5 (not found) - see kexcludes in build.common
205 local_inotify_tools=false
206 ifeq "$(DISTRONAME)" "centos5"
207 local_inotify_tools=true
210 ifeq "$(local_inotify_tools)" "true"
211 inotify-tools-MODULES := inotify-tools
212 inotify-tools-SPEC := inotify-tools.spec
213 inotify-tools-BUILD-FROM-SRPM := yes
214 IN_BOOTSTRAPFS += inotify-tools
222 vsys-SPEC := vsys.spec
223 ifeq "$(local_inotify_tools)" "true"
224 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
226 IN_BOOTSTRAPFS += vsys
232 PLCAPI-MODULES := PLCAPI
233 PLCAPI-SPEC := PLCAPI.spec
240 drupal-MODULES := drupal
241 drupal-SPEC := drupal.spec
242 drupal-BUILD-FROM-SRPM := yes
247 # use the plewww module instead
249 plewww-MODULES := PLEWWW
250 plewww-SPEC := plewww.spec
255 # www-register-wizard
257 www-register-wizard-MODULES := www-register-wizard
258 www-register-wizard-SPEC := www-register-wizard.spec
259 ALL += www-register-wizard
260 IN_MYPLC += www-register-wizard
265 monitor-MODULES := Monitor
266 monitor-SPEC := Monitor.spec
268 IN_BOOTSTRAPFS += monitor
273 zabbix-MODULES := Monitor
274 zabbix-SPEC := zabbix.spec
275 zabbix-BUILD-FROM-SRPM := yes
281 nodeconfig-MODULES := nodeconfig build
282 nodeconfig-SPEC := nodeconfig.spec
284 IN_MYPLC += nodeconfig
289 bootmanager-MODULES := BootManager
290 bootmanager-SPEC := bootmanager.spec
292 IN_MYPLC += bootmanager
295 # pypcilib : used in bootcd
297 pypcilib-MODULES := pypcilib
298 pypcilib-SPEC := pypcilib.spec
300 IN_BOOTCD += pypcilib
305 pyplnet-MODULES := pyplnet
306 pyplnet-SPEC := pyplnet.spec
308 IN_BOOTSTRAPFS += pyplnet
315 bootcd-MODULES := BootCD build
316 bootcd-SPEC := bootcd.spec
317 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
318 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
319 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
320 bootcd-RPMDATE := yes
325 # vserver : reference image for slices
327 vserver-MODULES := VserverReference build
328 vserver-SPEC := vserver-reference.spec
329 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
330 vserver-DEPEND-FILES := RPMS/yumgroups.xml
331 vserver-RPMDATE := yes
333 IN_BOOTSTRAPFS += vserver
338 bootstrapfs-MODULES := BootstrapFS build
339 bootstrapfs-SPEC := bootstrapfs.spec
340 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
341 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
342 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
343 bootstrapfs-RPMDATE := yes
345 IN_MYPLC += bootstrapfs
350 # all rpms resulting from packages marked as being in bootstrapfs and vserver
351 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
352 # replace space with +++ (specvars cannot deal with spaces)
354 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
356 noderepo-MODULES := BootstrapFS
357 noderepo-SPEC := noderepo.spec
358 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
359 # package requires all regular packages
360 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
361 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
362 #export rpm list to the specfile
363 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
364 noderepo-RPMDATE := yes
369 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
371 myplc-MODULES := MyPLC build
372 myplc-SPEC := myplc.spec
373 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
376 # myplc-docs only contains docs for PLCAPI and NMAPI, but
377 # we still need to pull MyPLC, as it is where the specfile lies,
378 # together with the utility script docbook2drupal.sh
379 myplc-docs-MODULES := MyPLC PLCAPI NodeManager
380 myplc-docs-SPEC := myplc-docs.spec
383 # using some other name than myplc-release, as this is a make target already
384 release-MODULES := MyPLC
385 release-SPEC := myplc-release.spec
386 release-RPMDATE := yes