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 kernel-SPECVARS := iwlwifi=1
32 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
35 # this is to mark on which image a given rpm is supposed to go
36 IN_BOOTCD += $(KERNELS)
37 IN_VSERVER += $(KERNELS)
38 IN_BOOTSTRAPFS += $(KERNELS)
39 # turns out myplc installs kernel-vserver
40 IN_MYPLC += $(KERNELS)
45 madwifi-MODULES := madwifi
46 madwifi-SPEC := madwifi.spec
47 madwifi-BUILD-FROM-SRPM := yes
48 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
49 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
50 kernel_release=$(kernel.rpm-release) \
51 kernel_arch=$(kernel.rpm-arch)
53 IN_BOOTSTRAPFS += madwifi
58 nozomi-MODULES := nozomi
59 nozomi-SPEC := nozomi.spec
60 nozomi-DEPEND-DEVEL-RPMS := kernel-devel
61 nozomi-SPECVARS = kernel_version=$(kernel.rpm-version) \
62 kernel_release=$(kernel.rpm-release) \
63 kernel_arch=$(kernel.rpm-arch)
64 IN_BOOTSTRAPFS += nozomi
70 comgt-MODULES := comgt
71 comgt-SPEC := comgt.spec
72 IN_BOOTSTRAPFS += comgt
78 util-vserver-MODULES := util-vserver
79 util-vserver-SPEC := util-vserver.spec
80 util-vserver-RPMFLAGS:= --without dietlibc
82 IN_BOOTSTRAPFS += util-vserver
85 # libnl - local import
86 # we need either 1.1 or at least 1.0.pre6
87 # rebuild this on centos5 - see kexcludes in build.common
90 ifeq "$(DISTRONAME)" "centos5"
94 ifeq "$(local_libnl)" "true"
95 libnl-MODULES := libnl
96 libnl-SPEC := libnl.spec
97 libnl-BUILD-FROM-SRPM := yes
98 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
99 libnl-DEPEND-DEVEL-RPMS := kernel-devel
101 IN_BOOTSTRAPFS += libnl
107 util-vserver-pl-MODULES := util-vserver-pl
108 util-vserver-pl-SPEC := util-vserver-pl.spec
109 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
110 ifeq "$(local_libnl)" "true"
111 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
113 ALL += util-vserver-pl
114 IN_BOOTSTRAPFS += util-vserver-pl
119 nodeupdate-MODULES := NodeUpdate
120 nodeupdate-SPEC := NodeUpdate.spec
122 IN_BOOTSTRAPFS += nodeupdate
127 ipod-MODULES := PingOfDeath
128 ipod-SPEC := ipod.spec
130 IN_BOOTSTRAPFS += ipod
135 nodemanager-MODULES := NodeManager
136 nodemanager-SPEC := NodeManager.spec
138 IN_BOOTSTRAPFS += nodemanager
143 sshd-MODULES := pl_sshd
144 sshd-SPEC := pl_sshd.spec
146 IN_BOOTSTRAPFS += sshd
149 # codemux: Port 80 demux
151 codemux-MODULES := CoDemux
152 codemux-SPEC := codemux.spec
153 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
155 IN_BOOTSTRAPFS += codemux
160 fprobe-ulog-MODULES := fprobe-ulog
161 fprobe-ulog-SPEC := fprobe-ulog.spec
163 IN_BOOTSTRAPFS += fprobe-ulog
168 pf2slice-MODULES := pf2slice
169 pf2slice-SPEC := pf2slice.spec
173 # PlanetLab Mom: Cleans up your mess
176 mom-SPEC := pl_mom.spec
178 IN_BOOTSTRAPFS += mom
183 iptables-MODULES := iptables
184 iptables-SPEC := iptables.spec
185 iptables-DEPEND-DEVEL-RPMS := kernel-devel
187 IN_BOOTSTRAPFS += iptables
192 iproute-MODULES := iproute2
193 iproute-SPEC := iproute.spec
195 IN_BOOTSTRAPFS += iproute
196 IN_VSERVER += iproute
200 # inotify-tools - local import
201 # rebuild this on centos5 (not found) - see kexcludes in build.common
203 local_inotify_tools=false
204 ifeq "$(DISTRONAME)" "centos5"
205 local_inotify_tools=true
208 ifeq "$(local_inotify_tools)" "true"
209 inotify-tools-MODULES := inotify-tools
210 inotify-tools-SPEC := inotify-tools.spec
211 inotify-tools-BUILD-FROM-SRPM := yes
212 IN_BOOTSTRAPFS += inotify-tools
220 vsys-SPEC := vsys.spec
221 ifeq "$(local_inotify_tools)" "true"
222 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
224 IN_BOOTSTRAPFS += vsys
230 dummynet_image-MODULES := dummynet_image
231 dummynet_image-SPEC := dummynet_image.spec
232 IN_MYPLC += dummynet_image
233 ALL += dummynet_image
238 PLCAPI-MODULES := PLCAPI
239 PLCAPI-SPEC := PLCAPI.spec
244 # use the PLEWWW module instead
246 PLEWWW-MODULES := PLEWWW
247 PLEWWW-SPEC := PLEWWW.spec
254 monitor-MODULES := Monitor
255 monitor-SPEC := Monitor.spec
257 IN_BOOTSTRAPFS += monitor
262 zabbix-MODULES := Monitor
263 zabbix-SPEC := zabbix.spec
264 zabbix-BUILD-FROM-SRPM := yes
270 nodeconfig-MODULES := nodeconfig build
271 nodeconfig-SPEC := nodeconfig.spec
273 IN_MYPLC += nodeconfig
278 bootmanager-MODULES := BootManager
279 bootmanager-SPEC := bootmanager.spec
281 IN_MYPLC += bootmanager
284 # pypcilib : used in bootcd
286 pypcilib-MODULES := pypcilib
287 pypcilib-SPEC := pypcilib.spec
289 IN_BOOTCD += pypcilib
294 pyplnet-MODULES := pyplnet
295 pyplnet-SPEC := pyplnet.spec
297 IN_BOOTSTRAPFS += pyplnet
304 bootcd-MODULES := BootCD build
305 bootcd-SPEC := bootcd.spec
306 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
307 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
308 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
309 bootcd-RPMDATE := yes
314 # vserver : reference image for slices
316 vserver-MODULES := VserverReference build
317 vserver-SPEC := vserver-reference.spec
318 # Package must be built as root
319 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
320 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
321 vserver-DEPEND-FILES := RPMS/yumgroups.xml
322 vserver-RPMDATE := yes
324 IN_BOOTSTRAPFS += vserver
329 bootstrapfs-MODULES := BootstrapFS build
330 bootstrapfs-SPEC := bootstrapfs.spec
331 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
332 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
333 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
334 bootstrapfs-RPMDATE := yes
336 IN_MYPLC += bootstrapfs
341 # all rpms resulting from packages marked as being in bootstrapfs and vserver
342 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
343 # replace space with +++ (specvars cannot deal with spaces)
345 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
347 noderepo-MODULES := BootstrapFS
348 noderepo-SPEC := noderepo.spec
349 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
350 # package requires all regular packages
351 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
352 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
353 #export rpm list to the specfile
354 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
355 noderepo-RPMDATE := yes
360 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
362 myplc-native-MODULES := MyPLC build
363 myplc-native-SPEC := myplc-native.spec
364 # Package must be built as root
365 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
366 myplc-native-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
370 ## # myplc : old-fashioned, chroot-based packaging
372 ## myplc-MODULES := MyPLC build
373 ## myplc-SPEC := myplc.spec
374 ## # Package must be built as root
375 ## myplc-RPMBUILD := sudo bash ./rpmbuild.sh
376 ## # myplc may require all packages
377 ## myplc-DEPEND-PACKAGES := $(IN_MYPLC)
378 ## myplc-DEPEND-FILES := RPMS/yumgroups.xml myplc-release
379 ## myplc-RPMDATE := yes
382 # myplc-docs only contains docs for PLCAPI and NMAPI, but
383 # we still need to pull MyPLC, as it is where the specfile lies,
384 # together with the utility script docbook2drupal.sh
385 myplc-docs-MODULES := MyPLC PLCAPI NodeManager
386 myplc-docs-SPEC := myplc-docs.spec
389 # using some other name than myplc-release, as this is a make target already
390 release-MODULES := MyPLC
391 release-SPEC := myplc-release.spec
392 release-RPMDATE := yes