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)
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 nozomi-MODULES := nozomi
60 nozomi-SPEC := nozomi.spec
61 nozomi-DEPEND-DEVEL-RPMS := kernel-devel
62 nozomi-SPECVARS = kernel_version=$(kernel.rpm-version) \
63 kernel_release=$(kernel.rpm-release) \
64 kernel_arch=$(kernel.rpm-arch)
65 IN_BOOTSTRAPFS += nozomi
71 comgt-MODULES := comgt
72 comgt-SPEC := comgt.spec
73 IN_BOOTSTRAPFS += comgt
79 util-vserver-MODULES := util-vserver
80 util-vserver-SPEC := util-vserver.spec
81 util-vserver-RPMFLAGS:= --without dietlibc
83 IN_BOOTSTRAPFS += util-vserver
86 # libnl - local import
87 # we need either 1.1 or at least 1.0.pre6
88 # rebuild this on centos5 - see kexcludes in build.common
91 ifeq "$(DISTRONAME)" "centos5"
95 ifeq "$(local_libnl)" "true"
96 libnl-MODULES := libnl
97 libnl-SPEC := libnl.spec
98 libnl-BUILD-FROM-SRPM := yes
99 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
100 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
102 IN_BOOTSTRAPFS += libnl
108 util-vserver-pl-MODULES := util-vserver-pl
109 util-vserver-pl-SPEC := util-vserver-pl.spec
110 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
111 ifeq "$(local_libnl)" "true"
112 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
114 ALL += util-vserver-pl
115 IN_BOOTSTRAPFS += util-vserver-pl
120 nodeupdate-MODULES := NodeUpdate
121 nodeupdate-SPEC := NodeUpdate.spec
123 IN_BOOTSTRAPFS += nodeupdate
128 ipod-MODULES := PingOfDeath
129 ipod-SPEC := ipod.spec
131 IN_BOOTSTRAPFS += ipod
136 nodemanager-MODULES := NodeManager
137 nodemanager-SPEC := NodeManager.spec
139 IN_BOOTSTRAPFS += nodemanager
144 sshd-MODULES := pl_sshd
145 sshd-SPEC := pl_sshd.spec
147 IN_BOOTSTRAPFS += sshd
150 # codemux: Port 80 demux
152 codemux-MODULES := CoDemux
153 codemux-SPEC := codemux.spec
154 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
156 IN_BOOTSTRAPFS += codemux
161 fprobe-ulog-MODULES := fprobe-ulog
162 fprobe-ulog-SPEC := fprobe-ulog.spec
164 IN_BOOTSTRAPFS += fprobe-ulog
169 pf2slice-MODULES := pf2slice
170 pf2slice-SPEC := pf2slice.spec
174 # PlanetLab Mom: Cleans up your mess
177 mom-SPEC := pl_mom.spec
179 IN_BOOTSTRAPFS += mom
184 iptables-MODULES := iptables
185 iptables-SPEC := iptables.spec
186 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
188 IN_BOOTSTRAPFS += iptables
193 iproute-MODULES := iproute2
194 iproute-SPEC := iproute.spec
196 IN_BOOTSTRAPFS += iproute
197 IN_VSERVER += iproute
201 # inotify-tools - local import
202 # rebuild this on centos5 (not found) - see kexcludes in build.common
204 local_inotify_tools=false
205 ifeq "$(DISTRONAME)" "centos5"
206 local_inotify_tools=true
209 ifeq "$(local_inotify_tools)" "true"
210 inotify-tools-MODULES := inotify-tools
211 inotify-tools-SPEC := inotify-tools.spec
212 inotify-tools-BUILD-FROM-SRPM := yes
213 IN_BOOTSTRAPFS += inotify-tools
221 vsys-SPEC := vsys.spec
222 ifeq "$(local_inotify_tools)" "true"
223 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
225 IN_BOOTSTRAPFS += vsys
231 vsys-scripts-MODULES := vsys-scripts
232 vsys-scripts-SPEC := vsys-scripts.spec
233 IN_BOOTSTRAPFS += vsys-scripts
239 dummynet_image-MODULES := dummynet_image
240 dummynet_image-SPEC := dummynet_image.spec
241 IN_MYPLC += dummynet_image
242 ALL += dummynet_image
247 PLCAPI-MODULES := PLCAPI
248 PLCAPI-SPEC := PLCAPI.spec
255 drupal-MODULES := drupal
256 drupal-SPEC := drupal.spec
257 drupal-BUILD-FROM-SRPM := yes
262 # use the plewww module instead
264 plewww-MODULES := PLEWWW
265 plewww-SPEC := plewww.spec
270 # www-register-wizard
272 www-register-wizard-MODULES := www-register-wizard
273 www-register-wizard-SPEC := www-register-wizard.spec
274 ALL += www-register-wizard
275 IN_MYPLC += www-register-wizard
280 monitor-MODULES := Monitor
281 monitor-SPEC := Monitor.spec
283 IN_BOOTSTRAPFS += monitor
288 zabbix-MODULES := Monitor
289 zabbix-SPEC := zabbix.spec
290 zabbix-BUILD-FROM-SRPM := yes
296 nodeconfig-MODULES := nodeconfig build
297 nodeconfig-SPEC := nodeconfig.spec
299 IN_MYPLC += nodeconfig
304 bootmanager-MODULES := BootManager
305 bootmanager-SPEC := bootmanager.spec
307 IN_MYPLC += bootmanager
310 # pypcilib : used in bootcd
312 pypcilib-MODULES := pypcilib
313 pypcilib-SPEC := pypcilib.spec
315 IN_BOOTCD += pypcilib
320 pyplnet-MODULES := pyplnet
321 pyplnet-SPEC := pyplnet.spec
323 IN_BOOTSTRAPFS += pyplnet
330 bootcd-MODULES := BootCD build
331 bootcd-SPEC := bootcd.spec
332 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
333 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
334 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
335 bootcd-RPMDATE := yes
340 # vserver : reference image for slices
342 vserver-MODULES := VserverReference build
343 vserver-SPEC := vserver-reference.spec
344 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
345 vserver-DEPEND-FILES := RPMS/yumgroups.xml
346 vserver-RPMDATE := yes
348 IN_BOOTSTRAPFS += vserver
353 bootstrapfs-MODULES := BootstrapFS build
354 bootstrapfs-SPEC := bootstrapfs.spec
355 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
356 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
357 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
358 bootstrapfs-RPMDATE := yes
360 IN_MYPLC += bootstrapfs
365 # all rpms resulting from packages marked as being in bootstrapfs and vserver
366 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
367 # replace space with +++ (specvars cannot deal with spaces)
369 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
371 noderepo-MODULES := BootstrapFS
372 noderepo-SPEC := noderepo.spec
373 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
374 # package requires all regular packages
375 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
376 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
377 #export rpm list to the specfile
378 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
379 noderepo-RPMDATE := yes
384 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
386 myplc-MODULES := MyPLC build
387 myplc-SPEC := myplc.spec
388 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
391 # myplc-docs only contains docs for PLCAPI and NMAPI, but
392 # we still need to pull MyPLC, as it is where the specfile lies,
393 # together with the utility script docbook2drupal.sh
394 myplc-docs-MODULES := MyPLC PLCAPI NodeManager
395 myplc-docs-SPEC := myplc-docs.spec
398 # using some other name than myplc-release, as this is a make target already
399 release-MODULES := MyPLC
400 release-SPEC := myplc-release.spec
401 release-RPMDATE := yes