[pkg-kolab] r1424 - pkg-kolab_testsuite

Mathieu Parent sathieu at alioth.debian.org
Thu Nov 26 18:59:07 UTC 2009


Author: sathieu
Date: 2009-11-26 18:59:07 +0000 (Thu, 26 Nov 2009)
New Revision: 1424

Modified:
   pkg-kolab_testsuite/testsuite
Log:
- initial openpkg version
- vmsize to 2Gb because OpenPKG need at least 1G for source+compiled binaries



Modified: pkg-kolab_testsuite/testsuite
===================================================================
--- pkg-kolab_testsuite/testsuite	2009-11-26 18:23:39 UTC (rev 1423)
+++ pkg-kolab_testsuite/testsuite	2009-11-26 18:59:07 UTC (rev 1424)
@@ -97,9 +97,9 @@
     
     # vm
     'vmmemory' => "256Mb",
-    'vmsize' => "1Gb",
+    'vmsize' => "2Gb",
     'vmswap' => "128Mb",
-    'vm_install_method' => 'debootstrap',
+    'vm_install_method' => 'debootstrap', # debootstrap
     'vmdist' => 'sid',
     
     # virt
@@ -111,7 +111,7 @@
     'dnsdomain' => 'local.tld',
     
     # kolab conf
-    'kolab_installation_method' => 'native',
+    'kolab_installation_method' => 'native', # native, openpkg (WIP)
     'kolab_manager_password' => '12345',
     'ca_passphrase' => '12345678',
     
@@ -465,6 +465,15 @@
 EOF');
         remote_command($domip, 'apt-get -qq update');
         print "* Following https://wiki.kolab.org/index.php/Debian_-_Administrators_-_Kolab_Installation\n";
+    } elsif($config{'kolab_installation_method'} eq 'openpkg') {
+        print "* Following http://wiki.kolab.org/index.php/Kolab2_Installation_-_Source\n";
+        print "* Download a snapshot\n";
+        remote_command($domip, 'mkdir /tmp/kolabtemp');
+        remote_command($domip, 'cd /tmp/kolabtemp && wget --no-verbose -r -l1 -nd --no-parent http://files.kolab.org/server/release/kolab-server-2.2.2/sources/');
+        
+        remote_command($domip, 'gpg --keyserver hkp://subkeys.pgp.net --recv-key 5816791A');
+        remote_command($domip, 'gpg --verify SHA1SUMS.sig');
+        remote_command($domip, 'sha1sum -c SHA1SUMS');
     } else {
         die 'Unknow kolab_installation_method: '.$config{'kolab_installation_method'};
     }
@@ -473,6 +482,14 @@
     print "* Installing:\n";
     if($config{'kolab_installation_method'} eq 'native') {
         remote_command($domip, 'DEBIAN_FRONTEND=noninteractive apt-get -y --allow-unauthenticated install kolabd postfix slapd');
+    } elsif($config{'kolab_installation_method'} eq 'openpkg') {
+        remote_command($domip, 'mkdir /kolab');
+        print "* Prerequisites: bison, flex, gcc, make, libtool, automake and autoconf\n";
+        remote_command($domip, 'DEBIAN_FRONTEND=noninteractive apt-get -y install bison flex gcc make libtool automake autoconf');
+        #TODO: that the following names are not in /etc/passwd or /etc/groups, as OpenPKG will want to create them: kolab, kolab-r, kolab-n
+        print "* install-kolab.sh\n";
+        remote_command($domip, 'sh install-kolab.sh 2>&1 | tee /root/kolab-install.log');
+        die 'Stopping here for: '.$config{'kolab_installation_method'};
     } else {
         die 'Unknow kolab_installation_method: '.$config{'kolab_installation_method'};
     }




More information about the pkg-kolab-devel mailing list