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
23 IN_BOOTSTRAPFS += certmaster
24 IN_MYPLC += certmaster
28 func-SPEC := func.spec
30 IN_BOOTSTRAPFS += func
39 ifeq "$(PLDISTROTAGS)" "coblitz-latest-tags.mk"
40 ifeq "$(DISTRONAME)" "centos5"
41 mkinitrd-MODULES := mkinitrd
42 mkinitrd-SPEC := mkinitrd.spec
43 mkinitrd-BUILD-FROM-SRPM := yes
46 IN_VSERVER += mkinitrd
47 IN_BOOTSTRAPFS += mkinitrd
55 # use a package name with srpm in it:
56 # so the source rpm is created by running make srpm in the codebase
59 kernel-MODULES := linux-2.6
60 kernel-SPEC := kernel-2.6.spec
61 kernel-BUILD-FROM-SRPM := yes
62 ifeq "$(HOSTARCH)" "i386"
63 kernel-RPMFLAGS:= --target i686
65 kernel-RPMFLAGS:= --target $(HOSTARCH)
70 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
73 # this is to mark on which image a given rpm is supposed to go
74 IN_BOOTCD += $(KERNELS)
75 IN_VSERVER += $(KERNELS)
76 IN_BOOTSTRAPFS += $(KERNELS)
77 # turns out myplc installs kernel-vserver
78 IN_MYPLC += $(KERNELS)
83 util-vserver-MODULES := util-vserver
84 util-vserver-SPEC := util-vserver.spec
85 util-vserver-RPMFLAGS:= --without dietlibc
87 IN_BOOTSTRAPFS += util-vserver
90 # libnl - local import
91 # we need either 1.1 or at least 1.0.pre6
92 # rebuild this on centos5 - see kexcludes in build.common
95 ifeq "$(DISTRONAME)" "centos5"
99 ifeq "$(local_libnl)" "true"
100 libnl-MODULES := libnl
101 libnl-SPEC := libnl.spec
102 libnl-BUILD-FROM-SRPM := yes
103 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
104 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
106 IN_BOOTSTRAPFS += libnl
112 util-vserver-pl-MODULES := util-vserver-pl
113 util-vserver-pl-SPEC := util-vserver-pl.spec
114 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
115 ifeq "$(local_libnl)" "true"
116 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
118 ALL += util-vserver-pl
119 IN_BOOTSTRAPFS += util-vserver-pl
124 nodeupdate-MODULES := nodeupdate
125 nodeupdate-SPEC := NodeUpdate.spec
127 IN_BOOTSTRAPFS += nodeupdate
132 nodemanager-MODULES := nodemanager
133 nodemanager-SPEC := NodeManager.spec
135 IN_BOOTSTRAPFS += nodemanager
138 # codemux: Port 80 demux
140 codemux-MODULES := codemux
141 codemux-SPEC := codemux.spec
143 #IN_BOOTSTRAPFS += codemux
148 fprobe-ulog-MODULES := fprobe-ulog
149 fprobe-ulog-SPEC := fprobe-ulog.spec
151 #IN_BOOTSTRAPFS += fprobe-ulog
156 pf2slice-MODULES := pf2slice
157 pf2slice-SPEC := pf2slice.spec
161 # PlanetLab Mom: Cleans up your mess
164 mom-SPEC := pl_mom.spec
166 #IN_BOOTSTRAPFS += mom
171 iptables-MODULES := iptables
172 iptables-SPEC := iptables.spec
173 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
175 IN_BOOTSTRAPFS += iptables
180 iproute-MODULES := iproute2
181 iproute-SPEC := iproute.spec
183 IN_BOOTSTRAPFS += iproute
184 IN_VSERVER += iproute
188 # inotify-tools - local import
189 # rebuild this on centos5 (not found) - see kexcludes in build.common
191 local_inotify_tools=false
192 ifeq "$(DISTRONAME)" "centos5"
193 local_inotify_tools=true
196 ifeq "$(DISTRONAME)" "sl6"
197 local_inotify_tools=true
200 ifeq "$(local_inotify_tools)" "true"
201 inotify-tools-MODULES := inotify-tools
202 inotify-tools-SPEC := inotify-tools.spec
203 inotify-tools-BUILD-FROM-SRPM := yes
204 IN_BOOTSTRAPFS += inotify-tools
212 vsys-SPEC := vsys.spec
213 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
214 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
215 ifeq "$(local_inotify_tools)" "true"
216 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
218 IN_BOOTSTRAPFS += vsys
224 vsys-scripts-MODULES := vsys-scripts
225 vsys-scripts-SPEC := vsys-scripts.spec
226 IN_BOOTSTRAPFS += vsys-scripts
232 PLCAPI-MODULES := plcapi
233 PLCAPI-SPEC := PLCAPI.spec
240 drupal-MODULES := drupal
241 drupal-SPEC := drupal.spec
242 drupal-BUILD-FROM-SRPM := yes
247 # use the plewww module instead
249 plewww-MODULES := plewww
250 plewww-SPEC := plewww.spec
257 pcucontrol-MODULES := pcucontrol
258 pcucontrol-SPEC := pcucontrol.spec
264 monitor-MODULES := monitor
265 monitor-SPEC := Monitor.spec
266 monitor-DEVEL-RPMS += net-snmp net-snmp-devel
268 IN_BOOTSTRAPFS += monitor
274 pyopenssl-MODULES := pyopenssl
275 pyopenssl-SPEC := pyOpenSSL.spec
276 pyopenssl-BUILD-FROM-SRPM := yes
282 pyaspects-MODULES := pyaspects
283 pyaspects-SPEC := pyaspects.spec
284 pyaspects-BUILD-FROM-SRPM := yes
290 nodeconfig-MODULES := nodeconfig build
291 nodeconfig-SPEC := nodeconfig.spec
293 IN_MYPLC += nodeconfig
298 bootmanager-MODULES := bootmanager
299 bootmanager-SPEC := bootmanager.spec
301 IN_MYPLC += bootmanager
304 # pypcilib : used in bootcd
306 pypcilib-MODULES := pypcilib
307 pypcilib-SPEC := pypcilib.spec
309 IN_BOOTCD += pypcilib
314 pyplnet-MODULES := pyplnet
315 pyplnet-SPEC := pyplnet.spec
317 IN_BOOTSTRAPFS += pyplnet
324 bootcd-MODULES := bootcd build
325 bootcd-SPEC := bootcd.spec
326 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
327 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
328 bootcd-RPMDATE := yes
333 # vserver : reference image for slices
335 vserver-MODULES := vserver-reference build
336 vserver-SPEC := vserver-reference.spec
337 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
338 vserver-DEPEND-FILES := RPMS/yumgroups.xml
339 vserver-RPMDATE := yes
341 IN_BOOTSTRAPFS += vserver
346 bootstrapfs-MODULES := bootstrapfs build
347 bootstrapfs-SPEC := bootstrapfs.spec
348 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
349 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
350 bootstrapfs-RPMDATE := yes
352 IN_MYPLC += bootstrapfs
357 # all rpms resulting from packages marked as being in bootstrapfs and vserver
358 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
359 # replace space with +++ (specvars cannot deal with spaces)
361 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
363 noderepo-MODULES := bootstrapfs
364 noderepo-SPEC := noderepo.spec
365 # package requires all regular packages
366 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
367 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
368 #export rpm list to the specfile
369 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
370 noderepo-RPMDATE := yes
375 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
377 myplc-MODULES := myplc build
378 myplc-SPEC := myplc.spec
379 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
382 # myplc-docs only contains docs for PLCAPI and NMAPI, but
383 # we still need to pull MyPLC, as it is where the specfile lies,
384 # together with the utility script docbook2drupal.sh
385 myplc-docs-MODULES := myplc plcapi nodemanager
386 myplc-docs-SPEC := myplc-docs.spec
389 # using some other name than myplc-release, as this is a make target already
390 release-MODULES := myplc
391 release-SPEC := myplc-release.spec
392 release-RPMDATE := yes
395 ifeq "$(PLDISTROTAGS)" "coblitz-latest-tags.mk"
396 # chroot supported yum
399 yum-BUILD-FROM-SRPM := yes