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)" "f8"
93 ifeq "$(DISTRONAME)" "centos5"
97 ifeq "$(local_libnl)" "true"
98 libnl-MODULES := libnl
99 libnl-SPEC := libnl.spec
100 libnl-BUILD-FROM-SRPM := yes
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
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 # could not find this in cen
204 inotify-tools-MODULES := inotify-tools
205 inotify-tools-SPEC := inotify-tools.spec
206 inotify-tools-BUILD-FROM-SRPM := yes
207 IN_BOOTSTRAPFS += inotify-tools
214 vsys-SPEC := vsys.spec
215 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
216 IN_BOOTSTRAPFS += vsys
222 dummynet_image-MODULES := dummynet_image
223 dummynet_image-SPEC := dummynet_image.spec
224 IN_MYPLC += dummynet_image
225 ALL += dummynet_image
230 PLCAPI-MODULES := PLCAPI
231 PLCAPI-SPEC := PLCAPI.spec
238 PLCWWW-MODULES := PLCWWW
239 PLCWWW-SPEC := PLCWWW.spec
246 monitor-MODULES := Monitor
247 monitor-SPEC := Monitor.spec
249 IN_BOOTSTRAPFS += monitor
254 monitor-server-MODULES := Monitor
255 monitor-server-SPEC := monitor-server.spec
256 ALL += monitor-server
261 nodeconfig-MODULES := nodeconfig build
262 nodeconfig-SPEC := nodeconfig.spec
264 IN_MYPLC += nodeconfig
269 bootmanager-MODULES := BootManager
270 bootmanager-SPEC := bootmanager.spec
272 IN_MYPLC += bootmanager
275 # pypcilib : used in bootcd
277 pypcilib-MODULES := pypcilib
278 pypcilib-SPEC := pypcilib.spec
280 IN_BOOTCD += pypcilib
285 bootcd-MODULES := BootCD build
286 bootcd-SPEC := bootcd.spec
287 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
288 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
289 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
290 bootcd-RPMDATE := yes
295 # vserver : reference image for slices
297 vserver-MODULES := VserverReference build
298 vserver-SPEC := vserver-reference.spec
299 # Package must be built as root
300 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
301 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
302 vserver-DEPEND-FILES := RPMS/yumgroups.xml
303 vserver-RPMDATE := yes
305 IN_BOOTSTRAPFS += vserver
310 bootstrapfs-MODULES := BootstrapFS build
311 bootstrapfs-SPEC := bootstrapfs.spec
312 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
313 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
314 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
315 bootstrapfs-RPMDATE := yes
317 IN_MYPLC += bootstrapfs
322 # all rpms resulting from packages marked as being in bootstrapfs and vserver
323 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
324 # replace space with +++ (specvars cannot deal with spaces)
326 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
328 noderepo-MODULES := BootstrapFS
329 noderepo-SPEC := noderepo.spec
330 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
331 # package requires all regular packages
332 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
333 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
334 #export rpm list to the specfile
335 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
336 noderepo-RPMDATE := yes
341 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
343 myplc-native-MODULES := MyPLC build
344 myplc-native-SPEC := myplc-native.spec
345 # Package must be built as root
346 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
347 myplc-native-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
351 ## # myplc : old-fashioned, chroot-based packaging
353 ## myplc-MODULES := MyPLC build
354 ## myplc-SPEC := myplc.spec
355 ## # Package must be built as root
356 ## myplc-RPMBUILD := sudo bash ./rpmbuild.sh
357 ## # myplc may require all packages
358 ## myplc-DEPEND-PACKAGES := $(IN_MYPLC)
359 ## myplc-DEPEND-FILES := RPMS/yumgroups.xml myplc-release
360 ## myplc-RPMDATE := yes
363 # myplc-docs only contains docs for PLCAPI and NMAPI, but
364 # we still need to pull MyPLC, as it is where the specfile lies,
365 # together with the utility script docbook2drupal.sh
366 myplc-docs-MODULES := MyPLC PLCAPI NodeManager
367 myplc-docs-SPEC := myplc-docs.spec