propset - enables svn keywords
[build.git] / onelab.mk
index da2bb02..280aa6f 100644 (file)
--- a/onelab.mk
+++ b/onelab.mk
@@ -4,7 +4,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2003-2006 The Trustees of Princeton University
 #
-# $Id: onelab.mk,v 1.16 2007/03/16 16:07:57 thierry Exp $
+# $Id$
 #
 
 #
  
 # COMMON_TAG set from the build script
 
-include onelab-tags.mk
+TAGSFILE = onelab-tags.mk
+
+include $(TAGSFILE)
 
 #
 # Default values
 #
 
-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
 
@@ -95,7 +96,7 @@ vnet: kernel
 #
 
 madwifi-ng-MODULE := madwifi-ng
-madwifi-ng-SPEC := madwifi-ng/madwifi.spec
+madwifi-ng-SPEC := madwifi.spec
 ALL += madwifi-ng
 
 # Build kernel first so we can bootstrap off of its build
@@ -107,7 +108,6 @@ madwifi-ng: kernel
 
 wireless-tools-MODULE = wireless-tools
 wireless-tools-SPEC := wireless-tools.spec
-wireless-tools-SVNPATH := svn+ssh://build@svn.one-lab.org/svn/wireless-tools/tags/29pre14
 ALL += wireless-tools
 
 #
@@ -306,7 +306,6 @@ PlanetLabAuth: util-python
 
 PLCAPI-MODULE := new_plc_api
 PLCAPI-SPEC := PLCAPI.spec
-PLCAPI-SVNPATH := svn+ssh://build@svn.one-lab.org/svn/new_plc_api/trunk
 ALL += PLCAPI
 
 #
@@ -327,9 +326,8 @@ vserver-reference: $(filter-out vserver-reference,$(ALL))
 #
 
 bootmanager-MODULE := bootmanager build
-bootmanager-SPEC := bootmanager/bootmanager.spec
+bootmanager-SPEC := bootmanager.spec
 bootmanager-RPMBUILD := sudo rpmbuild
-bootmanager-SVNPATH := svn+ssh://build@svn.one-lab.org/svn/bootmanager/trunk
 ALL += bootmanager
 
 # bootmanager requires current packages
@@ -343,20 +341,27 @@ bootmanager: RPMS/yumgroups.xml
 #
 
 bootcd-MODULE := bootcd build bootmanager
-bootcd-SPEC := bootcd/bootcd.spec
+bootcd-SPEC := bootcd.spec
 bootcd-RPMBUILD := sudo rpmbuild
-bootcd-SVNPATH := svn+ssh://build@svn.one-lab.org/svn/bootcd/trunk
 ALL += bootcd
 
 # bootcd requires current packages
 bootcd: $(filter-out bootcd,$(ALL))
 
+#
+# plcwww
+#
+
+plcwww-MODULE := new_plc_www
+plcwww-SPEC := plcwww.spec
+ALL += plcwww
+
 #
 # MyPLC
 #
 
-myplc-MODULE := build myplc new_plc_www plc/scripts
-myplc-SPEC := myplc/myplc.spec
+myplc-MODULE := build myplc plc/scripts
+myplc-SPEC := myplc.spec
 # Package must be built as root
 myplc-RPMBUILD := sudo rpmbuild
 ALL += myplc
@@ -367,6 +372,21 @@ myplc: $(filter-out myplc,$(ALL))
 # ...and the yum manifest
 myplc: RPMS/yumgroups.xml
 
+# we also ship various information on the build in /etc/myplc-release
+# we cannot store this under SOURCES/myplc 
+# otherwise the code extraction phase does not take place 
+# because it depends on $SOURCES/$(package) as per Rules.mk
+myplc: SOURCES/myplc-release
+
+SOURCES/myplc-release:
+       @echo 'Creating myplc-release'
+       rm -f $@
+       (echo -n 'Build date: ' ; date '+%Y.%m.%d') >> $@
+       (echo -n 'Build hostname: ' ; hostname) >> $@
+       (echo -n 'Build location: ' ; pwd) >> $@
+       echo "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx tags file contents" >> $@
+       cat $(TAGSFILE) >> $@
+
 #
 # MyPLC development environment
 #