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 f8 and 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
99 IN_BOOTSTRAPFS += libnl
105 util-vserver-pl-MODULES := util-vserver-pl
106 util-vserver-pl-SPEC := util-vserver-pl.spec
107 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
108 ifeq "$(local_libnl)" "true"
109 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
111 ALL += util-vserver-pl
112 IN_BOOTSTRAPFS += util-vserver-pl
117 nodeupdate-MODULES := NodeUpdate
118 nodeupdate-SPEC := NodeUpdate.spec
120 IN_BOOTSTRAPFS += nodeupdate
125 ipod-MODULES := PingOfDeath
126 ipod-SPEC := ipod.spec
128 IN_BOOTSTRAPFS += ipod
133 nodemanager-MODULES := NodeManager
134 nodemanager-SPEC := NodeManager.spec
136 IN_BOOTSTRAPFS += nodemanager
141 sshd-MODULES := pl_sshd
142 sshd-SPEC := pl_sshd.spec
144 IN_BOOTSTRAPFS += sshd
147 # codemux: Port 80 demux
149 codemux-MODULES := CoDemux
150 codemux-SPEC := codemux.spec
151 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
153 IN_BOOTSTRAPFS += codemux
158 fprobe-ulog-MODULES := fprobe-ulog
159 fprobe-ulog-SPEC := fprobe-ulog.spec
161 IN_BOOTSTRAPFS += fprobe-ulog
166 pf2slice-MODULES := pf2slice
167 pf2slice-SPEC := pf2slice.spec
171 # PlanetLab Mom: Cleans up your mess
174 mom-SPEC := pl_mom.spec
176 IN_BOOTSTRAPFS += mom
181 iptables-MODULES := iptables
182 iptables-SPEC := iptables.spec
183 iptables-DEPEND-DEVEL-RPMS := kernel-devel
185 IN_BOOTSTRAPFS += iptables
190 iproute-MODULES := iproute2
191 iproute-SPEC := iproute.spec
193 IN_BOOTSTRAPFS += iproute
194 IN_VSERVER += iproute
198 # inotify-tools - local import
199 # could not find this in cen
201 inotify-tools-MODULES := inotify-tools
202 inotify-tools-SPEC := inotify-tools.spec
203 inotify-tools-BUILD-FROM-SRPM := yes
204 IN_BOOTSTRAPFS += inotify-tools
211 vsys-SPEC := vsys.spec
212 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
213 IN_BOOTSTRAPFS += vsys
219 dummynet_image-MODULES := dummynet_image
220 dummynet_image-SPEC := dummynet_image.spec
221 IN_MYPLC += dummynet_image
222 ALL += dummynet_image
227 PLCAPI-MODULES := PLCAPI
228 PLCAPI-SPEC := PLCAPI.spec
235 PLCWWW-MODULES := PLCWWW
236 PLCWWW-SPEC := PLCWWW.spec
243 monitor-MODULES := Monitor
244 monitor-SPEC := Monitor.spec
246 IN_BOOTSTRAPFS += monitor
251 monitor-server-MODULES := Monitor
252 monitor-server-SPEC := monitor-server.spec
253 ALL += monitor-server
258 nodeconfig-MODULES := nodeconfig build
259 nodeconfig-SPEC := nodeconfig.spec
261 IN_MYPLC += nodeconfig
266 bootmanager-MODULES := BootManager
267 bootmanager-SPEC := bootmanager.spec
269 IN_MYPLC += bootmanager
272 # pypcilib : used in bootcd
274 pypcilib-MODULES := pypcilib
275 pypcilib-SPEC := pypcilib.spec
277 IN_BOOTCD += pypcilib
282 bootcd-MODULES := BootCD build
283 bootcd-SPEC := bootcd.spec
284 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
285 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
286 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
287 bootcd-RPMDATE := yes
292 # vserver : reference image for slices
294 vserver-MODULES := VserverReference build
295 vserver-SPEC := vserver-reference.spec
296 # Package must be built as root
297 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
298 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
299 vserver-DEPEND-FILES := RPMS/yumgroups.xml
300 vserver-RPMDATE := yes
302 IN_BOOTSTRAPFS += vserver
307 bootstrapfs-MODULES := BootstrapFS build
308 bootstrapfs-SPEC := bootstrapfs.spec
309 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
310 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
311 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
312 bootstrapfs-RPMDATE := yes
314 IN_MYPLC += bootstrapfs
319 # all rpms resulting from packages marked as being in bootstrapfs and vserver
320 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
321 # replace space with +++ (specvars cannot deal with spaces)
323 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
325 noderepo-MODULES := BootstrapFS
326 noderepo-SPEC := noderepo.spec
327 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
328 # package requires all regular packages
329 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
330 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
331 #export rpm list to the specfile
332 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
333 noderepo-RPMDATE := yes
338 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
340 myplc-native-MODULES := MyPLC build
341 myplc-native-SPEC := myplc-native.spec
342 # Package must be built as root
343 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
344 myplc-native-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
348 ## # myplc : old-fashioned, chroot-based packaging
350 ## myplc-MODULES := MyPLC build
351 ## myplc-SPEC := myplc.spec
352 ## # Package must be built as root
353 ## myplc-RPMBUILD := sudo bash ./rpmbuild.sh
354 ## # myplc may require all packages
355 ## myplc-DEPEND-PACKAGES := $(IN_MYPLC)
356 ## myplc-DEPEND-FILES := RPMS/yumgroups.xml myplc-release
357 ## myplc-RPMDATE := yes
360 # myplc-docs only contains docs for PLCAPI and NMAPI, but
361 # we still need to pull MyPLC, as it is where the specfile lies,
362 # together with the utility script docbook2drupal.sh
363 myplc-docs-MODULES := MyPLC PLCAPI NodeManager
364 myplc-docs-SPEC := myplc-docs.spec