4 # declare the packages to be built and their dependencies
5 # initial version from Mark Huang
6 # Mark Huang <mlhuang@cs.princeton.edu>
7 # Copyright (C) 2003-2006 The Trustees of Princeton University
8 # rewritten by Thierry Parmentelat - INRIA Sophia Antipolis
17 ifeq "$(PLDISTROTAGS)" "coblitz-latest-tags.mk"
18 ifeq "$(DISTRONAME)" "sl6"
20 certmaster-MODULES := certmaster
21 certmaster-SPEC := certmaster.spec
22 certmaster-BUILD-FROM-SRPM := yes
24 IN_BOOTSTRAPFS += certmaster
25 IN_MYPLC += certmaster
29 func-SPEC := func.spec
30 func-BUILD-FROM-SRPM := yes
32 IN_BOOTSTRAPFS += func
41 ifeq "$(PLDISTROTAGS)" "coblitz-latest-tags.mk"
42 ifeq "$(DISTRONAME)" "centos5"
43 mkinitrd-MODULES := mkinitrd
44 mkinitrd-SPEC := mkinitrd.spec
45 mkinitrd-BUILD-FROM-SRPM := yes
48 IN_VSERVER += mkinitrd
49 IN_BOOTSTRAPFS += mkinitrd
57 # use a package name with srpm in it:
58 # so the source rpm is created by running make srpm in the codebase
61 kernel-MODULES := linux-2.6
62 kernel-SPEC := kernel-2.6.spec
63 kernel-BUILD-FROM-SRPM := yes
64 ifeq "$(HOSTARCH)" "i386"
65 kernel-RPMFLAGS:= --target i686
67 kernel-RPMFLAGS:= --target $(HOSTARCH)
72 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
75 # this is to mark on which image a given rpm is supposed to go
76 IN_BOOTCD += $(KERNELS)
77 IN_VSERVER += $(KERNELS)
78 IN_BOOTSTRAPFS += $(KERNELS)
79 # turns out myplc installs kernel-vserver
80 IN_MYPLC += $(KERNELS)
85 util-vserver-MODULES := util-vserver
86 util-vserver-SPEC := util-vserver.spec
87 util-vserver-RPMFLAGS:= --without dietlibc
89 IN_BOOTSTRAPFS += util-vserver
92 # libnl - local import
93 # we need either 1.1 or at least 1.0.pre6
94 # rebuild this on centos5 - see kexcludes in build.common
97 ifeq "$(DISTRONAME)" "centos5"
101 ifeq "$(local_libnl)" "true"
102 libnl-MODULES := libnl
103 libnl-SPEC := libnl.spec
104 libnl-BUILD-FROM-SRPM := yes
105 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
106 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
108 IN_BOOTSTRAPFS += libnl
114 util-vserver-pl-MODULES := util-vserver-pl
115 util-vserver-pl-SPEC := util-vserver-pl.spec
116 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
117 ifeq "$(local_libnl)" "true"
118 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
120 ALL += util-vserver-pl
121 IN_BOOTSTRAPFS += util-vserver-pl
126 nodeupdate-MODULES := nodeupdate
127 nodeupdate-SPEC := NodeUpdate.spec
129 IN_BOOTSTRAPFS += nodeupdate
134 nodemanager-MODULES := nodemanager
135 nodemanager-SPEC := NodeManager.spec
137 IN_BOOTSTRAPFS += nodemanager
140 # codemux: Port 80 demux
142 codemux-MODULES := codemux
143 codemux-SPEC := codemux.spec
145 #IN_BOOTSTRAPFS += codemux
150 fprobe-ulog-MODULES := fprobe-ulog
151 fprobe-ulog-SPEC := fprobe-ulog.spec
153 #IN_BOOTSTRAPFS += fprobe-ulog
158 pf2slice-MODULES := pf2slice
159 pf2slice-SPEC := pf2slice.spec
163 # PlanetLab Mom: Cleans up your mess
166 mom-SPEC := pl_mom.spec
168 #IN_BOOTSTRAPFS += mom
173 iptables-MODULES := iptables
174 iptables-SPEC := iptables.spec
175 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
177 IN_BOOTSTRAPFS += iptables
182 iproute-MODULES := iproute2
183 iproute-SPEC := iproute.spec
185 IN_BOOTSTRAPFS += iproute
186 IN_VSERVER += iproute
190 # inotify-tools - local import
191 # rebuild this on centos5 (not found) - see kexcludes in build.common
193 local_inotify_tools=false
194 ifeq "$(DISTRONAME)" "centos5"
195 local_inotify_tools=true
198 ifeq "$(DISTRONAME)" "sl6"
199 local_inotify_tools=true
202 ifeq "$(local_inotify_tools)" "true"
203 inotify-tools-MODULES := inotify-tools
204 inotify-tools-SPEC := inotify-tools.spec
205 inotify-tools-BUILD-FROM-SRPM := yes
206 IN_BOOTSTRAPFS += inotify-tools
214 vsys-SPEC := vsys.spec
215 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
216 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
217 ifeq "$(local_inotify_tools)" "true"
218 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
220 IN_BOOTSTRAPFS += vsys
226 vsys-scripts-MODULES := vsys-scripts
227 vsys-scripts-SPEC := vsys-scripts.spec
228 IN_BOOTSTRAPFS += vsys-scripts
234 PLCAPI-MODULES := plcapi
235 PLCAPI-SPEC := PLCAPI.spec
242 drupal-MODULES := drupal
243 drupal-SPEC := drupal.spec
244 drupal-BUILD-FROM-SRPM := yes
249 # use the plewww module instead
251 plewww-MODULES := plewww
252 plewww-SPEC := plewww.spec
259 pcucontrol-MODULES := pcucontrol
260 pcucontrol-SPEC := pcucontrol.spec
266 monitor-MODULES := monitor
267 monitor-SPEC := Monitor.spec
268 monitor-DEVEL-RPMS += net-snmp net-snmp-devel
270 IN_BOOTSTRAPFS += monitor
276 pyopenssl-MODULES := pyopenssl
277 pyopenssl-SPEC := pyOpenSSL.spec
278 pyopenssl-BUILD-FROM-SRPM := yes
284 pyaspects-MODULES := pyaspects
285 pyaspects-SPEC := pyaspects.spec
286 pyaspects-BUILD-FROM-SRPM := yes
292 nodeconfig-MODULES := nodeconfig build
293 nodeconfig-SPEC := nodeconfig.spec
295 IN_MYPLC += nodeconfig
300 bootmanager-MODULES := bootmanager
301 bootmanager-SPEC := bootmanager.spec
303 IN_MYPLC += bootmanager
306 # pypcilib : used in bootcd
308 pypcilib-MODULES := pypcilib
309 pypcilib-SPEC := pypcilib.spec
311 IN_BOOTCD += pypcilib
316 pyplnet-MODULES := pyplnet
317 pyplnet-SPEC := pyplnet.spec
319 IN_BOOTSTRAPFS += pyplnet
326 bootcd-MODULES := bootcd build
327 bootcd-SPEC := bootcd.spec
328 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
329 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
330 bootcd-RPMDATE := yes
335 # vserver : reference image for slices
337 vserver-MODULES := vserver-reference build
338 vserver-SPEC := vserver-reference.spec
339 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
340 vserver-DEPEND-FILES := RPMS/yumgroups.xml
341 vserver-RPMDATE := yes
343 IN_BOOTSTRAPFS += vserver
348 bootstrapfs-MODULES := bootstrapfs build
349 bootstrapfs-SPEC := bootstrapfs.spec
350 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
351 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
352 bootstrapfs-RPMDATE := yes
354 IN_MYPLC += bootstrapfs
359 # all rpms resulting from packages marked as being in bootstrapfs and vserver
360 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
361 # replace space with +++ (specvars cannot deal with spaces)
363 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
365 noderepo-MODULES := bootstrapfs
366 noderepo-SPEC := noderepo.spec
367 # package requires all regular packages
368 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
369 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
370 #export rpm list to the specfile
371 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
372 noderepo-RPMDATE := yes
377 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
379 myplc-MODULES := myplc build
380 myplc-SPEC := myplc.spec
381 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
384 # myplc-docs only contains docs for PLCAPI and NMAPI, but
385 # we still need to pull MyPLC, as it is where the specfile lies,
386 # together with the utility script docbook2drupal.sh
387 myplc-docs-MODULES := myplc plcapi nodemanager
388 myplc-docs-SPEC := myplc-docs.spec
391 # using some other name than myplc-release, as this is a make target already
392 release-MODULES := myplc
393 release-SPEC := myplc-release.spec
394 release-RPMDATE := yes
397 ifeq "$(PLDISTROTAGS)" "coblitz-latest-tags.mk"
398 # chroot supported yum
401 yum-BUILD-FROM-SRPM := yes