X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetlab.mk;h=a2f679a2a45d710bb1613fb3bd98e6d0b9f289eb;hb=94677dd6eab9ea4f83b9a10886d2b829f0793472;hp=02308d9cb2322a6710280d5bb3ece941ab1a36bd;hpb=48e2365cd1cac5c9b1778579f1c229d4f7238804;p=build.git diff --git a/planetlab.mk b/planetlab.mk index 02308d9c..a2f679a2 100644 --- a/planetlab.mk +++ b/planetlab.mk @@ -1,8 +1,9 @@ # # PlanetLab standard components list -# +# initial version from Mark Huang # Mark Huang # Copyright (C) 2003-2006 The Trustees of Princeton University +# rewritten by Thierry Parmentelat - INRIA Sophia Antipolis # # $Id$ # @@ -17,9 +18,9 @@ # kernel-MODULES := linux-patches -kernel-SPEC := kernel-2.6-planetlab.spec +kernel-SPEC := kernel-2.6.spec kernel-BUILD-FROM-SRPM := yes -ifeq ($(HOSTARCH),i386) +ifeq "$(HOSTARCH)" "i386" kernel-RPMFLAGS:= --target i686 else kernel-RPMFLAGS:= --target $(HOSTARCH) @@ -38,9 +39,19 @@ IN_BOOTSTRAPFS += $(KERNELS) IN_MYPLC += $(KERNELS) # -# madwifi +# kexec-tools +# +ifeq "$(DISTRONAME)" "fc4" +kexec-tools-MODULES := kexec-tools +kexec-tools-SPEC := kexec-tools.spec +kexec-tools-CVSROOT := :pserver:anon@cvs.planet-lab.org:/cvs +kexec-tools-TAG := planetlab-4_1-rc2 +ALL += kexec-tools +IN_BOOTCD += kexec-tools +endif + # -# [thierry] - temporarily use onelab's svn +# madwifi # madwifi-MODULES := madwifi madwifi-SPEC := madwifi.spec @@ -49,8 +60,17 @@ madwifi-DEPEND-DEVEL-RPMS := kernel-devel madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \ kernel_release=$(kernel.rpm-release) \ kernel_arch=$(kernel.rpm-arch) -IN_BOOTSTRAPFS += madwifi ALL += madwifi +IN_BOOTSTRAPFS += madwifi + +# +# wireless-tools +# +wireless-tools-MODULES := wireless-tools +wireless-tools-SPEC := wireless-tools.spec +wireless-tools-BUILD-FROM-SRPM := yes +ALL += wireless-tools +IN_BOOTSTRAPFS += wireless-tools # # libnl @@ -159,6 +179,14 @@ fprobe-ulog-SPEC := fprobe-ulog.spec ALL += fprobe-ulog IN_BOOTSTRAPFS += fprobe-ulog +# +# pf2slice +# +pf2slice-MODULES := pf2slice +pf2slice-SPEC := pf2slice.spec +ALL += pf2slice + + # # netflow # @@ -195,16 +223,24 @@ IN_BOOTSTRAPFS += iproute # # vsys # +vsys_support=yes +ifeq "$(DISTRONAME)" "fc4" +vsys_support= +endif +ifeq "$(DISTRONAME)" "fc6" +vsys_support= +endif +# cannot find the required packages (see devel.pkgs) on centos5 +ifeq "$(DISTRONAME)" "centos5" +vsys_support= +endif + +ifeq "$(vsys_support)" "yes" vsys-MODULES := vsys vsys-SPEC := vsys.spec -ifeq ($(DISTRO),"Fedora") -ifeq ($(RELEASE),7) -ALL += vsys -endif -ifeq ($(RELEASE),8) +IN_BOOTSTRAPFS += vsys ALL += vsys endif -endif # # PLCAPI @@ -217,18 +253,24 @@ IN_MYPLC += PLCAPI # # PLCWWW # -PLCWWW-MODULES := WWW +PLCWWW-MODULES := PLCWWW PLCWWW-SPEC := PLCWWW.spec ALL += PLCWWW IN_MYPLC += PLCWWW +# +# nodeconfig +# +nodeconfig-MODULES := nodeconfig +nodeconfig-SPEC := nodeconfig.spec +ALL += nodeconfig +IN_MYPLC += nodeconfig + # # bootmanager # -bootmanager-MODULES := BootManager build +bootmanager-MODULES := BootManager bootmanager-SPEC := bootmanager.spec -# Package must be built as root -bootmanager-RPMBUILD := sudo bash ./rpmbuild.sh ALL += bootmanager IN_MYPLC += bootmanager @@ -264,7 +306,7 @@ vserver-RPMBUILD := sudo bash ./rpmbuild.sh vserver-DEPEND-PACKAGES := $(IN_VSERVER) vserver-DEPEND-FILES := RPMS/yumgroups.xml ALL += vserver -IN_BOOTSTRAPFS := vserver +IN_BOOTSTRAPFS += vserver # # bootstrapfs @@ -278,6 +320,26 @@ bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml ALL += bootstrapfs IN_MYPLC += bootstrapfs +# +# noderepo +# +# all rpms resulting from packages marked as being in bootstrapfs and vserver +NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms)) +# replace space with +++ (specvars cannot deal with spaces) +SPACE=$(subst x, ,x) +NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS)) + +noderepo-MODULES := BootstrapFS +noderepo-SPEC := noderepo.spec +noderepo-RPMBUILD := sudo bash ./rpmbuild.sh +# package requires all regular packages +noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER) +noderepo-DEPEND-FILES := RPMS/yumgroups.xml +#export rpm list to the specfile +noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS) +ALL += noderepo +IN_MYPLC += noderepo + # # myplc : initial, chroot-based packaging #