2 # PlanetLab 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 "$(DISTRO)" "Fedora"
46 kexec-tools-MODULES := kexec-tools
47 kexec-tools-SPEC := kexec-tools.spec
48 kexec-tools-CVSROOT := :pserver:anon@cvs.planet-lab.org:/cvs
49 kexec-tools-TAG := planetlab-4_1-rc2
51 IN_BOOTCD += kexec-tools
58 madwifi-MODULES := madwifi
59 madwifi-SPEC := madwifi.spec
60 madwifi-BUILD-FROM-SRPM := yes
61 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
62 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
63 kernel_release=$(kernel.rpm-release) \
64 kernel_arch=$(kernel.rpm-arch)
66 IN_BOOTSTRAPFS += madwifi
71 wireless-tools-MODULES := wireless-tools
72 wireless-tools-SPEC := wireless-tools.spec
73 wireless-tools-BUILD-FROM-SRPM := yes
75 IN_BOOTSTRAPFS += wireless-tools
80 # [daniel] wait for latest Fedora release
81 # (03:29:46 PM) daniel_hozac: interfacing with the kernel directly when dealing with netlink was fugly, so... i had to find something nicer.
82 # (03:29:53 PM) daniel_hozac: the one in Fedora is lacking certain APIs i need.
84 libnl-MODULES := libnl
85 libnl-SPEC := libnl.spec
91 util-vserver-MODULES := util-vserver
92 util-vserver-SPEC := util-vserver.spec
93 util-vserver-RPMFLAGS:= --without dietlibc
95 IN_BOOTSTRAPFS += util-vserver
100 util-vserver-pl-MODULES := util-vserver-pl
101 util-vserver-pl-SPEC := util-vserver-pl.spec
102 util-vserver-pl-DEPEND-DEVEL-RPMS := libnl libnl-devel util-vserver-lib util-vserver-devel util-vserver-core
103 ALL += util-vserver-pl
104 IN_BOOTSTRAPFS += util-vserver-pl
109 NodeUpdate-MODULES := NodeUpdate
110 NodeUpdate-SPEC := NodeUpdate.spec
112 IN_BOOTSTRAPFS += NodeUpdate
117 ipod-MODULES := PingOfDeath
118 ipod-SPEC := ipod.spec
120 IN_BOOTSTRAPFS += ipod
125 NodeManager-MODULES := NodeManager
126 NodeManager-SPEC := NodeManager.spec
128 IN_BOOTSTRAPFS += NodeManager
133 pl_sshd-MODULES := pl_sshd
134 pl_sshd-SPEC := pl_sshd.spec
136 IN_BOOTSTRAPFS += pl_sshd
141 # Deprecate when vsys takes over [sapan].
142 # keep in build for proper.
144 libhttpd-MODULES := libhttpd++
145 libhttpd-SPEC := libhttpd++.spec
147 IN_BOOTSTRAPFS += libhttpd
150 # proper: Privileged Operations Service
152 proper-MODULES := proper
153 proper-SPEC := proper.spec
154 proper-DEPEND-DEVEL-RPMS := libhttpd++-devel
156 IN_BOOTSTRAPFS += proper
159 # codemux: Port 80 demux
161 codemux-MODULES := CoDemux
162 codemux-SPEC := codemux.spec
163 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
165 IN_BOOTSTRAPFS += codemux
170 ulogd-MODULES := ulogd
171 ulogd-SPEC := ulogd.spec
172 ulogd-DEPEND-DEVEL-RPMS := kernel-devel proper-libs proper-devel
179 fprobe-ulog-MODULES := fprobe-ulog
180 fprobe-ulog-SPEC := fprobe-ulog.spec
182 IN_BOOTSTRAPFS += fprobe-ulog
187 netflow-MODULES := PlanetFlow
188 netflow-SPEC := netflow.spec
190 IN_BOOTSTRAPFS += netflow
193 # PlanetLab Mom: Cleans up your mess
195 pl_mom-MODULES := Mom
196 pl_mom-SPEC := pl_mom.spec
198 IN_BOOTSTRAPFS += pl_mom
203 iptables-MODULES := iptables
204 iptables-SPEC := iptables.spec
205 iptables-DEPEND-DEVEL-RPMS := kernel-devel
207 IN_BOOTSTRAPFS += iptables
212 iproute-MODULES := iproute2
213 iproute-SPEC := iproute.spec
215 IN_BOOTSTRAPFS += iproute
221 vsys-SPEC := vsys.spec
222 IN_BOOTSTRAPFS += vsys
223 ifeq "$(DISTRO)" "Fedora"
224 ifeq "$(RELEASE)" "7"
227 ifeq "$(RELEASE)" "8"
235 PLCAPI-MODULES := PLCAPI
236 PLCAPI-SPEC := PLCAPI.spec
243 PLCWWW-MODULES := WWW
244 PLCWWW-SPEC := PLCWWW.spec
251 bootmanager-MODULES := BootManager
252 bootmanager-SPEC := bootmanager.spec
254 IN_MYPLC += bootmanager
257 # pypcilib : used in bootcd
259 pypcilib-MODULES := pypcilib
260 pypcilib-SPEC := pypcilib.spec
262 IN_BOOTCD += pypcilib
267 bootcd-MODULES := BootCD build
268 bootcd-SPEC := bootcd.spec
269 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
270 # package has *some* dependencies, at least these ones
271 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
272 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
277 # vserver : reference image for slices
279 vserver-MODULES := VserverReference build
280 vserver-SPEC := vserver-reference.spec
281 # Package must be built as root
282 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
283 # this list is useful for manual builds only, since nightly builds
284 # always redo all sequentially - try to keep updated
285 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
286 vserver-DEPEND-FILES := RPMS/yumgroups.xml
288 IN_BOOTSTRAPFS += vserver
293 bootstrapfs-MODULES := BootstrapFS build
294 bootstrapfs-SPEC := bootstrapfs.spec
295 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
296 # package requires all regular packages
297 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
298 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
300 IN_MYPLC += bootstrapfs
303 # myplc : initial, chroot-based packaging
305 myplc-MODULES := MyPLC build
306 myplc-SPEC := myplc.spec
307 # Package must be built as root
308 myplc-RPMBUILD := sudo bash ./rpmbuild.sh
309 # myplc may require all packages
310 myplc-DEPEND-PACKAGES := $(IN_MYPLC)
311 myplc-DEPEND-FILES := RPMS/yumgroups.xml myplc-release
315 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
317 myplc-native-MODULES := MyPLC build
318 myplc-native-SPEC := myplc-native.spec
319 # Package must be built as root
320 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
321 # Thierry : don't depend on anything at build-time
322 #myplc-native-DEPEND-PACKAGES :=
323 # Thierry : dunno about this one, let's stay safe
324 myplc-native-DEPEND-FILES := myplc-release