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 vsys-DEPEND-DEVEL-RPMS := kernel-headers ocaml ocaml-docs inotify-tools inotify-tools-devel
186 IN_BOOTSTRAPFS += vsys
193 PLCAPI-MODULES := PLCAPI
194 PLCAPI-SPEC := PLCAPI.spec
201 PLCWWW-MODULES := PLCWWW
202 PLCWWW-SPEC := PLCWWW.spec
209 Monitor-MODULES := Monitor
210 Monitor-SPEC := Monitor.spec
212 IN_BOOTSTRAPFS += Monitor
217 monitor-server-MODULES := Monitor
218 monitor-server-SPEC := monitor-server.spec
219 ALL += monitor-server
224 nodeconfig-MODULES := nodeconfig
225 nodeconfig-SPEC := nodeconfig.spec
227 IN_MYPLC += nodeconfig
232 bootmanager-MODULES := BootManager
233 bootmanager-SPEC := bootmanager.spec
235 IN_MYPLC += bootmanager
238 # pypcilib : used in bootcd
240 pypcilib-MODULES := pypcilib
241 pypcilib-SPEC := pypcilib.spec
243 IN_BOOTCD += pypcilib
248 bootcd-MODULES := BootCD build
249 bootcd-SPEC := bootcd.spec
250 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
251 # package has *some* dependencies, at least these ones
252 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
253 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
254 bootcd-RPMDATE := yes
259 # vserver : reference image for slices
261 vserver-MODULES := VserverReference build
262 vserver-SPEC := vserver-reference.spec
263 # Package must be built as root
264 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
265 # this list is useful for manual builds only, since nightly builds
266 # always redo all sequentially - try to keep updated
267 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
268 vserver-DEPEND-FILES := RPMS/yumgroups.xml
269 vserver-RPMDATE := yes
271 IN_BOOTSTRAPFS += vserver
276 bootstrapfs-MODULES := BootstrapFS build
277 bootstrapfs-SPEC := bootstrapfs.spec
278 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
279 # package requires all regular packages
280 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
281 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
282 bootstrapfs-RPMDATE := yes
284 IN_MYPLC += bootstrapfs
289 # all rpms resulting from packages marked as being in bootstrapfs and vserver
290 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
291 # replace space with +++ (specvars cannot deal with spaces)
293 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
295 noderepo-MODULES := BootstrapFS
296 noderepo-SPEC := noderepo.spec
297 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
298 # package requires all regular packages
299 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
300 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
301 #export rpm list to the specfile
302 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
303 noderepo-RPMDATE := yes
308 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
310 myplc-native-MODULES := MyPLC build
311 myplc-native-SPEC := myplc-native.spec
312 # Package must be built as root
313 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
314 myplc-native-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
318 ## # myplc : old-fashioned, chroot-based packaging
320 ## myplc-MODULES := MyPLC build
321 ## myplc-SPEC := myplc.spec
322 ## # Package must be built as root
323 ## myplc-RPMBUILD := sudo bash ./rpmbuild.sh
324 ## # myplc may require all packages
325 ## myplc-DEPEND-PACKAGES := $(IN_MYPLC)
326 ## myplc-DEPEND-FILES := RPMS/yumgroups.xml myplc-release
327 ## myplc-RPMDATE := yes
330 # myplc-docs only contains docs for PLCAPI and NMAPI, but
331 # we still need to pull MyPLC, as it is where the specfile lies,
332 # together with the utility script docbook2drupal.sh
333 myplc-docs-MODULES := MyPLC PLCAPI NodeManager
334 myplc-docs-SPEC := myplc-docs.spec