# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2003-2006 The Trustees of Princeton University
#
-# $Id: onelab.mk,v 1.5 2007/01/30 15:56:08 thierry Exp $
+# $Id: onelab.mk,v 1.12 2007/03/06 22:19:16 thierry Exp $
#
#
#
CVSROOT := :pserver:anon@cvs.planet-lab.org:/cvs
+# it's useless to set this here because it's overriden on the command line by nightly-build.sh
TAG := HEAD
# Check if a tag has been checked out
#
wireless-tools-MODULE = wireless-tools
-wireless-tools-SPEC := wireless-tools/wireless-tools.spec
-wireless-tools-CVSROOT := /cvs
+wireless-tools-SPEC := wireless-tools.spec
+wireless-tools-SVNPATH := svn+ssh://build@svn.one-lab.org/svn/wireless-tools/tags/29pre14
ALL += wireless-tools
#
util-vserver-RPMFLAGS:= --without dietlibc
ALL += util-vserver
-#
-# yum
-#
-
-yum-MODULE := yum
-yum-SPEC := yum/yum.spec
-ALL += yum
-
#
# PlanetLabAccounts
#
kexec-tools-SPEC := kexec-tools/kexec-tools.spec
ALL += kexec-tools
-#
-# dhcp
-#
-
-dhcp-MODULE := dhcp
-dhcp-SPEC := dhcp/dhcp.spec
-ALL += dhcp
-
#
# util-python
#
util-vserver: util-python
PlanetLabAuth: util-python
-#
-# PlanetLabAuth
-#
-
-PlanetLabAuth-MODULE := pl_auth
-PlanetLabAuth-SPEC := pl_auth/pl_auth.spec
-ALL += PlanetLabAuth
-
-#
-# plcapilib
-#
-
-plcapilib-MODULE := plcmdline
-plcapilib-SPEC := plcmdline/plcapilib.spec
-ALL += plcapilib
-
#
# PLCAPI
#
PLCAPI-MODULE := new_plc_api
PLCAPI-SPEC := new_plc_api/PLCAPI.spec
+PLCAPI-SVNPATH := svn+ssh://build@svn.one-lab.org/svn/new_plc_api/trunk
ALL += PLCAPI
#
# MyPLC
#
-myplc-MODULE := $(sort $(foreach module,$(ALL),$($(module)-MODULE)) myplc new_plc_www plc/scripts)
+myplc-MODULE := build myplc new_plc_www plc/scripts
myplc-SPEC := myplc/myplc.spec
# Package must be built as root
myplc-RPMBUILD := sudo rpmbuild
RPMSAREA := /var/www/html/install-rpms/
BOOTAREA := /var/www/html/boot/
-YUMGROUPS := $(PLDISTRO).xml
+ifeq ($(PLDISTRO),planetlab)
+YUMGROUPS := groups/v3_yumgroups.xml
+else
+YUMGROUPS := groups/v4_onelab.xml
+endif
+
#BASE := onelab
BASENEW := build-$(notdir $(shell pwd))
BASEBAK := planetlab-bak