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 # the version available in centos 5.2 is too old
87 # we need either 1.1 or at least 1.0.pre6
89 libnl-MODULES := libnl
90 libnl-SPEC := libnl.spec
91 libnl-BUILD-FROM-SRPM := yes
93 IN_BOOTSTRAPFS += libnl
98 util-vserver-pl-MODULES := util-vserver-pl
99 util-vserver-pl-SPEC := util-vserver-pl.spec
100 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core libnl libnl-devel
101 ALL += util-vserver-pl
102 IN_BOOTSTRAPFS += util-vserver-pl
107 nodeupdate-MODULES := NodeUpdate
108 nodeupdate-SPEC := NodeUpdate.spec
110 IN_BOOTSTRAPFS += nodeupdate
115 ipod-MODULES := PingOfDeath
116 ipod-SPEC := ipod.spec
118 IN_BOOTSTRAPFS += ipod
123 nodemanager-MODULES := NodeManager
124 nodemanager-SPEC := NodeManager.spec
126 IN_BOOTSTRAPFS += nodemanager
131 sshd-MODULES := pl_sshd
132 sshd-SPEC := pl_sshd.spec
134 IN_BOOTSTRAPFS += sshd
137 # codemux: Port 80 demux
139 codemux-MODULES := CoDemux
140 codemux-SPEC := codemux.spec
141 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
143 IN_BOOTSTRAPFS += codemux
148 fprobe-ulog-MODULES := fprobe-ulog
149 fprobe-ulog-SPEC := fprobe-ulog.spec
151 IN_BOOTSTRAPFS += fprobe-ulog
156 pf2slice-MODULES := pf2slice
157 pf2slice-SPEC := pf2slice.spec
161 # PlanetLab Mom: Cleans up your mess
164 mom-SPEC := pl_mom.spec
166 IN_BOOTSTRAPFS += mom
171 iptables-MODULES := iptables
172 iptables-SPEC := iptables.spec
173 iptables-DEPEND-DEVEL-RPMS := kernel-devel
175 IN_BOOTSTRAPFS += iptables
180 iproute-MODULES := iproute2
181 iproute-SPEC := iproute.spec
183 IN_BOOTSTRAPFS += iproute
184 IN_VSERVER += iproute
188 # inotify-tools - local import
189 # could not find this in cen
191 inotify-tools-MODULES := inotify-tools
192 inotify-tools-SPEC := inotify-tools.spec
193 inotify-tools-BUILD-FROM-SRPM := yes
194 IN_BOOTSTRAPFS += inotify-tools
201 vsys-SPEC := vsys.spec
202 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
203 IN_BOOTSTRAPFS += vsys
209 dummynet_image-MODULES := dummynet_image
210 dummynet_image-SPEC := dummynet_image.spec
211 IN_MYPLC += dummynet_image
212 ALL += dummynet_image
217 PLCAPI-MODULES := PLCAPI
218 PLCAPI-SPEC := PLCAPI.spec
225 PLCWWW-MODULES := PLCWWW
226 PLCWWW-SPEC := PLCWWW.spec
233 monitor-MODULES := Monitor
234 monitor-SPEC := Monitor.spec
236 IN_BOOTSTRAPFS += monitor
241 monitor-server-MODULES := Monitor
242 monitor-server-SPEC := monitor-server.spec
243 ALL += monitor-server
248 nodeconfig-MODULES := nodeconfig build
249 nodeconfig-SPEC := nodeconfig.spec
251 IN_MYPLC += nodeconfig
256 bootmanager-MODULES := BootManager
257 bootmanager-SPEC := bootmanager.spec
259 IN_MYPLC += bootmanager
262 # pypcilib : used in bootcd
264 pypcilib-MODULES := pypcilib
265 pypcilib-SPEC := pypcilib.spec
267 IN_BOOTCD += pypcilib
272 bootcd-MODULES := BootCD build
273 bootcd-SPEC := bootcd.spec
274 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
275 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
276 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
277 bootcd-RPMDATE := yes
282 # vserver : reference image for slices
284 vserver-MODULES := VserverReference build
285 vserver-SPEC := vserver-reference.spec
286 # Package must be built as root
287 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
288 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
289 vserver-DEPEND-FILES := RPMS/yumgroups.xml
290 vserver-RPMDATE := yes
292 IN_BOOTSTRAPFS += vserver
297 bootstrapfs-MODULES := BootstrapFS build
298 bootstrapfs-SPEC := bootstrapfs.spec
299 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
300 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
301 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
302 bootstrapfs-RPMDATE := yes
304 IN_MYPLC += bootstrapfs
309 # all rpms resulting from packages marked as being in bootstrapfs and vserver
310 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
311 # replace space with +++ (specvars cannot deal with spaces)
313 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
315 noderepo-MODULES := BootstrapFS
316 noderepo-SPEC := noderepo.spec
317 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
318 # package requires all regular packages
319 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
320 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
321 #export rpm list to the specfile
322 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
323 noderepo-RPMDATE := yes
328 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
330 myplc-native-MODULES := MyPLC build
331 myplc-native-SPEC := myplc-native.spec
332 # Package must be built as root
333 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
334 myplc-native-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
338 ## # myplc : old-fashioned, chroot-based packaging
340 ## myplc-MODULES := MyPLC build
341 ## myplc-SPEC := myplc.spec
342 ## # Package must be built as root
343 ## myplc-RPMBUILD := sudo bash ./rpmbuild.sh
344 ## # myplc may require all packages
345 ## myplc-DEPEND-PACKAGES := $(IN_MYPLC)
346 ## myplc-DEPEND-FILES := RPMS/yumgroups.xml myplc-release
347 ## myplc-RPMDATE := yes
350 # myplc-docs only contains docs for PLCAPI and NMAPI, but
351 # we still need to pull MyPLC, as it is where the specfile lies,
352 # together with the utility script docbook2drupal.sh
353 myplc-docs-MODULES := MyPLC PLCAPI NodeManager
354 myplc-docs-SPEC := myplc-docs.spec