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 util-vserver-MODULES := util-vserver
70 util-vserver-SPEC := util-vserver.spec
71 util-vserver-RPMFLAGS:= --without dietlibc
73 IN_BOOTSTRAPFS += util-vserver
78 util-vserver-pl-MODULES := util-vserver-pl
79 util-vserver-pl-SPEC := util-vserver-pl.spec
80 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
81 ALL += util-vserver-pl
82 IN_BOOTSTRAPFS += util-vserver-pl
87 NodeUpdate-MODULES := NodeUpdate
88 NodeUpdate-SPEC := NodeUpdate.spec
90 IN_BOOTSTRAPFS += NodeUpdate
95 ipod-MODULES := PingOfDeath
96 ipod-SPEC := ipod.spec
98 IN_BOOTSTRAPFS += ipod
103 NodeManager-MODULES := NodeManager
104 NodeManager-SPEC := NodeManager.spec
106 IN_BOOTSTRAPFS += NodeManager
111 pl_sshd-MODULES := pl_sshd
112 pl_sshd-SPEC := pl_sshd.spec
114 IN_BOOTSTRAPFS += pl_sshd
117 # codemux: Port 80 demux
119 codemux-MODULES := CoDemux
120 codemux-SPEC := codemux.spec
121 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
123 IN_BOOTSTRAPFS += codemux
128 fprobe-ulog-MODULES := fprobe-ulog
129 fprobe-ulog-SPEC := fprobe-ulog.spec
131 IN_BOOTSTRAPFS += fprobe-ulog
136 pf2slice-MODULES := pf2slice
137 pf2slice-SPEC := pf2slice.spec
141 # PlanetLab Mom: Cleans up your mess
143 pl_mom-MODULES := Mom
144 pl_mom-SPEC := pl_mom.spec
146 IN_BOOTSTRAPFS += pl_mom
151 iptables-MODULES := iptables
152 iptables-SPEC := iptables.spec
153 iptables-DEPEND-DEVEL-RPMS := kernel-devel
155 IN_BOOTSTRAPFS += iptables
160 iproute-MODULES := iproute2
161 iproute-SPEC := iproute.spec
163 IN_BOOTSTRAPFS += iproute
164 IN_VSERVER += iproute
171 ifeq "$(DISTRONAME)" "fc4"
174 ifeq "$(DISTRONAME)" "fc6"
177 # cannot find the required packages (see devel.pkgs) on centos5
178 ifeq "$(DISTRONAME)" "centos5"
182 ifeq "$(vsys_support)" "yes"
184 vsys-SPEC := vsys.spec
185 IN_BOOTSTRAPFS += vsys
192 PLCAPI-MODULES := PLCAPI
193 PLCAPI-SPEC := PLCAPI.spec
200 PLCWWW-MODULES := PLCWWW
201 PLCWWW-SPEC := PLCWWW.spec
208 Monitor-MODULES := Monitor
209 Monitor-SPEC := Monitor.spec
211 IN_BOOTSTRAPFS += Monitor
216 monitor-server-MODULES := Monitor
217 monitor-server-SPEC := monitor-server.spec
218 ALL += monitor-server
223 nodeconfig-MODULES := nodeconfig
224 nodeconfig-SPEC := nodeconfig.spec
226 IN_MYPLC += nodeconfig
231 bootmanager-MODULES := BootManager
232 bootmanager-SPEC := bootmanager.spec
234 IN_MYPLC += bootmanager
237 # pypcilib : used in bootcd
239 pypcilib-MODULES := pypcilib
240 pypcilib-SPEC := pypcilib.spec
242 IN_BOOTCD += pypcilib
247 bootcd-MODULES := BootCD build
248 bootcd-SPEC := bootcd.spec
249 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
250 # package has *some* dependencies, at least these ones
251 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
252 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
253 bootcd-RPMDATE := yes
258 # vserver : reference image for slices
260 vserver-MODULES := VserverReference build
261 vserver-SPEC := vserver-reference.spec
262 # Package must be built as root
263 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
264 # this list is useful for manual builds only, since nightly builds
265 # always redo all sequentially - try to keep updated
266 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
267 vserver-DEPEND-FILES := RPMS/yumgroups.xml
268 vserver-RPMDATE := yes
270 IN_BOOTSTRAPFS += vserver
275 bootstrapfs-MODULES := BootstrapFS build
276 bootstrapfs-SPEC := bootstrapfs.spec
277 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
278 # package requires all regular packages
279 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
280 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
281 bootstrapfs-RPMDATE := yes
283 IN_MYPLC += bootstrapfs
288 # all rpms resulting from packages marked as being in bootstrapfs and vserver
289 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
290 # replace space with +++ (specvars cannot deal with spaces)
292 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
294 noderepo-MODULES := BootstrapFS
295 noderepo-SPEC := noderepo.spec
296 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
297 # package requires all regular packages
298 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
299 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
300 #export rpm list to the specfile
301 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
302 noderepo-RPMDATE := yes
307 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
309 myplc-native-MODULES := MyPLC build
310 myplc-native-SPEC := myplc-native.spec
311 # Package must be built as root
312 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
313 myplc-native-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
317 ## # myplc : old-fashioned, chroot-based packaging
319 ## myplc-MODULES := MyPLC build
320 ## myplc-SPEC := myplc.spec
321 ## # Package must be built as root
322 ## myplc-RPMBUILD := sudo bash ./rpmbuild.sh
323 ## # myplc may require all packages
324 ## myplc-DEPEND-PACKAGES := $(IN_MYPLC)
325 ## myplc-DEPEND-FILES := RPMS/yumgroups.xml myplc-release
326 ## myplc-RPMDATE := yes
329 # myplc-docs only contains docs for PLCAPI and NMAPI, but
330 # we still need to pull MyPLC, as it is where the specfile lies,
331 # together with the utility script docbook2drupal.sh
332 myplc-docs-MODULES := MyPLC PLCAPI NodeManager
333 myplc-docs-SPEC := myplc-docs.spec