You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by hu...@apache.org on 2013/09/21 06:47:03 UTC

[1/6] git commit: updated refs/heads/master to 3165435

Updated Branches:
  refs/heads/master 9a7f304b8 -> 316543541


Simplify package.sh


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/d0b896ed
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/d0b896ed
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/d0b896ed

Branch: refs/heads/master
Commit: d0b896ed36a54f1191994b1a400513684177b07d
Parents: e209a2c
Author: Hugo Trippaers <ht...@schubergphilis.com>
Authored: Thu Sep 19 15:11:40 2013 +0800
Committer: Hugo Trippaers <ht...@schubergphilis.com>
Committed: Sat Sep 21 12:32:09 2013 +0800

----------------------------------------------------------------------
 packaging/centos63/package.sh | 48 +++++++-------------------------------
 1 file changed, 8 insertions(+), 40 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/d0b896ed/packaging/centos63/package.sh
----------------------------------------------------------------------
diff --git a/packaging/centos63/package.sh b/packaging/centos63/package.sh
index 8337944..7c5fac3 100755
--- a/packaging/centos63/package.sh
+++ b/packaging/centos63/package.sh
@@ -18,7 +18,7 @@
 
 function usage() {
  echo ""
- echo "usage: ./package.sh [-p|e-pack] [-h|--help] [ARGS]"
+ echo "usage: ./package.sh [-p|-pack] [-h|--help] [ARGS]"
  echo ""
  echo "The commonly used Arguments are:"
  echo "oss|OSS             To package OSS specific"
@@ -30,45 +30,14 @@ function usage() {
  exit 1
 }
 
-function defaultPackaging() {
-CWD=`pwd`
-RPMDIR=$CWD/../../dist/rpmbuild
-PACK_PROJECT=cloudstack
-
-VERSION=`(cd ../../; mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version) | grep '^[0-9]\.'`
-if echo $VERSION | grep SNAPSHOT ; then
-  REALVER=`echo $VERSION | cut -d '-' -f 1`
-  DEFVER="-D_ver $REALVER"
-  DEFPRE="-D_prerelease 1"
-  DEFREL="-D_rel SNAPSHOT"
-else
-  REALVER=$VERSION
-  DEFVER="-D_ver $REALVER"
-  DEFREL="-D_rel 1"
-fi
-
-mkdir -p $RPMDIR/SPECS
-mkdir -p $RPMDIR/BUILD
-mkdir -p $RPMDIR/SRPMS
-mkdir -p $RPMDIR/RPMS
-mkdir -p $RPMDIR/SOURCES/$PACK_PROJECT-$VERSION
-
-(cd ../../; tar -c --exclude .git --exclude dist  .  | tar -C $RPMDIR/SOURCES/$PACK_PROJECT-$VERSION -x )
-(cd $RPMDIR/SOURCES/; tar -czf $PACK_PROJECT-$VERSION.tgz $PACK_PROJECT-$VERSION)
-
-cp cloud.spec $RPMDIR/SPECS
-
-(cd $RPMDIR; rpmbuild --define "_topdir $RPMDIR" "${DEFVER}" "${DEFREL}" ${DEFPRE+"${DEFPRE}"} -ba SPECS/cloud.spec)
-
-exit
-}
-
 function packaging() {
 	 
 CWD=`pwd`
 RPMDIR=$CWD/../../dist/rpmbuild
 PACK_PROJECT=cloudstack
-DEFOSSNOSS="-D_ossnoss $packageval"
+if [ -n "$1" ] ; then
+  DEFOSSNOSS="-D_ossnoss $packageval"
+fi
 
 
 VERSION=`(cd ../../; mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version) | grep '^[0-9]\.'`
@@ -95,7 +64,7 @@ mkdir -p $RPMDIR/SOURCES/$PACK_PROJECT-$VERSION
 
 cp cloud.spec $RPMDIR/SPECS
 
-(cd $RPMDIR; rpmbuild --define "_topdir $RPMDIR" "${DEFVER}" "${DEFREL}" ${DEFPRE+\"${DEFPRE}\"} "${DEFOSSNOSS}" -bb SPECS/cloud.spec)
+(cd $RPMDIR; rpmbuild --define "_topdir $RPMDIR" "${DEFVER}" "${DEFREL}" ${DEFPRE+"${DEFPRE}"} ${DEFOSSNOSS+"$DEFOSSNOSS"} -bb SPECS/cloud.spec)
 
 exit
 }
@@ -103,7 +72,7 @@ exit
 
 if [ $# -lt 1 ] ; then
 
-	defaultPackaging
+	packaging
 
 elif [ $# -gt 0 ] ; then
 
@@ -114,7 +83,6 @@ elif [ $# -gt 0 ] ; then
 	eval set -- "$ARGS"
 
 	while [ $# -gt 0 ] ; do
-        echo $1
 	case "$1" in
 	-h | --help)
 		usage
@@ -124,9 +92,9 @@ elif [ $# -gt 0 ] ; then
 		echo "Doing CloudStack Packaging ....."
 		packageval=$2
 		if [ "$packageval" == "oss" -o "$packageval" == "OSS" ] ; then
-			defaultPackaging
-		elif [ "$packageval" == "noredist" -o "$packageval" == "NOREDIST" ] ; then
 			packaging
+		elif [ "$packageval" == "noredist" -o "$packageval" == "NOREDIST" ] ; then
+			packaging noredist
 		else
 			echo "Error: Incorrect value provided in package.sh script, Please see help ./package.sh --help|-h for more details."
 			exit 1


[2/6] git commit: updated refs/heads/master to 3165435

Posted by hu...@apache.org.
Rename nonoss to noredist to better reflect what the flag is used for.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/7f248148
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/7f248148
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/7f248148

Branch: refs/heads/master
Commit: 7f2481486e20f0471b13ba78ceed4c4983620471
Parents: 9a7f304
Author: Hugo Trippaers <ht...@schubergphilis.com>
Authored: Wed Sep 18 19:10:27 2013 +0800
Committer: Hugo Trippaers <ht...@schubergphilis.com>
Committed: Sat Sep 21 12:32:09 2013 +0800

----------------------------------------------------------------------
 client/pom.xml  | 18 +++++++++---------
 plugins/pom.xml | 12 ++++++------
 pom.xml         |  2 +-
 3 files changed, 16 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7f248148/client/pom.xml
----------------------------------------------------------------------
diff --git a/client/pom.xml b/client/pom.xml
index 4ceaf58..d523bed 100644
--- a/client/pom.xml
+++ b/client/pom.xml
@@ -447,13 +447,13 @@
             </configuration>
           </execution>
           <execution>
-            <id>process-nonoss</id>
+            <id>process-noredist</id>
             <phase>process-resources</phase>
             <goals>
               <goal>run</goal>
             </goals>
             <configuration>
-              <target if="${nonoss}">
+              <target if="${noredist}">
                 <echo>test</echo>
                 <replaceregexp
                   file="${basedir}/target/generated-webapp/WEB-INF/classes/environment.properties"
@@ -479,13 +479,13 @@
             </configuration>
           </execution>
           <execution>
-            <id>process-nonoss-spring-context</id>
+            <id>process-noredist-spring-context</id>
             <phase>process-resources</phase>
             <goals>
               <goal>run</goal>
             </goals>
             <configuration>
-              <target if="${nonoss}">
+              <target if="${noredist}">
                 <replaceregexp file="${basedir}/target/generated-webapp/WEB-INF/web.xml"
                   match="classpath:componentContext.xml"
                   replace="classpath:nonossComponentContext.xml" byline="true"/>
@@ -645,7 +645,7 @@
       <id>netapp</id>
       <activation>
         <property>
-          <name>nonoss</name>
+          <name>noredist</name>
         </property>
       </activation>
       <dependencies>
@@ -660,7 +660,7 @@
       <id>f5</id>
       <activation>
         <property>
-          <name>nonoss</name>
+          <name>noredist</name>
         </property>
       </activation>
       <dependencies>
@@ -675,7 +675,7 @@
       <id>netscaler</id>
       <activation>
         <property>
-          <name>nonoss</name>
+          <name>noredist</name>
         </property>
       </activation>
       <dependencies>
@@ -690,7 +690,7 @@
       <id>srx</id>
       <activation>
         <property>
-          <name>nonoss</name>
+          <name>noredist</name>
         </property>
       </activation>
       <dependencies>
@@ -705,7 +705,7 @@
       <id>vmware</id>
       <activation>
         <property>
-          <name>nonoss</name>
+          <name>noredist</name>
         </property>
       </activation>
       <dependencies>

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7f248148/plugins/pom.xml
----------------------------------------------------------------------
diff --git a/plugins/pom.xml b/plugins/pom.xml
index 0812642..ff18e83 100755
--- a/plugins/pom.xml
+++ b/plugins/pom.xml
@@ -99,7 +99,7 @@
       <id>netapp</id>
       <activation>
         <property>
-          <name>nonoss</name>
+          <name>noredist</name>
         </property>
       </activation>
       <modules>
@@ -110,7 +110,7 @@
       <id>kvm</id>
       <activation>
         <property>
-          <name>nonoss</name>
+          <name>noredist</name>
         </property>
       </activation>
       <modules>
@@ -121,7 +121,7 @@
       <id>f5</id>
       <activation>
         <property>
-          <name>nonoss</name>
+          <name>noredist</name>
         </property>
       </activation>
       <modules>
@@ -132,7 +132,7 @@
       <id>netscaler</id>
       <activation>
         <property>
-          <name>nonoss</name>
+          <name>noredist</name>
         </property>
       </activation>
       <modules>
@@ -143,7 +143,7 @@
       <id>srx</id>
       <activation>
         <property>
-          <name>nonoss</name>
+          <name>noredist</name>
         </property>
       </activation>
       <modules>
@@ -154,7 +154,7 @@
       <id>vmware</id>
       <activation>
         <property>
-          <name>nonoss</name>
+          <name>noredist</name>
         </property>
       </activation>
       <modules>

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7f248148/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index bdd474f..35eeedf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -727,7 +727,7 @@
       <id>vmware</id>
       <activation>
         <property>
-          <name>nonoss</name>
+          <name>noredist</name>
         </property>
       </activation>
       <modules>


[5/6] git commit: updated refs/heads/master to 3165435

Posted by hu...@apache.org.
Update usage to avoid confusion.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/3e48a702
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/3e48a702
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/3e48a702

Branch: refs/heads/master
Commit: 3e48a702b973a955db7f1a50ec59baa86f085445
Parents: d0b896e
Author: Hugo Trippaers <ht...@schubergphilis.com>
Authored: Sat Sep 21 12:35:58 2013 +0800
Committer: Hugo Trippaers <ht...@schubergphilis.com>
Committed: Sat Sep 21 12:36:15 2013 +0800

----------------------------------------------------------------------
 packaging/centos63/package.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3e48a702/packaging/centos63/package.sh
----------------------------------------------------------------------
diff --git a/packaging/centos63/package.sh b/packaging/centos63/package.sh
index 7c5fac3..04b9258 100755
--- a/packaging/centos63/package.sh
+++ b/packaging/centos63/package.sh
@@ -18,11 +18,11 @@
 
 function usage() {
  echo ""
- echo "usage: ./package.sh [-p|-pack] [-h|--help] [ARGS]"
+ echo "usage: ./package.sh [-p|--pack] [-h|--help] [ARGS]"
  echo ""
  echo "The commonly used Arguments are:"
- echo "oss|OSS             To package OSS specific"
- echo "noredist|NOREDIST   To package with no redistributable libraries"
+ echo "oss|OSS             To package with only redistributable libraries (default)"
+ echo "noredist|NOREDIST   To package with non-redistributable libraries"
  echo ""
  echo "Examples: ./package.sh -p|--pack oss|OSS"
  echo "          ./package.sh -p|--pack noredist|NOREDIST"


[6/6] git commit: updated refs/heads/master to 3165435

Posted by hu...@apache.org.
Put what information we have in this file


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/31654354
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/31654354
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/31654354

Branch: refs/heads/master
Commit: 316543541dfca752c7f161e069736e437a77806e
Parents: 3e48a70
Author: Hugo Trippaers <ht...@schubergphilis.com>
Authored: Sat Sep 21 12:41:10 2013 +0800
Committer: Hugo Trippaers <ht...@schubergphilis.com>
Committed: Sat Sep 21 12:41:10 2013 +0800

----------------------------------------------------------------------
 deps/install-non-oss.sh | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/31654354/deps/install-non-oss.sh
----------------------------------------------------------------------
diff --git a/deps/install-non-oss.sh b/deps/install-non-oss.sh
index 0bf8e48..940bd32 100755
--- a/deps/install-non-oss.sh
+++ b/deps/install-non-oss.sh
@@ -16,7 +16,12 @@
 # specific language governing permissions and limitations
 # under the License.
 
+# From https://devcentral.f5.com
+# Version: unknown
 mvn install:install-file -Dfile=cloud-iControl.jar      -DgroupId=com.cloud.com.f5     -DartifactId=icontrol        -Dversion=1.0   -Dpackaging=jar
+
+# From Citrix
+# Version: unknown
 mvn install:install-file -Dfile=cloud-netscaler-sdx.jar -DgroupId=com.cloud.com.citrix -DartifactId=netscaler-sdx   -Dversion=1.0   -Dpackaging=jar
 
 # From http://support.netapp.com/  (not available online, contact your support representative)


[4/6] git commit: updated refs/heads/master to 3165435

Posted by hu...@apache.org.
Update packaging script with the new noredist flag


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/4d461d5e
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/4d461d5e
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/4d461d5e

Branch: refs/heads/master
Commit: 4d461d5ef279fdabffdf96144ca5af8e6d0eb208
Parents: 7f24814
Author: Hugo Trippaers <ht...@schubergphilis.com>
Authored: Wed Sep 18 19:34:32 2013 +0800
Committer: Hugo Trippaers <ht...@schubergphilis.com>
Committed: Sat Sep 21 12:32:09 2013 +0800

----------------------------------------------------------------------
 packaging/centos63/package.sh | 22 ++++++----------------
 1 file changed, 6 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/4d461d5e/packaging/centos63/package.sh
----------------------------------------------------------------------
diff --git a/packaging/centos63/package.sh b/packaging/centos63/package.sh
index f30a0e7..8337944 100755
--- a/packaging/centos63/package.sh
+++ b/packaging/centos63/package.sh
@@ -18,14 +18,14 @@
 
 function usage() {
  echo ""
- echo "usage: ./package.sh [-p|--pack] [-h|--help] [ARGS]"
+ echo "usage: ./package.sh [-p|e-pack] [-h|--help] [ARGS]"
  echo ""
  echo "The commonly used Arguments are:"
- echo "oss|OSS         To package OSS specific"
- echo "nonoss|NONOSS   To package NONOSS specific"
+ echo "oss|OSS             To package OSS specific"
+ echo "noredist|NOREDIST   To package with no redistributable libraries"
  echo ""
  echo "Examples: ./package.sh -p|--pack oss|OSS"
- echo "          ./package.sh -p|--pack nonoss|NONOSS"
+ echo "          ./package.sh -p|--pack noredist|NOREDIST"
  echo "          ./package.sh (Default OSS)"
  exit 1
 }
@@ -114,6 +114,7 @@ elif [ $# -gt 0 ] ; then
 	eval set -- "$ARGS"
 
 	while [ $# -gt 0 ] ; do
+        echo $1
 	case "$1" in
 	-h | --help)
 		usage
@@ -124,7 +125,7 @@ elif [ $# -gt 0 ] ; then
 		packageval=$2
 		if [ "$packageval" == "oss" -o "$packageval" == "OSS" ] ; then
 			defaultPackaging
-		elif [ "$packageval" == "nonoss" -o "$packageval" == "NONOSS" ] ; then
+		elif [ "$packageval" == "noredist" -o "$packageval" == "NOREDIST" ] ; then
 			packaging
 		else
 			echo "Error: Incorrect value provided in package.sh script, Please see help ./package.sh --help|-h for more details."
@@ -136,19 +137,8 @@ elif [ $# -gt 0 ] ; then
 		usage
 		exit 1
 		;;
-	--)
-		echo "Unrecognized option..."
-		usage
-		exit 1
-		;;
-	-*)
-		echo "Unrecognized option..."
-		usage
-		exit 1
-		;;
 	*)
 		shift
-		break
 		;;
 	esac
 	done


[3/6] git commit: updated refs/heads/master to 3165435

Posted by hu...@apache.org.
Update the INSTALL.md file with the changed noredist flag.

And fix a few old entries


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/e209a2ce
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/e209a2ce
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/e209a2ce

Branch: refs/heads/master
Commit: e209a2ce8a0e2645157932d6cd9073065c6a35ae
Parents: 4d461d5
Author: Hugo Trippaers <ht...@schubergphilis.com>
Authored: Wed Sep 18 19:35:05 2013 +0800
Committer: Hugo Trippaers <ht...@schubergphilis.com>
Committed: Sat Sep 21 12:32:09 2013 +0800

----------------------------------------------------------------------
 INSTALL.md | 37 +++++++++++++++++--------------------
 1 file changed, 17 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/e209a2ce/INSTALL.md
----------------------------------------------------------------------
diff --git a/INSTALL.md b/INSTALL.md
index 37415dc..47fd2e6 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -96,23 +96,20 @@ Clean and build:
 
     $ mvn clean install -P systemvm,developer
 
-In case you want support for VMWare, SRX and other non-Apache (referred to as nonoss)
-compliant libs, you may download the following jar artifacts from respective vendors:
+CloudStack supports several plugins that depend on libraries with distribution restrictions. 
+Because of this they are not included in the default build. Enable these additional plugins 
+activate their respective profiles. For convenience adding -Dnoredist will enable all plugins
+that depend on libraries with distribution restrictions. The build procedure expects that the 
+required libraries are present in the maven repository. 
 
-     deps/cloud-iControl.jar
-     deps/cloud-manageontap.jar
-     deps/cloud-netscaler-sdx.jar
-     deps/cloud-netscaler.jar
-     deps/vmware-apputils.jar
-     deps/vmware-vim.jar
-     deps/vmware-vim25.jar
-
-Install them to ~/.m2 so maven can get them as dependencies:
+The following procedure can be used to add the libraries to the local maven repository. Details 
+on obtaining the required libraries can be found in this file. Note that this will vary between
+releases of cloudstack
 
     $ cd deps
     $ ./install-non-oss.sh
 
-To build with nonoss components, use the build command with the nonoss flag:
+To build all non redistributable components, add the noredist flag to the build command:
 
     $ mvn clean install -P systemvm,developer -Dnonoss
 
@@ -153,7 +150,7 @@ This section describes packaging and installation.
 
 To create debs:
 
-    $ mvn -P deps # -D nonoss, for nonoss as described in the "Building" section above
+    $ mvn -P deps # -D noredist, for noredist as described in the "Building" section above
     $ dpkg-buildpackage
 
 All the deb packages will be created in ../$PWD
@@ -183,15 +180,15 @@ Install needed packages, apt-get upgrade for upgrading:
 
 To create rpms:
 
-    $ mvn -P deps # -D nonoss, for nonoss as described in the "Building" section above
-    $ ./waf rpm
+    $ cd packaging/centos63
+    $ bash packaging.sh [ -p NOREDIST ]
 
-All the rpm packages will be create in artifacts/rpmbuild/RPMS/x86_64
+All the rpm packages will be create in dist/rpmbuild/RPMS/x86_64
 
 To create a yum repo: (assuming appropriate user privileges)
 
     $ path=/path/to/your/webserver/cloudstack
-    $ cd artifacts/rpmbuild/RPMS/x86_64
+    $ cd dist/rpmbuild/RPMS/x86_64
     $ mv *.rpm $path
     $ createrepo $path
 
@@ -208,10 +205,10 @@ Installation:
 Install needed packages:
 
     $ yum update
-    $ yum install cloud-client                       # management server
+    $ yum install cloudstack-management                       # management server
     $ yum install mysql-server                       # mysql server
-    $ yum install cloud-agent                        # agent (kvm)
-    $ yum install cloud-usage                        # usage server
+    $ yum install cloudstack-agent                        # agent (kvm)
+    $ yum install cloudstack-usage                        # usage server
 
 ## Installing CloudMonkey CLI