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-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)
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 # [daniel] wait for latest Fedora release
70 # (03:29:46 PM) daniel_hozac: interfacing with the kernel directly when dealing with netlink was fugly, so... i had to find something nicer.
71 # (03:29:53 PM) daniel_hozac: the one in Fedora is lacking certain APIs i need.
73 libnl-MODULES := libnl
74 libnl-SPEC := libnl.spec
80 util-vserver-MODULES := util-vserver
81 util-vserver-SPEC := util-vserver.spec
82 util-vserver-RPMFLAGS:= --without dietlibc
84 IN_BOOTSTRAPFS += util-vserver
89 util-vserver-pl-MODULES := util-vserver-pl
90 util-vserver-pl-SPEC := util-vserver-pl.spec
91 util-vserver-pl-DEPEND-DEVEL-RPMS := libnl libnl-devel util-vserver-lib util-vserver-devel util-vserver-core
92 ALL += util-vserver-pl
93 IN_BOOTSTRAPFS += util-vserver-pl
98 NodeUpdate-MODULES := NodeUpdate
99 NodeUpdate-SPEC := NodeUpdate.spec
101 IN_BOOTSTRAPFS += NodeUpdate
106 ipod-MODULES := PingOfDeath
107 ipod-SPEC := ipod.spec
109 IN_BOOTSTRAPFS += ipod
114 NodeManager-MODULES := NodeManager
115 NodeManager-SPEC := NodeManager.spec
117 IN_BOOTSTRAPFS += NodeManager
122 pl_sshd-MODULES := pl_sshd
123 pl_sshd-SPEC := pl_sshd.spec
125 IN_BOOTSTRAPFS += pl_sshd
128 # codemux: Port 80 demux
130 codemux-MODULES := CoDemux
131 codemux-SPEC := codemux.spec
132 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
134 IN_BOOTSTRAPFS += codemux
139 fprobe-ulog-MODULES := fprobe-ulog
140 fprobe-ulog-SPEC := fprobe-ulog.spec
142 IN_BOOTSTRAPFS += fprobe-ulog
147 pf2slice-MODULES := pf2slice
148 pf2slice-SPEC := pf2slice.spec
152 # PlanetLab Mom: Cleans up your mess
154 pl_mom-MODULES := Mom
155 pl_mom-SPEC := pl_mom.spec
157 IN_BOOTSTRAPFS += pl_mom
162 iptables-MODULES := iptables
163 iptables-SPEC := iptables.spec
164 iptables-DEPEND-DEVEL-RPMS := kernel-devel
166 IN_BOOTSTRAPFS += iptables
171 iproute-MODULES := iproute2
172 iproute-SPEC := iproute.spec
174 IN_BOOTSTRAPFS += iproute
175 IN_VSERVER += iproute
182 ifeq "$(DISTRONAME)" "fc4"
185 ifeq "$(DISTRONAME)" "fc6"
188 # cannot find the required packages (see devel.pkgs) on centos5
189 ifeq "$(DISTRONAME)" "centos5"
193 ifeq "$(vsys_support)" "yes"
195 vsys-SPEC := vsys.spec
196 IN_BOOTSTRAPFS += vsys
203 PLCAPI-MODULES := PLCAPI
204 PLCAPI-SPEC := PLCAPI.spec
211 PLCWWW-MODULES := PLCWWW
212 PLCWWW-SPEC := PLCWWW.spec
219 Monitor-MODULES := Monitor
220 Monitor-SPEC := Monitor.spec
222 IN_BOOTSTRAPFS += Monitor
227 nodeconfig-MODULES := nodeconfig
228 nodeconfig-SPEC := nodeconfig.spec
230 IN_MYPLC += nodeconfig
235 bootmanager-MODULES := BootManager
236 bootmanager-SPEC := bootmanager.spec
238 IN_MYPLC += bootmanager
241 # pypcilib : used in bootcd
243 pypcilib-MODULES := pypcilib
244 pypcilib-SPEC := pypcilib.spec
246 IN_BOOTCD += pypcilib
251 bootcd-MODULES := BootCD build
252 bootcd-SPEC := bootcd.spec
253 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
254 # package has *some* dependencies, at least these ones
255 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
256 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
257 bootcd-RPMDATE := yes
262 # vserver : reference image for slices
264 vserver-MODULES := VserverReference build
265 vserver-SPEC := vserver-reference.spec
266 # Package must be built as root
267 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
268 # this list is useful for manual builds only, since nightly builds
269 # always redo all sequentially - try to keep updated
270 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
271 vserver-DEPEND-FILES := RPMS/yumgroups.xml
272 vserver-RPMDATE := yes
274 IN_BOOTSTRAPFS += vserver
279 bootstrapfs-MODULES := BootstrapFS build
280 bootstrapfs-SPEC := bootstrapfs.spec
281 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
282 # package requires all regular packages
283 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
284 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
285 bootstrapfs-RPMDATE := yes
287 IN_MYPLC += bootstrapfs
292 # all rpms resulting from packages marked as being in bootstrapfs and vserver
293 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
294 # replace space with +++ (specvars cannot deal with spaces)
296 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
298 noderepo-MODULES := BootstrapFS
299 noderepo-SPEC := noderepo.spec
300 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
301 # package requires all regular packages
302 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
303 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
304 #export rpm list to the specfile
305 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
306 noderepo-RPMDATE := yes
311 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
313 myplc-native-MODULES := MyPLC build
314 myplc-native-SPEC := myplc-native.spec
315 # Package must be built as root
316 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
317 # Thierry : don't depend on anything at build-time
318 #myplc-native-DEPEND-PACKAGES :=
319 # Thierry : dunno about this one, let's stay safe
320 myplc-native-DEPEND-FILES := myplc-release
324 ## # myplc : old-fashioned, chroot-based packaging
326 ## myplc-MODULES := MyPLC build
327 ## myplc-SPEC := myplc.spec
328 ## # Package must be built as root
329 ## myplc-RPMBUILD := sudo bash ./rpmbuild.sh
330 ## # myplc may require all packages
331 ## myplc-DEPEND-PACKAGES := $(IN_MYPLC)
332 ## myplc-DEPEND-FILES := RPMS/yumgroups.xml myplc-release
333 ## myplc-RPMDATE := yes
336 myplc-docs-MODULES := MyPLC PLCAPI NodeManager
337 myplc-docs-SPEC := myplc-docs.spec