[Lunar-commits] <moonbase> postgresql: adding an optional depends (timezone-data) to allow a choice for using TZ as shipped with postgresql or provided by the system. Also a slight change in the BUILD to allow for time in integers and add some nls abilities.

Dennis 'stumbles' Veatch stumbles at lunar-linux.org
Mon Mar 9 14:35:38 CET 2009


commit 7e6a18fc5425df5a1936a2a5a68a76700c4434fd
Author: Dennis 'stumbles' Veatch <stumbles at lunar-linux.org>
Date:   Mon Mar 9 09:35:38 2009 -0400

    postgresql: adding an optional depends (timezone-data) to allow a choice for
    using TZ as shipped with postgresql or provided by the system. Also a slight
    change in the BUILD to allow for time in integers and add some nls abilities.
---
 sql/postgresql/BUILD   |   11 +++++++----
 sql/postgresql/DEPENDS |   16 ++++++++++------
 2 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/sql/postgresql/BUILD b/sql/postgresql/BUILD
index ff2c380..df00da1 100644
--- a/sql/postgresql/BUILD
+++ b/sql/postgresql/BUILD
@@ -1,16 +1,19 @@
 (
 
-  ./configure  --prefix=/usr  \
-               $OPTS         &&
+  if in_depends $MODULE timezone-data; then
+    OPTS="$OPTS --with-system-tzdata=/usr/share/zoneinfo"
+  fi &&
 
-  default_make               &&
+  OPTS="$OPTS --enable-thread-safety --enable-nls --enable-integer-datetimes"
+
+  default_build &&
 
 # This gives postgresql some additional things like text search,
 # some dbase related utils to name a few.
 # See /usr/share/doc/postgresql/contrib for more info.
-
   cd contrib                 &&
   make all                   &&
   make install
+# done
 
 ) > $C_FIFO 2>&1
diff --git a/sql/postgresql/DEPENDS b/sql/postgresql/DEPENDS
index f8b8f64..6d14740 100644
--- a/sql/postgresql/DEPENDS
+++ b/sql/postgresql/DEPENDS
@@ -1,8 +1,12 @@
 depends  ncurses
 
-optional_depends "openssl"   "--with-openssl" "" "for SSL connections"
-optional_depends "perl"      "--with-perl"    "" "for perl programming"
-optional_depends "Python"    "--with-python"  "" "for python programming"
-optional_depends "Linux-PAM" "--with-pam"     "" "for user authentication"
-optional_depends "tcl"       "--with-tcl --with-tclconfig=/usr/lib"   ""    \
-                             "for tcl scripting"
+optional_depends "openssl"       "--with-openssl" "" "for SSL connections"
+optional_depends "perl"          "--with-perl"    "" "for perl programming"
+optional_depends "Python"        "--with-python"  "" "for python programming"
+optional_depends "Linux-PAM"     "--with-pam"     "" "for user authentication"
+
+optional_depends "timezone-data" "--without-system-tzdata"  \
+                 "" "use system timezone data"
+
+optional_depends "tcl"   "--with-tcl --with-tclconfig=/usr/lib" \
+                 "" "for tcl scripting"


More information about the Lunar-commits mailing list