From dfe18e2c42fd73cde393be9df588ca0d5e7835f1 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Tue, 28 Jul 2009 19:24:47 -0400 Subject: [PATCH] postgresql: cleaned --with-foo config code --- database/postgresql/postgresql.conf | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/database/postgresql/postgresql.conf b/database/postgresql/postgresql.conf index 99d53bffa..6900c298d 100644 --- a/database/postgresql/postgresql.conf +++ b/database/postgresql/postgresql.conf @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../postgresql/postgresql.conf -# Copyright (C) 2006 - 2007 The OpenSDE Project +# Copyright (C) 2006 - 2009 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 1998 - 2003 Clifford Wolf # @@ -33,21 +33,13 @@ var_append extraconfopt " " "--with-gnu-ld" # Enable thread-safety for libpq and ecpg by default var_append confopt ' ' "--enable-thread-safety" -# SSL support -pkginstalled openssl && \ - var_append extraconfopt " " "--with-openssl" - # --with-tcl build Tcl modules (PL/Tcl) -# Perl module support (PL/Perl) -if pkginstalled perl; then - var_append extraconfopt " " "--with-perl" -fi - -# Python modules support (PL/Python) -if pkginstalled python; then - var_append extraconfopt " " "--with-python" -fi +for x in openssl perl python; do + if pkginstalled $x; then + var_append extraconfopt " " "--with-$x" + fi +done postgresql_pm() { # Create the data directory