2 # OneLab standard components list
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-patches
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)
31 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
34 # this is to mark on which image a given rpm is supposed to go
35 IN_BOOTCD += $(KERNELS)
36 IN_VSERVER += $(KERNELS)
37 IN_BOOTSTRAPFS += $(KERNELS)
38 # turns out myplc installs kernel-vserver
39 IN_MYPLC += $(KERNELS)
44 ifeq "$(DISTRONAME)" "fc4"
45 kexec-tools-MODULES := kexec-tools
46 kexec-tools-SPEC := kexec-tools.spec
47 kexec-tools-CVSROOT := :pserver:anon@cvs.planet-lab.org:/cvs
48 kexec-tools-TAG := planetlab-4_1-rc2
50 IN_BOOTCD += kexec-tools
56 madwifi-MODULES := madwifi
57 madwifi-SPEC := madwifi.spec
58 madwifi-BUILD-FROM-SRPM := yes
59 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
60 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
61 kernel_release=$(kernel.rpm-release) \
62 kernel_arch=$(kernel.rpm-arch)
64 IN_BOOTSTRAPFS += madwifi
69 wireless-tools-MODULES := wireless-tools
70 wireless-tools-SPEC := wireless-tools.spec
71 wireless-tools-BUILD-FROM-SRPM := yes
73 IN_BOOTSTRAPFS += wireless-tools
78 # does not compile against new kernel - waiting for Napoli & Vimercate
79 nozomi-MODULES := nozomi
80 nozomi-SPEC := nozomi.spec
81 nozomi-DEPEND-DEVEL-RPMS := kernel-devel
82 nozomi-SPECVARS = kernel_version=$(kernel.rpm-version) \
83 kernel_release=$(kernel.rpm-release) \
84 kernel_arch=$(kernel.rpm-arch)
85 IN_BOOTSTRAPFS += nozomi
91 comgt-MODULES := comgt
92 comgt-SPEC := comgt.spec
93 IN_BOOTSTRAPFS += comgt
99 # [daniel] wait for latest Fedora release
100 # (03:29:46 PM) daniel_hozac: interfacing with the kernel directly when dealing with netlink was fugly, so... i had to find something nicer.
101 # (03:29:53 PM) daniel_hozac: the one in Fedora is lacking certain APIs i need.
103 libnl-MODULES := libnl
104 libnl-SPEC := libnl.spec
110 util-vserver-MODULES := util-vserver
111 util-vserver-SPEC := util-vserver.spec
112 util-vserver-RPMFLAGS:= --without dietlibc
114 IN_BOOTSTRAPFS += util-vserver
119 util-vserver-pl-MODULES := util-vserver-pl
120 util-vserver-pl-SPEC := util-vserver-pl.spec
121 util-vserver-pl-DEPEND-DEVEL-RPMS := libnl libnl-devel util-vserver-lib util-vserver-devel util-vserver-core
122 ALL += util-vserver-pl
123 IN_BOOTSTRAPFS += util-vserver-pl
128 NodeUpdate-MODULES := NodeUpdate
129 NodeUpdate-SPEC := NodeUpdate.spec
131 IN_BOOTSTRAPFS += NodeUpdate
136 ipod-MODULES := PingOfDeath
137 ipod-SPEC := ipod.spec
139 IN_BOOTSTRAPFS += ipod
144 NodeManager-MODULES := NodeManager
145 NodeManager-SPEC := NodeManager.spec
147 IN_BOOTSTRAPFS += NodeManager
152 pl_sshd-MODULES := pl_sshd
153 pl_sshd-SPEC := pl_sshd.spec
155 IN_BOOTSTRAPFS += pl_sshd
160 # Deprecate when vsys takes over [sapan].
161 # keep in build for proper.
163 libhttpd-MODULES := libhttpd++
164 libhttpd-SPEC := libhttpd++.spec
166 IN_BOOTSTRAPFS += libhttpd
169 # proper: Privileged Operations Service
171 proper-MODULES := proper
172 proper-SPEC := proper.spec
173 proper-DEPEND-DEVEL-RPMS := libhttpd++-devel
175 IN_BOOTSTRAPFS += proper
178 # codemux: Port 80 demux
180 codemux-MODULES := CoDemux
181 codemux-SPEC := codemux.spec
182 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
184 IN_BOOTSTRAPFS += codemux
189 ulogd-MODULES := ulogd
190 ulogd-SPEC := ulogd.spec
191 ulogd-DEPEND-DEVEL-RPMS := kernel-devel proper-libs proper-devel
198 fprobe-ulog-MODULES := fprobe-ulog
199 fprobe-ulog-SPEC := fprobe-ulog.spec
201 IN_BOOTSTRAPFS += fprobe-ulog
206 pf2slice-MODULES := pf2slice
207 pf2slice-SPEC := pf2slice.spec
214 netflow-MODULES := PlanetFlow
215 netflow-SPEC := netflow.spec
217 IN_BOOTSTRAPFS += netflow
220 # PlanetLab Mom: Cleans up your mess
222 pl_mom-MODULES := Mom
223 pl_mom-SPEC := pl_mom.spec
225 IN_BOOTSTRAPFS += pl_mom
230 iptables-MODULES := iptables
231 iptables-SPEC := iptables.spec
232 iptables-DEPEND-DEVEL-RPMS := kernel-devel
234 IN_BOOTSTRAPFS += iptables
239 iproute-MODULES := iproute2
240 iproute-SPEC := iproute.spec
242 IN_BOOTSTRAPFS += iproute
248 vsys-SPEC := vsys.spec
249 ifeq "$(DISTRONAME)" "f7"
250 IN_BOOTSTRAPFS += vsys
253 ifeq "$(DISTRONAME)" "f8"
254 IN_BOOTSTRAPFS += vsys
257 ifeq "$(DISTRONAME)" "centos5"
258 IN_BOOTSTRAPFS += vsys
265 PLCAPI-MODULES := PLCAPI
266 PLCAPI-SPEC := PLCAPI.spec
273 PLCWWW-MODULES := PLCWWW
274 PLCWWW-SPEC := PLCWWW.spec
281 nodeconfig-MODULES := nodeconfig
282 nodeconfig-SPEC := nodeconfig.spec
284 IN_MYPLC += nodeconfig
289 bootmanager-MODULES := BootManager
290 bootmanager-SPEC := bootmanager.spec
292 IN_MYPLC += bootmanager
295 # pypcilib : used in bootcd
297 pypcilib-MODULES := pypcilib
298 pypcilib-SPEC := pypcilib.spec
300 IN_BOOTCD += pypcilib
305 bootcd-MODULES := BootCD build
306 bootcd-SPEC := bootcd.spec
307 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
308 # package has *some* dependencies, at least these ones
309 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
310 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
315 # vserver : reference image for slices
317 vserver-MODULES := VserverReference build
318 vserver-SPEC := vserver-reference.spec
319 # Package must be built as root
320 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
321 # this list is useful for manual builds only, since nightly builds
322 # always redo all sequentially - try to keep updated
323 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
324 vserver-DEPEND-FILES := RPMS/yumgroups.xml
326 IN_BOOTSTRAPFS += vserver
331 bootstrapfs-MODULES := BootstrapFS build
332 bootstrapfs-SPEC := bootstrapfs.spec
333 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
334 # package requires all regular packages
335 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
336 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
338 IN_MYPLC += bootstrapfs
343 # all rpms resulting from packages marked as being in bootstrapfs and vserver
344 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
345 # replace space with +++ (specvars cannot deal with spaces)
347 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
349 noderepo-MODULES := BootstrapFS
350 noderepo-SPEC := noderepo.spec
351 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
352 # package requires all regular packages
353 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
354 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
355 #export rpm list to the specfile
356 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
361 # myplc : initial, chroot-based packaging
363 myplc-MODULES := MyPLC build
364 myplc-SPEC := myplc.spec
365 # Package must be built as root
366 myplc-RPMBUILD := sudo bash ./rpmbuild.sh
367 # myplc may require all packages
368 myplc-DEPEND-PACKAGES := $(IN_MYPLC)
369 myplc-DEPEND-FILES := RPMS/yumgroups.xml myplc-release
373 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
375 myplc-native-MODULES := MyPLC build
376 myplc-native-SPEC := myplc-native.spec
377 # Package must be built as root
378 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
379 # Thierry : don't depend on anything at build-time
380 #myplc-native-DEPEND-PACKAGES :=
381 # Thierry : dunno about this one, let's stay safe
382 myplc-native-DEPEND-FILES := myplc-release