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-unstable-tags.mk"
18 ifeq "$(DISTRONAME)" "centos5"
19 mkinitrd-MODULES := mkinitrd
20 mkinitrd-SPEC := mkinitrd.spec
21 mkinitrd-BUILD-FROM-SRPM := yes
24 IN_VSERVER += mkinitrd
25 IN_BOOTSTRAPFS += mkinitrd
33 # use a package name with srpm in it:
34 # so the source rpm is created by running make srpm in the codebase
37 kernel-MODULES := linux-2.6
38 kernel-SPEC := kernel-2.6.spec
39 kernel-BUILD-FROM-SRPM := yes
40 ifeq "$(HOSTARCH)" "i386"
41 kernel-RPMFLAGS:= --target i686
43 kernel-RPMFLAGS:= --target $(HOSTARCH)
48 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
51 # this is to mark on which image a given rpm is supposed to go
52 IN_BOOTCD += $(KERNELS)
53 IN_VSERVER += $(KERNELS)
54 IN_BOOTSTRAPFS += $(KERNELS)
55 # turns out myplc installs kernel-vserver
56 IN_MYPLC += $(KERNELS)
61 madwifi-MODULES := madwifi
62 madwifi-SPEC := madwifi.spec
63 madwifi-BUILD-FROM-SRPM := yes
64 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
65 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
66 kernel_release=$(kernel.rpm-release) \
67 kernel_arch=$(kernel.rpm-arch)
69 #IN_BOOTSTRAPFS += madwifi
74 util-vserver-MODULES := util-vserver
75 util-vserver-SPEC := util-vserver.spec
76 util-vserver-RPMFLAGS:= --without dietlibc
78 IN_BOOTSTRAPFS += util-vserver
81 # libnl - local import
82 # we need either 1.1 or at least 1.0.pre6
83 # rebuild this on centos5 - see kexcludes in build.common
86 ifeq "$(DISTRONAME)" "centos5"
90 ifeq "$(local_libnl)" "true"
91 libnl-MODULES := libnl
92 libnl-SPEC := libnl.spec
93 libnl-BUILD-FROM-SRPM := yes
94 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
95 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
97 IN_BOOTSTRAPFS += libnl
103 util-vserver-pl-MODULES := util-vserver-pl
104 util-vserver-pl-SPEC := util-vserver-pl.spec
105 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
106 ifeq "$(local_libnl)" "true"
107 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
109 ALL += util-vserver-pl
110 IN_BOOTSTRAPFS += util-vserver-pl
115 nodeupdate-MODULES := nodeupdate
116 nodeupdate-SPEC := NodeUpdate.spec
118 IN_BOOTSTRAPFS += nodeupdate
123 ipod-MODULES := PingOfDeath
124 ipod-SPEC := ipod.spec
126 IN_BOOTSTRAPFS += ipod
131 nodemanager-MODULES := nodemanager
132 nodemanager-SPEC := NodeManager.spec
134 IN_BOOTSTRAPFS += nodemanager
139 sshd-MODULES := pl_sshd
140 sshd-SPEC := pl_sshd.spec
142 IN_BOOTSTRAPFS += sshd
145 # codemux: Port 80 demux
147 codemux-MODULES := codemux
148 codemux-SPEC := codemux.spec
150 #IN_BOOTSTRAPFS += codemux
155 fprobe-ulog-MODULES := fprobe-ulog
156 fprobe-ulog-SPEC := fprobe-ulog.spec
158 #IN_BOOTSTRAPFS += fprobe-ulog
163 pf2slice-MODULES := pf2slice
164 pf2slice-SPEC := pf2slice.spec
168 # PlanetLab Mom: Cleans up your mess
171 mom-SPEC := pl_mom.spec
173 #IN_BOOTSTRAPFS += mom
178 iptables-MODULES := iptables
179 iptables-SPEC := iptables.spec
180 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
182 IN_BOOTSTRAPFS += iptables
187 iproute-MODULES := iproute2
188 iproute-SPEC := iproute.spec
190 IN_BOOTSTRAPFS += iproute
191 IN_VSERVER += iproute
195 # inotify-tools - local import
196 # rebuild this on centos5 (not found) - see kexcludes in build.common
198 local_inotify_tools=false
199 ifeq "$(DISTRONAME)" "centos5"
200 local_inotify_tools=true
203 ifeq "$(local_inotify_tools)" "true"
204 inotify-tools-MODULES := inotify-tools
205 inotify-tools-SPEC := inotify-tools.spec
206 inotify-tools-BUILD-FROM-SRPM := yes
207 IN_BOOTSTRAPFS += inotify-tools
215 vsys-SPEC := vsys.spec
216 ifeq "$(local_inotify_tools)" "true"
217 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
219 IN_BOOTSTRAPFS += vsys
225 vsys-scripts-MODULES := vsys-scripts
226 vsys-scripts-SPEC := vsys-scripts.spec
227 IN_BOOTSTRAPFS += vsys-scripts
233 PLCAPI-MODULES := plcapi
234 PLCAPI-SPEC := PLCAPI.spec
241 drupal-MODULES := drupal
242 drupal-SPEC := drupal.spec
243 drupal-BUILD-FROM-SRPM := yes
248 # use the plewww module instead
250 plewww-MODULES := plewww
251 plewww-SPEC := plewww.spec
256 # www-register-wizard
258 www-register-wizard-MODULES := www-register-wizard
259 www-register-wizard-SPEC := www-register-wizard.spec
260 ALL += www-register-wizard
261 IN_MYPLC += www-register-wizard
266 pcucontrol-MODULES := pcucontrol
267 pcucontrol-SPEC := pcucontrol.spec
273 monitor-MODULES := Monitor
274 monitor-SPEC := Monitor.spec
276 IN_BOOTSTRAPFS += monitor
281 plcrt-MODULES := PLCRT
282 plcrt-SPEC := plcrt.spec
288 zabbix-MODULES := Monitor
289 zabbix-SPEC := zabbix.spec
290 zabbix-BUILD-FROM-SRPM := yes
296 pyopenssl-MODULES := pyopenssl
297 pyopenssl-SPEC := pyOpenSSL.spec
298 pyopenssl-BUILD-FROM-SRPM := yes
303 # sfa - Slice Facility Architecture
306 # sfa-SPEC := sfa.spec
312 nodeconfig-MODULES := nodeconfig build
313 nodeconfig-SPEC := nodeconfig.spec
315 IN_MYPLC += nodeconfig
320 bootmanager-MODULES := bootmanager
321 bootmanager-SPEC := bootmanager.spec
323 IN_MYPLC += bootmanager
326 # pypcilib : used in bootcd
328 pypcilib-MODULES := pypcilib
329 pypcilib-SPEC := pypcilib.spec
331 IN_BOOTCD += pypcilib
336 pyplnet-MODULES := pyplnet
337 pyplnet-SPEC := pyplnet.spec
339 IN_BOOTSTRAPFS += pyplnet
346 bootcd-MODULES := bootcd build
347 bootcd-SPEC := bootcd.spec
348 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
349 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
350 bootcd-RPMDATE := yes
355 # vserver : reference image for slices
357 vserver-MODULES := vserver-reference build
358 vserver-SPEC := vserver-reference.spec
359 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
360 vserver-DEPEND-FILES := RPMS/yumgroups.xml
361 vserver-RPMDATE := yes
363 IN_BOOTSTRAPFS += vserver
368 bootstrapfs-MODULES := bootstrapfs build
369 bootstrapfs-SPEC := bootstrapfs.spec
370 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
371 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
372 bootstrapfs-RPMDATE := yes
374 IN_MYPLC += bootstrapfs
379 # all rpms resulting from packages marked as being in bootstrapfs and vserver
380 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
381 # replace space with +++ (specvars cannot deal with spaces)
383 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
385 noderepo-MODULES := bootstrapfs
386 noderepo-SPEC := noderepo.spec
387 # package requires all regular packages
388 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
389 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
390 #export rpm list to the specfile
391 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
392 noderepo-RPMDATE := yes
397 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
399 myplc-MODULES := myplc build
400 myplc-SPEC := myplc.spec
401 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
404 # myplc-docs only contains docs for PLCAPI and NMAPI, but
405 # we still need to pull MyPLC, as it is where the specfile lies,
406 # together with the utility script docbook2drupal.sh
407 myplc-docs-MODULES := myplc plcapi nodemanager Monitor
408 myplc-docs-SPEC := myplc-docs.spec
411 # using some other name than myplc-release, as this is a make target already
412 release-MODULES := myplc
413 release-SPEC := myplc-release.spec
414 release-RPMDATE := yes