[CalendarServer-changes] [4714] CalendarServer/branches/users/cdaboo/deployment-partition-4593/run

source_changes at macosforge.org source_changes at macosforge.org
Fri Nov 6 10:36:33 PST 2009


Revision: 4714
          http://trac.macosforge.org/projects/calendarserver/changeset/4714
Author:   cdaboo at apple.com
Date:     2009-11-06 10:36:32 -0800 (Fri, 06 Nov 2009)
Log Message:
-----------
Include postgres pieces in run dependencies.

Modified Paths:
--------------
    CalendarServer/branches/users/cdaboo/deployment-partition-4593/run

Modified: CalendarServer/branches/users/cdaboo/deployment-partition-4593/run
===================================================================
--- CalendarServer/branches/users/cdaboo/deployment-partition-4593/run	2009-11-06 18:34:48 UTC (rev 4713)
+++ CalendarServer/branches/users/cdaboo/deployment-partition-4593/run	2009-11-06 18:36:32 UTC (rev 4714)
@@ -618,7 +618,7 @@
   #
   libevent="${top}/libevent-1.4.8-stable"
 
-  www_get "libevent" "${libevent}" http://monkey.org/~provos/libevent-1.4.8-stable.tar.gz
+  www_get "libevent" "${libevent}" http://monkey.org/~provos/libevent-1.4.8-stable.tar.gz;
 
   if "${do_setup}" && (
     "${force_setup}" || [ ! -d "${libevent}/_root" ]
@@ -657,7 +657,43 @@
   export PATH="${PATH}:${top}/memcached-1.2.6/_root/bin";
 fi;
 
+if ! type psql >& /dev/null; then
+  #
+  # postgresql
+  #
+  postgresql="${top}/postgresql-8.4.1"
+
+  www_get "postgresql" "${postgresql}" http://wwwmaster.postgresql.org/redir/198/h/source/v8.4.1/postgresql-8.4.1.tar.bz2;
+
+  if "${do_setup}" && (
+    "${force_setup}" || [ ! -d "${postgresql}/_root" ]
+  ); then
+    echo "";
+    echo "Building postgresql...";
+    cd "${postgresql}";
+    ./configure --prefix="${postgresql}/_root";
+    make;
+    make install;
+  fi;
+
+  export PATH="${PATH:-}:${postgresql}/_root/bin";
+fi;
+
 #
+# PyGreSQL
+#
+
+if ! py_have_module pgdb; then
+  PyGreSQL="${top}/PyGreSQL-4.0";
+
+  www_get "PyGreSQL" "${PyGreSQL}" ftp://ftp.pygresql.org/pub/distrib/PyGreSQL.tgz;
+  py_build "PyGreSQL" "${PyGreSQL}" false;
+  py_install "PyGreSQL" "${PyGreSQL}";
+
+  export PYTHONPATH="${PYTHONPATH}:${PyGreSQL}/build/${py_platform_libdir}";
+fi;
+
+#
 # Twisted
 #
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20091106/78f99ac1/attachment-0001.html>


More information about the calendarserver-changes mailing list