Update of /cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/database
In directory vz-cvs-3.sog:/tmp/cvs-serv28235

Modified Files:
        postgresql-java.info postgresql-perl.info 
        postgresql-python-py.info postgresql-tcl.info 
        postgresql80-unified.info postgresql81.info postgresql82.info 
        postgresql83.info postgresql84.info postgresql90.info 
        postgresql90.patch 
Added Files:
        postgresql83-python-py.info postgresql91.info 
        postgresql91.patch 
Log Message:
postgreql family: sync. w/ 10.!4/stable, validated on powerpc-darwin8


Index: postgresql81.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/database/postgresql81.info,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- postgresql81.info   11 Jul 2011 04:08:30 -0000      1.1
+++ postgresql81.info   13 Jan 2012 01:10:41 -0000      1.2
@@ -1,6 +1,7 @@
 Package: postgresql81
 Version: 8.1.23
-Revision: 1
+Revision: 2
+Distribution: 10.4, 10.5, 10.6
 Description: PostgreSQL open-source database
 License: BSD
 Maintainer: Benjamin Reed <postgresq...@fink.raccoonfink.com>
@@ -15,7 +16,7 @@
 <<
 BuildDepends: <<
        bison,
-       fink (>= 0.29.7-1),
+       fink (>= 0.30.0-1),
        fink-mirrors (>= 0.28.7.1-2),
        libxml2,
        libxslt,
@@ -294,8 +295,7 @@
 fi
        <<
        PostInstScript: [ -x %p/var/postgresql-8.1/update-alternatives.sh ] && 
%p/var/postgresql-8.1/update-alternatives.sh
-       PreRmScript: [ -x %p/var/postgresql-8.1/remove-alternatives.sh ] && 
%p/var/postgresql-8.1/remove-alternatives.sh
-       PostRmScript: [ -x %p/var/postgresql-8.1/update-alternatives.sh ] && 
%p/var/postgresql-8.1/update-alternatives.sh
+       PreRmScript: if [ "$1" != "upgrade" ]; then [ -x 
%p/var/postgresql-8.1/remove-alternatives.sh ] && 
%p/var/postgresql-8.1/remove-alternatives.sh; fi
 <<
 SplitOff2: <<
        Package: %N-shlibs
@@ -323,7 +323,7 @@
                %p/lib/postgresql-8.1/libpq.4.dylib          4.0.0 
postgresql81-shlibs (>= 8.1.17-1)
        <<
        PostInstScript: [ -x %p/var/postgresql-8.1/update-alternatives.sh ] && 
%p/var/postgresql-8.1/update-alternatives.sh
-       PreRmScript: [ -x %p/var/postgresql-8.1/remove-alternatives.sh ] && 
%p/var/postgresql-8.1/remove-alternatives.sh
+       PreRmScript: if [ "$1" != "upgrade" ]; then [ -x 
%p/var/postgresql-8.1/remove-alternatives.sh ] && 
%p/var/postgresql-8.1/remove-alternatives.sh; fi
 <<
 
 PreInstScript: <<
@@ -401,14 +401,12 @@
 fi
 <<
 PreRmScript: <<
-[ -x %p/var/postgresql-8.1/remove-alternatives.sh ] && 
%p/var/postgresql-8.1/remove-alternatives.sh
-
 # clean up
 if [ $1 != "upgrade" ]; then
+       [ -x %p/var/postgresql-8.1/remove-alternatives.sh ] && 
%p/var/postgresql-8.1/remove-alternatives.sh
        daemonic remove %N >/dev/null 2>&1 || :
 fi
 <<
-PostRmScript: [ -x %p/var/postgresql-8.1/update-alternatives.sh ] && 
%p/var/postgresql-8.1/update-alternatives.sh
 DaemonicFile: <<
        <service>
        <description>PostgreSQL database server</description>

Index: postgresql90.patch
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/database/postgresql90.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- postgresql90.patch  11 Jul 2011 04:08:30 -0000      1.1
+++ postgresql90.patch  13 Jan 2012 01:10:41 -0000      1.2
@@ -1,6 +1,6 @@
-diff -Nurd postgresql-9.0beta3/pgsql.sh postgresql-9.0beta3-new/pgsql.sh
---- postgresql-9.0beta3/pgsql.sh       1969-12-31 18:00:00.000000000 -0600
-+++ postgresql-9.0beta3-new/pgsql.sh   2010-07-26 11:06:05.000000000 -0500
+diff -Nurd postgresql-9.0.4/pgsql.sh postgresql-9.0.4-new/pgsql.sh
+--- postgresql-9.0.4/pgsql.sh  1969-12-31 19:00:00.000000000 -0500
++++ postgresql-9.0.4-new/pgsql.sh      2011-07-21 11:38:27.000000000 -0400
 @@ -0,0 +1,83 @@
 +#!/bin/sh
 +
@@ -85,9 +85,18 @@
 +              $PG_COMMAND -D "$DATADIR" -m fast stop
 +              ;;
 +esac
-diff -Nurd postgresql-9.0beta3/src/Makefile.global.in 
postgresql-9.0beta3-new/src/Makefile.global.in
---- postgresql-9.0beta3/src/Makefile.global.in 2010-07-06 17:03:05.000000000 
-0500
-+++ postgresql-9.0beta3-new/src/Makefile.global.in     2010-07-26 
14:14:55.000000000 -0500
+diff -Nurd postgresql-9.0.4/src/Makefile.global.in 
postgresql-9.0.4-new/src/Makefile.global.in
+--- postgresql-9.0.4/src/Makefile.global.in    2011-04-14 23:15:53.000000000 
-0400
++++ postgresql-9.0.4-new/src/Makefile.global.in        2011-07-21 
11:39:12.000000000 -0400
+@@ -196,7 +196,7 @@
+ 
+ # Compilers
+ 
+-CPP = @CPP@
++CPP = $(CC) -E
+ CPPFLAGS = @CPPFLAGS@
+ 
+ ifdef PGXS
 @@ -243,7 +243,7 @@
  ifdef PGXS
    LDFLAGS = -L$(libdir)
@@ -97,9 +106,9 @@
  endif
  LDFLAGS += @LDFLAGS@
  
-diff -Nurd postgresql-9.0beta3/src/backend/utils/misc/postgresql.conf.sample 
postgresql-9.0beta3-new/src/backend/utils/misc/postgresql.conf.sample
---- postgresql-9.0beta3/src/backend/utils/misc/postgresql.conf.sample  
2010-07-03 16:23:58.000000000 -0500
-+++ postgresql-9.0beta3-new/src/backend/utils/misc/postgresql.conf.sample      
2010-07-26 11:06:05.000000000 -0500
+diff -Nurd postgresql-9.0.4/src/backend/utils/misc/postgresql.conf.sample 
postgresql-9.0.4-new/src/backend/utils/misc/postgresql.conf.sample
+--- postgresql-9.0.4/src/backend/utils/misc/postgresql.conf.sample     
2011-04-14 23:15:53.000000000 -0400
++++ postgresql-9.0.4-new/src/backend/utils/misc/postgresql.conf.sample 
2011-07-21 11:38:27.000000000 -0400
 @@ -77,7 +77,7 @@
  # - Security and Authentication -
  
@@ -109,9 +118,9 @@
  #ssl_ciphers = 'ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH'    # allowed SSL ciphers
                                        # (change requires restart)
  #ssl_renegotiation_limit = 512MB      # amount of data between renegotiations
-diff -Nurd postgresql-9.0beta3/src/bin/initdb/initdb.c 
postgresql-9.0beta3-new/src/bin/initdb/initdb.c
---- postgresql-9.0beta3/src/bin/initdb/initdb.c        2010-02-25 
20:01:15.000000000 -0600
-+++ postgresql-9.0beta3-new/src/bin/initdb/initdb.c    2010-07-26 
11:06:05.000000000 -0500
+diff -Nurd postgresql-9.0.4/src/bin/initdb/initdb.c 
postgresql-9.0.4-new/src/bin/initdb/initdb.c
+--- postgresql-9.0.4/src/bin/initdb/initdb.c   2011-04-14 23:15:53.000000000 
-0400
++++ postgresql-9.0.4-new/src/bin/initdb/initdb.c       2011-07-21 
11:38:27.000000000 -0400
 @@ -114,7 +114,7 @@
  
  /* defaults */
@@ -121,9 +130,9 @@
  
  /*
   * Warning messages for authentication methods
-diff -Nurd postgresql-9.0beta3/src/interfaces/ecpg/compatlib/Makefile 
postgresql-9.0beta3-new/src/interfaces/ecpg/compatlib/Makefile
---- postgresql-9.0beta3/src/interfaces/ecpg/compatlib/Makefile 2010-01-02 
10:58:10.000000000 -0600
-+++ postgresql-9.0beta3-new/src/interfaces/ecpg/compatlib/Makefile     
2010-07-26 13:54:16.000000000 -0500
+diff -Nurd postgresql-9.0.4/src/interfaces/ecpg/compatlib/Makefile 
postgresql-9.0.4-new/src/interfaces/ecpg/compatlib/Makefile
+--- postgresql-9.0.4/src/interfaces/ecpg/compatlib/Makefile    2011-04-14 
23:15:53.000000000 -0400
++++ postgresql-9.0.4-new/src/interfaces/ecpg/compatlib/Makefile        
2011-07-21 11:38:27.000000000 -0400
 @@ -21,6 +21,7 @@
        -I$(libpq_srcdir) -I$(top_srcdir)/src/include/utils $(CPPFLAGS)
  override CFLAGS += $(PTHREAD_CFLAGS)
@@ -132,9 +141,9 @@
  SHLIB_LINK = -L../ecpglib -lecpg -L../pgtypeslib -lpgtypes $(libpq) \
        $(filter -lintl -lm, $(LIBS)) $(PTHREAD_LIBS)
  
-diff -Nurd postgresql-9.0beta3/src/interfaces/ecpg/ecpglib/Makefile 
postgresql-9.0beta3-new/src/interfaces/ecpg/ecpglib/Makefile
---- postgresql-9.0beta3/src/interfaces/ecpg/ecpglib/Makefile   2010-01-05 
10:38:23.000000000 -0600
-+++ postgresql-9.0beta3-new/src/interfaces/ecpg/ecpglib/Makefile       
2010-07-26 13:54:28.000000000 -0500
+diff -Nurd postgresql-9.0.4/src/interfaces/ecpg/ecpglib/Makefile 
postgresql-9.0.4-new/src/interfaces/ecpg/ecpglib/Makefile
+--- postgresql-9.0.4/src/interfaces/ecpg/ecpglib/Makefile      2011-04-14 
23:15:53.000000000 -0400
++++ postgresql-9.0.4-new/src/interfaces/ecpg/ecpglib/Makefile  2011-07-21 
11:38:27.000000000 -0400
 @@ -33,6 +33,7 @@
  OBJS += thread.o
  endif
@@ -143,9 +152,9 @@
  SHLIB_LINK = -L../pgtypeslib -lpgtypes $(libpq) $(filter -lintl -lm, $(LIBS)) 
$(PTHREAD_LIBS)
  
  SHLIB_EXPORTS = exports.txt
-diff -Nurd postgresql-9.0beta3/src/makefiles/Makefile.darwin 
postgresql-9.0beta3-new/src/makefiles/Makefile.darwin
---- postgresql-9.0beta3/src/makefiles/Makefile.darwin  2010-07-05 
18:15:56.000000000 -0500
-+++ postgresql-9.0beta3-new/src/makefiles/Makefile.darwin      2010-07-26 
11:06:31.000000000 -0500
+diff -Nurd postgresql-9.0.4/src/makefiles/Makefile.darwin 
postgresql-9.0.4-new/src/makefiles/Makefile.darwin
+--- postgresql-9.0.4/src/makefiles/Makefile.darwin     2011-04-14 
23:15:53.000000000 -0400
++++ postgresql-9.0.4-new/src/makefiles/Makefile.darwin 2011-07-21 
11:38:27.000000000 -0400
 @@ -10,4 +10,4 @@
  
  # Rule for building a shared library from a single .o file

Index: postgresql-java.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/database/postgresql-java.info,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- postgresql-java.info        11 Jul 2011 04:08:30 -0000      1.1
+++ postgresql-java.info        13 Jan 2012 01:10:41 -0000      1.2
@@ -1,6 +1,6 @@
 Package: postgresql-java
 Version: 9.0
-Revision: 801.1
+Revision: 801.2
 Description: PostgreSQL Java library
 Type: java(1.5)
 License: BSD
@@ -9,7 +9,7 @@
 Depends: system-java (>= 1.5-1)
 BuildDepends: <<
        ant,
-       fink (>= 0.29.7-1),
+       fink (>= 0.30.0-1),
        system-java-dev (>= 1.5-1)
 <<
 Conflicts: <<
@@ -22,7 +22,7 @@
        postgresql-ssl (<< 7.3-1),
        postgresql-java-ssl (<< %v-%r)
 <<
-Recommends: postgresql84
+Recommends: postgresql90
 
 Source: http://jdbc.postgresql.org/download/postgresql-jdbc-%v-801.src.tar.gz
 Source-MD5: 32188109251f8da2766da77b174232bc

Index: postgresql-tcl.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/database/postgresql-tcl.info,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- postgresql-tcl.info 11 Jul 2011 04:08:30 -0000      1.1
+++ postgresql-tcl.info 13 Jan 2012 01:10:41 -0000      1.2
@@ -1,6 +1,7 @@
 Package: postgresql-tcl
-Version: 8.2.19
-Revision: 1
+Version: 8.2.21
+Revision: 2
+Distribution: 10.4, 10.5, 10.6
 Description: PostgreSQL TCL tools
 License: BSD
 Maintainer: Benjamin Reed <postgresql-...@fink.raccoonfink.com>
@@ -11,7 +12,7 @@
        tcltk
 <<
 BuildDepends: <<
-       fink (>= 0.29.7-1),
+       fink (>= 0.30.0-1),
        fink-mirrors (>= 0.28.7.1-2),
        tcltk,
        tcltk-dev,
@@ -29,7 +30,7 @@
 <<
 
 Source: mirror:postgresql:source/v%v/postgresql-%v.tar.bz2
-Source-MD5: c7806430decc8dc67fb52920a3940c54
+Source-MD5: 6f61c428e6c4acf8619a5534d0c283ac
 Source2: http://pgfoundry.org/frs/download.php/2151/libpgtcl-1.7.tar.gz
 Source2-MD5: e71ed886d5de5f5f455bc02136494448
 PatchScript: sed 's|@INSTPREFIX@|%p|g' < %{PatchFile} | patch -p1
@@ -104,7 +105,7 @@
 *** WARNING ***
 END
 <<
-PostRmScript: <<
+PreRmScript: <<
        if [ "$1" != "upgrade" ]; then
                sudo -u postgres %p/bin/droplang pltcl template1 >/dev/null 
2>&1 || :
        fi

--- NEW FILE: postgresql91.patch ---
diff -Nurd postgresql-9.0.4/pgsql.sh postgresql-9.0.4-new/pgsql.sh
--- postgresql-9.0.4/pgsql.sh   1969-12-31 19:00:00.000000000 -0500
+++ postgresql-9.0.4-new/pgsql.sh       2011-07-21 11:38:27.000000000 -0400
@@ -0,0 +1,83 @@
+#!/bin/sh
+
+die () {
+       echo "failed"
+       echo ""
+       echo "*** bailing because an error ocurred:"
+       echo ""
+       echo "$*"
+       exit 1
+}
+
+PREFIX="@INSTPREFIX@/opt/postgresql-@PGVERSION@"
+DATADIR="@INSTPREFIX@/var/postgresql-@PGVERSION@/data"
+LOGFILE="@INSTPREFIX@/var/postgresql-@PGVERSION@/pgsql.log"
+
+export LANG=C
+unset LC_ALL
+
+export PATH="$PREFIX/bin:@INSTPREFIX@/bin:$PATH"
+
+SHMMAX=`sysctl kern.sysv.shmmax | cut -d' ' -f2-`
+SHMMNI=`sysctl kern.sysv.shmmni | cut -d' ' -f2-`
+SHMALL=`sysctl kern.sysv.shmall | cut -d' ' -f2-`
+
+if [ "$SHMMAX" -lt "8388608" ] || [ "$SHMMNI" -lt "64" ] || [ "$SHMALL" -lt 
"32768" ]; then
+       echo "WARNING: You probably need to set your shared memory resources 
higher for"
+       echo "         PostgreSQL to function.  For more information on raising 
your shared"
+       echo "         memory settings, see:"
+       echo "         
http://wiki.finkproject.org/index.php/Shared_Memory_Regions_on_Darwin";
+       echo ""
+       echo "         I am also creating a default configuration in 
/etc/sysctl.conf.pg"
+       echo "         that contains values that will work with the default 
PostgreSQL "
+       echo "         memory settings.  To use it, rename it to 
/etc/sysctl.conf (if you"
+       echo "         don't have one already) and reboot."
+       echo ""
+       echo "         For now, I'll try setting your sysctl to something 
higher and then"
+       echo "         running things anyways.  Good luck!  =)"
+       echo ""
+       sysctl -w kern.sysv.shmmax=8388608
+       sysctl -w kern.sysv.shmmin=1
+       sysctl -w kern.sysv.shmmni=64
+       sysctl -w kern.sysv.shmseg=8
+       sysctl -w kern.sysv.shmall=32768
+       echo ""
+       cat <<END >/etc/sysctl.conf.pg
+kern.sysv.shmmax=8388608
+kern.sysv.shmmin=1
+kern.sysv.shmmni=64
+kern.sysv.shmseg=8
+kern.sysv.shmall=32768
+END
+fi
+
+if [ ! -d "$DATADIR" ]; then
+       printf -- "- making postgresql directories: "
+       sudo mkdir -p "$DATADIR"
+       sudo chown -R postgres "$DATADIR/.."
+       echo "ok"
+
+       printf -- "- initializing database in $DATADIR: "
+       sudo -u postgres ${PREFIX}/bin/initdb -E UNICODE -D "$DATADIR" 
>/tmp/pgsql-init-@PGVERSION@.log 2>&1 || die "couldn't initialize database"
+       echo "ok"
+fi
+
+PG_COMMAND="sudo -u postgres env"
+if [ -n "$PGPORT" ]; then
+       PG_COMMAND="$PG_COMMAND PGPORT=$PGPORT"
+fi
+PG_COMMAND="$PG_COMMAND ${PREFIX}/bin/pg_ctl"
+
+case "$1" in
+       init)
+               ;;
+       start)
+               $PG_COMMAND -D "$DATADIR" -l "$LOGFILE" start
+               ;;
+       restart)
+               $PG_COMMAND -D "$DATADIR" -m fast restart
+               ;;
+       stop)
+               $PG_COMMAND -D "$DATADIR" -m fast stop
+               ;;
+esac
diff -Nurd postgresql-9.0.4/src/Makefile.global.in 
postgresql-9.0.4-new/src/Makefile.global.in
--- postgresql-9.0.4/src/Makefile.global.in     2011-04-14 23:15:53.000000000 
-0400
+++ postgresql-9.0.4-new/src/Makefile.global.in 2011-07-21 11:39:12.000000000 
-0400
@@ -196,7 +196,7 @@
 
 # Compilers
 
-CPP = @CPP@
+CPP = $(CC) -E
 CPPFLAGS = @CPPFLAGS@
 
 ifdef PGXS
@@ -243,7 +243,7 @@
 ifdef PGXS
   LDFLAGS = -L$(libdir)
 else
-  LDFLAGS = -L$(top_builddir)/src/port
+  LDFLAGS = -L$(top_builddir)/src/port -L$(top_builddir)/src/interfaces/libpq 
-L$(top_builddir)/src/interfaces/ecpg/ecpglib 
-L$(top_builddir)/src/interfaces/ecpg/pgtypeslib 
-L$(top_builddir)/src/interfaces/ecpg/compatlib
 endif
 LDFLAGS += @LDFLAGS@
 
diff -Nurd postgresql-9.0.4/src/backend/utils/misc/postgresql.conf.sample 
postgresql-9.0.4-new/src/backend/utils/misc/postgresql.conf.sample
--- postgresql-9.0.4/src/backend/utils/misc/postgresql.conf.sample      
2011-04-14 23:15:53.000000000 -0400
+++ postgresql-9.0.4-new/src/backend/utils/misc/postgresql.conf.sample  
2011-07-21 11:38:27.000000000 -0400
@@ -77,7 +77,7 @@
 # - Security and Authentication -
 
 #authentication_timeout = 1min         # 1s-600s
-#ssl = off                             # (change requires restart)
+ssl = off                              # (change requires restart)
 #ssl_ciphers = 'ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH'     # allowed SSL ciphers
                                        # (change requires restart)
 #ssl_renegotiation_limit = 512MB       # amount of data between renegotiations
diff -Nurd postgresql-9.0.4/src/bin/initdb/initdb.c 
postgresql-9.0.4-new/src/bin/initdb/initdb.c
--- postgresql-9.0.4/src/bin/initdb/initdb.c    2011-04-14 23:15:53.000000000 
-0400
+++ postgresql-9.0.4-new/src/bin/initdb/initdb.c        2011-07-21 
11:38:27.000000000 -0400
@@ -114,7 +114,7 @@
 
 /* defaults */
 static int     n_connections = 10;
-static int     n_buffers = 50;
+static int     n_buffers = 20;
 
 /*
  * Warning messages for authentication methods
diff -Nurd postgresql-9.0.4/src/interfaces/ecpg/compatlib/Makefile 
postgresql-9.0.4-new/src/interfaces/ecpg/compatlib/Makefile
--- postgresql-9.0.4/src/interfaces/ecpg/compatlib/Makefile     2011-04-14 
23:15:53.000000000 -0400
+++ postgresql-9.0.4-new/src/interfaces/ecpg/compatlib/Makefile 2011-07-21 
11:38:27.000000000 -0400
@@ -21,6 +21,7 @@
        -I$(libpq_srcdir) -I$(top_srcdir)/src/include/utils $(CPPFLAGS)
 override CFLAGS += $(PTHREAD_CFLAGS)
 
+LDFLAGS := -L../ecpglib -L../pgtypeslib $(LDFLAGS)
 SHLIB_LINK = -L../ecpglib -lecpg -L../pgtypeslib -lpgtypes $(libpq) \
        $(filter -lintl -lm, $(LIBS)) $(PTHREAD_LIBS)
 
diff -Nurd postgresql-9.0.4/src/interfaces/ecpg/ecpglib/Makefile 
postgresql-9.0.4-new/src/interfaces/ecpg/ecpglib/Makefile
--- postgresql-9.0.4/src/interfaces/ecpg/ecpglib/Makefile       2011-04-14 
23:15:53.000000000 -0400
+++ postgresql-9.0.4-new/src/interfaces/ecpg/ecpglib/Makefile   2011-07-21 
11:38:27.000000000 -0400
@@ -33,6 +33,7 @@
 OBJS += thread.o
 endif
 
+LDFLAGS := -L../pgtypeslib $(LDFLAGS)
 SHLIB_LINK = -L../pgtypeslib -lpgtypes $(libpq) $(filter -lintl -lm, $(LIBS)) 
$(PTHREAD_LIBS)
 
 SHLIB_EXPORTS = exports.txt
diff -Nurd postgresql-9.0.4/src/makefiles/Makefile.darwin 
postgresql-9.0.4-new/src/makefiles/Makefile.darwin
--- postgresql-9.0.4/src/makefiles/Makefile.darwin      2011-04-14 
23:15:53.000000000 -0400
+++ postgresql-9.0.4-new/src/makefiles/Makefile.darwin  2011-07-21 
11:38:27.000000000 -0400
@@ -10,4 +10,4 @@
 
 # Rule for building a shared library from a single .o file
 %.so: %.o
-       $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -bundle $(BE_DLLLIBS) -o $@ $<
+       $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -bundle $(BE_DLLLIBS) 
-undefined dynamic_lookup -o $@ $<

Index: postgresql84.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/database/postgresql84.info,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- postgresql84.info   1 Dec 2011 20:57:57 -0000       1.2
+++ postgresql84.info   13 Jan 2012 01:10:41 -0000      1.3
@@ -1,7 +1,8 @@
 Info4: <<
 Package: postgresql84
 Version: 8.4.8
-Revision: 1
+Revision: 2
+Distribution: 10.4, 10.5, 10.6
 Description: PostgreSQL open-source database
 License: BSD
 Maintainer: Benjamin Reed <postgresq...@fink.raccoonfink.com>
@@ -16,7 +17,7 @@
 <<
 BuildDepends: <<
        bison,
-       fink (>= 0.29.7-1),
+       fink (>= 0.30.0-1),
        fink-mirrors (>= 0.28.7.1-2),
        libxml2,
        libxslt,
@@ -32,7 +33,18 @@
 
 Source: mirror:postgresql:source/v%v/postgresql-%v.tar.bz2
 Source-MD5: 4603e8ea30cee97189b62b39022f2043
-PatchScript: sed -e 's|@BUILDDIR@|%b|g' -e 's|@INSTPREFIX@|%p|g' < 
%{PatchFile} | patch -p1
+PatchScript: <<
+#!/bin/sh -ex
+       sed -e 's|@BUILDDIR@|%b|g' -e 's|@INSTPREFIX@|%p|g' < %{PatchFile} | 
patch -p1
+
+       # If we have fink ExtUtils::ParseXS, it is early in PERL5LIB;
+       # therefore we need the xsubpp program (also part of that
+       # pkg). Handcoded makefiles for perl modules are bad, m'kay?
+       fink_XSUBPP="%p/lib/perl5/ExtUtils/xsubpp"
+       if [ -x $fink_XSUBPP ]; then
+               perl -pi -e "s,\S+xsubpp,${fink_XSUBPP},g" 
src/pl/plperl/GNUmakefile
+       fi
+<<
 PatchFile: %n.patch
 PatchFile-MD5: e42fbdad63059b801b016b33742f1512
 
@@ -216,8 +228,7 @@
 fi
        <<
        PostInstScript: [ -x %p/var/postgresql-8.4/update-alternatives.sh ] && 
%p/var/postgresql-8.4/update-alternatives.sh
-       PreRmScript: [ -x %p/var/postgresql-8.4/remove-alternatives.sh ] && 
%p/var/postgresql-8.4/remove-alternatives.sh
-       PostRmScript: [ -x %p/var/postgresql-8.4/update-alternatives.sh ] && 
%p/var/postgresql-8.4/update-alternatives.sh
+       PreRmScript: if [ "$1" != "upgrade" ]; then [ -x 
%p/var/postgresql-8.4/remove-alternatives.sh ] && 
%p/var/postgresql-8.4/remove-alternatives.sh; fi
 <<
 SplitOff2: <<
        Package: %N-shlibs
@@ -234,7 +245,7 @@
                %p/opt/postgresql-8.4/lib/libpq.5.dylib          5.0.0 
postgresql84-shlibs (>= 8.4.0-1)
        <<
        PostInstScript: [ -x %p/var/postgresql-8.4/update-alternatives.sh ] && 
%p/var/postgresql-8.4/update-alternatives.sh
-       PreRmScript: [ -x %p/var/postgresql-8.4/remove-alternatives.sh ] && 
%p/var/postgresql-8.4/remove-alternatives.sh
+       PreRmScript: if [ "$1" != "upgrade" ]; then [ -x 
%p/var/postgresql-8.4/remove-alternatives.sh ] && 
%p/var/postgresql-8.4/remove-alternatives.sh; fi
 <<
 
 PreInstScript: <<
@@ -312,14 +323,12 @@
 fi
 <<
 PreRmScript: <<
-[ -x %p/var/postgresql-8.4/remove-alternatives.sh ] && 
%p/var/postgresql-8.4/remove-alternatives.sh
-
 # clean up
 if [ $1 != "upgrade" ]; then
+       [ -x %p/var/postgresql-8.4/remove-alternatives.sh ] && 
%p/var/postgresql-8.4/remove-alternatives.sh
        daemonic remove %N >/dev/null 2>&1 || :
 fi
 <<
-PostRmScript: [ -x %p/var/postgresql-8.4/update-alternatives.sh ] && 
%p/var/postgresql-8.4/update-alternatives.sh
 DaemonicFile: <<
 <service>
 <description>PostgreSQL database server</description>

Index: postgresql-python-py.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/database/postgresql-python-py.info,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- postgresql-python-py.info   11 Jul 2011 04:08:30 -0000      1.1
+++ postgresql-python-py.info   13 Jan 2012 01:10:41 -0000      1.2
@@ -1,8 +1,8 @@
 Info2: <<
 Package: postgresql-python-py%type_pkg[python]
-Version: 8.2.19
-Revision: 1
-Distribution: (%type_pkg[python] = 23) 10.4, (%type_pkg[python] = 24) 10.4, 
(%type_pkg[python] = 24) 10.5
+Version: 8.2.21
+Revision: 2
+Distribution: (%type_pkg[python] = 23) 10.3, (%type_pkg[python] = 23) 10.4, 
(%type_pkg[python] = 24) 10.5, 10.6
 Description: PostgreSQL Python tools
 Type: python(2.3 2.4 2.5 2.6)
 License: BSD
@@ -15,7 +15,7 @@
        readline5-shlibs
 <<
 BuildDepends: <<
-       fink (>= 0.29.7-1),
+       fink (>= 0.30.0-1),
        fink-mirrors (>= 0.28.7.1-2),
        postgresql82-dev (>= %v-1),
        python%type_pkg[python],
@@ -37,7 +37,7 @@
 <<
 
 Source: mirror:postgresql:source/v%v/postgresql-%v.tar.bz2
-Source-MD5: c7806430decc8dc67fb52920a3940c54
+Source-MD5: 6f61c428e6c4acf8619a5534d0c283ac
 Source2: ftp://ftp.pygresql.org/pub/distrib/PyGreSQL-4.0.tgz
 Source2-MD5: 1aca50e59ff4cc56abe9452a9a49c5ff
 PatchScript: sed -e 's|@INSTPREFIX@|%p|g' -e 
's|python2.1|python%type_raw[python]|g' < %{PatchFile} | patch -p1
@@ -107,10 +107,12 @@
 *** WARNING ***
 END
 <<
-PostRmScript: <<
-       update-alternatives --remove postgresql-python-plpython.so 
%p/lib/postgresql-8.2/plpython-%type_pkg[python].so
-       if [ ! -f %p/lib/postgresql-8.2/plpython.so ]; then
-         sudo -u postgres %p/bin/droplang plpython template1 >/dev/null 2>&1 
|| :
+PreRmScript: <<
+       if [ "$1" != "upgrade" ]; then
+               update-alternatives --remove postgresql-python-plpython.so 
%p/lib/postgresql-8.2/plpython-%type_pkg[python].so
+               if [ ! -f %p/lib/postgresql-8.2/plpython.so ]; then
+                 sudo -u postgres %p/bin/droplang plpython template1 
>/dev/null 2>&1 || :
+               fi
        fi
 <<
 

--- NEW FILE: postgresql83-python-py.info ---
Info2: <<
Package: postgresql83-python-py%type_pkg[python]
Version: 8.3.7
Revision: 3
Distribution: (%type_pkg[python] = 23) 10.4, (%type_pkg[python] = 24) 10.4, 
(%type_pkg[python] = 24) 10.5, 10.6
Description: PostgreSQL Python tools
Type: python(2.3 2.4 2.5 2.6)
License: BSD
Maintainer: Benjamin Reed <postgresql-python...@fink.racoonfink.com>

Depends: <<
        postgresql83-shlibs (>= %v-1),
        python%type_pkg[python],
        python-mx-py%type_pkg[python],
        readline5-shlibs
<<
BuildDepends: <<
        fink (>= 0.30.0-1),
        fink-mirrors (>= 0.28.7.1-2),
        postgresql83-dev (>= %v-1),
        python%type_pkg[python],
        bison,
        readline5,
        system-openssl-dev
<<

Source: mirror:postgresql:source/v%v/postgresql-%v.tar.bz2
Source-MD5: 7b7e91a2221e55fe1b167e663217a96d

SetCPPFLAGS: -DHAVE_OPTRESET -I%p/include/postgresql -I%p/include
SetLIBS: -L%p/lib
NoSetCPPFLAGS: true
NoSetLDFLAGS: true
UseMaxBuildJobs: true
ConfigureParams: --prefix=%p --with-docdir=%p/share/doc --mandir=%p/share/man 
--enable-multibyte --enable-recode --with-CXX --without-perl --with-python 
--with-openssl --with-libraries=%p/lib --with-includes=%p/include --without-tcl 
--without-java --enable-odbc --with-pam --with-rendezvous
CompileScript: <<
        #!/bin/sh -ev
        
        export lt_cv_sys_max_cmd_len=65536
        export ac_cv_path_PYTHON=%p/bin/python%type_raw[python]
        export CPPFLAGS="-I%p/lib/system-openssl/include -I%p/include 
-DHAVE_OPTRESET -fno-common"
        export LDFLAGS="-L%p/lib/system-openssl/lib -L%p/lib"
        ./configure %c
        
        pushd src/pl/plpython
        make BE_DLLLIBS="-bundle_loader %p/bin/postgres"
        popd
<<

InstallScript: <<
#!/bin/sh -ev

        pushd src/pl/plpython
        make install DESTDIR=%d INSTALLSITEMAN3DIR=%i/share/man/man3
        popd

  mkdir %i/lib/postgresql-8.3
        mv %i/lib/postgresql/plpython.so 
%i/lib/postgresql-8.3/plpython-%type_pkg[python].so
<<
DocFiles: COPYRIGHT HISTORY INSTALL README
SplitOff: <<
        Package: postgresql83-ssl-python-py%type_pkg[python]
        Depends: postgresql83-python-py%type_pkg[python] (>= %v-%r)
        DocFiles: COPYRIGHT HISTORY INSTALL README
<<

PostInstScript: <<
        update-alternatives --install %p/lib/postgresql-8.3/plpython.so 
postgresql-python-plpython.so 
%p/lib/postgresql-8.3/plpython-%type_pkg[python].so %type_pkg[python]
        cat <<END
*** WARNING ***

To be able to use this (plpython) in PostgreSQL, you will need to
start your database:

        sudo %p/bin/pgsql.sh start

...and then run:

        sudo -u postgres %p/bin/createlang plpythonu template1

*** WARNING ***
END
<<
PreRmScript: <<
        if [ "$1" != "upgrade" ]; then
                update-alternatives --remove postgresql-python-plpython.so 
%p/lib/postgresql-8.3/plpython-%type_pkg[python].so
                if [ ! -f %p/lib/postgresql-8.3/plpython.so ]; then
                  sudo -u postgres %p/bin/droplang plpython template1 
>/dev/null 2>&1 || :
                fi
        fi
<<

Homepage: http://www.postgresql.org/
DescDetail: <<
To be able to use this (plpython) in PostgreSQL, you will need to
start your database:

        sudo %p/bin/pgsql.sh start

...and then run:

        sudo -u postgres %p/bin/createlang plpythonu template1
<<
<<


Index: postgresql82.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/database/postgresql82.info,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- postgresql82.info   1 Dec 2011 20:57:57 -0000       1.2
+++ postgresql82.info   13 Jan 2012 01:10:41 -0000      1.3
@@ -1,6 +1,7 @@
 Package: postgresql82
 Version: 8.2.21
-Revision: 1
+Revision: 2
+Distribution: 10.4, 10.5, 10.6
 Description: PostgreSQL open-source database
 License: BSD
 Maintainer: Benjamin Reed <postgresq...@fink.raccoonfink.com>
@@ -15,7 +16,7 @@
 <<
 BuildDepends: <<
        bison,
-       fink (>= 0.29.7-1),
+       fink (>= 0.30.0-1),
        fink-mirrors (>= 0.28.7.1-2),
        libxml2,
        libxslt,
@@ -291,8 +292,7 @@
 fi
        <<
        PostInstScript: [ -x %p/var/postgresql-8.2/update-alternatives.sh ] && 
%p/var/postgresql-8.2/update-alternatives.sh
-       PreRmScript: [ -x %p/var/postgresql-8.2/remove-alternatives.sh ] && 
%p/var/postgresql-8.2/remove-alternatives.sh
-       PostRmScript: [ -x %p/var/postgresql-8.2/update-alternatives.sh ] && 
%p/var/postgresql-8.2/update-alternatives.sh
+       PreRmScript: if [ "$1" != "upgrade" ]; then [ -x 
%p/var/postgresql-8.2/remove-alternatives.sh ] && 
%p/var/postgresql-8.2/remove-alternatives.sh; fi
 <<
 SplitOff2: <<
        Package: %N-shlibs
@@ -317,7 +317,7 @@
                %p/lib/postgresql-8.2/libpq.5.dylib          5.0.0 
postgresql82-shlibs (>= 8.2.13-1)
        <<
        PostInstScript: [ -x %p/var/postgresql-8.2/update-alternatives.sh ] && 
%p/var/postgresql-8.2/update-alternatives.sh
-       PreRmScript: [ -x %p/var/postgresql-8.2/remove-alternatives.sh ] && 
%p/var/postgresql-8.2/remove-alternatives.sh
+       PreRmScript: if [ "$1" != "upgrade" ]; then [ -x 
%p/var/postgresql-8.2/remove-alternatives.sh ] && 
%p/var/postgresql-8.2/remove-alternatives.sh; fi
 <<
 SplitOff3: <<
        Package: postgresql
@@ -409,14 +409,12 @@
 fi
 <<
 PreRmScript: <<
-[ -x %p/var/postgresql-8.2/remove-alternatives.sh ] && 
%p/var/postgresql-8.2/remove-alternatives.sh
-
 # clean up
 if [ $1 != "upgrade" ]; then
+       [ -x %p/var/postgresql-8.2/remove-alternatives.sh ] && 
%p/var/postgresql-8.2/remove-alternatives.sh
        daemonic remove %N >/dev/null 2>&1 || :
 fi
 <<
-PostRmScript: [ -x %p/var/postgresql-8.2/update-alternatives.sh ] && 
%p/var/postgresql-8.2/update-alternatives.sh
 DaemonicFile: <<
        <service>
        <description>PostgreSQL database server</description>

Index: postgresql90.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/database/postgresql90.info,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- postgresql90.info   1 Dec 2011 20:57:57 -0000       1.2
+++ postgresql90.info   13 Jan 2012 01:10:41 -0000      1.3
@@ -1,7 +1,7 @@
 Info4: <<
 Package: postgresql90
 Version: 9.0.4
-Revision: 1
+Revision: 5
 Description: PostgreSQL open-source database
 License: BSD
 Maintainer: Benjamin Reed <postgresq...@fink.raccoonfink.com>
@@ -10,17 +10,17 @@
        daemonic (>= 20010902-1),
        libxml2-shlibs,
        libxslt-shlibs,
-       passwd (>= 20030906-1),
+       passwd-postgres,
        readline5-shlibs,
        %N-shlibs (>= %v-%r)
 <<
 BuildDepends: <<
        bison,
-       fink (>= 0.29.7-1),
+       fink (>= 0.30.0-1),
        fink-mirrors (>= 0.28.7.1-2),
        libxml2,
        libxslt,
-       passwd (>= 20030906-1),
+       passwd-postgres,
        readline5,
        system-openssl-dev,
        system-perl,
@@ -32,9 +32,20 @@
 
 Source: mirror:postgresql:source/v%v/postgresql-%v.tar.bz2
 Source-MD5: 80390514d568a7af5ab61db1cda27e29
-PatchScript: sed -e 's|@BUILDDIR@|%b|g' -e 's|@INSTPREFIX@|%p|g' < 
%{PatchFile} | patch -p1
+PatchScript: <<
+#!/bin/sh -ex
+       sed -e 's|@BUILDDIR@|%b|g' -e 's|@INSTPREFIX@|%p|g' < %{PatchFile} | 
patch -p1
+
+       # If we have fink ExtUtils::ParseXS, it is early in PERL5LIB;
+       # therefore we need the xsubpp program (also part of that
+       # pkg). Handcoded makefiles for perl modules are bad, m'kay?
+       fink_XSUBPP="%p/lib/perl5/ExtUtils/xsubpp"
+       if [ -x $fink_XSUBPP ]; then
+               perl -pi -e "s,\S+xsubpp,${fink_XSUBPP},g" 
src/pl/plperl/GNUmakefile
+       fi
+<<
 PatchFile: %n.patch
-PatchFile-MD5: 3a631636c02956ab807bd4b08eef5e00
+PatchFile-MD5: 7c9ccbc8a0c66027b7bf6d0f5df6ad5a
 
 SetCPPFLAGS: -I%p/lib/system-openssl/include -DHAVE_OPTRESET -fno-common
 SetLDFLAGS: -L%p/lib/system-openssl/lib -F/System/Library/Frameworks
@@ -42,7 +53,10 @@
 CompileScript: <<
        #!/bin/sh -xe
        
-       if [ -x /usr/bin/gcc-4.2 ]; then
+       if [[ $(sw_vers -productVersion | cut -d. -f1-2) > 10.6 ]]; then
+       export CC=clang
+       export CXX=clang++
+       elif [ -x /usr/bin/gcc-4.2 ]; then
        export CC=gcc-4.2
        export CXX=g++-4.2
        fi
@@ -198,14 +212,13 @@
 PG_ID=`id -u postgres 2>/dev/null || true`
 if [ -z "$PG_ID" ]; then
        echo "Whoa there!  You must have a postgres user to install this 
package."
-       echo "Please do a 'fink reinstall passwd' and make sure you hit 'y' 
when it"
-       echo "asks if you want to update your users."
+       echo "Please do a 'fink reinstall passwd-postgres'"
+       echo "and make sure you hit 'y' when it asks if you want to update your 
users."
        exit 1
 fi
        <<
        PostInstScript: [ -x %p/var/postgresql-9.0/update-alternatives.sh ] && 
%p/var/postgresql-9.0/update-alternatives.sh
-       PreRmScript: [ -x %p/var/postgresql-9.0/remove-alternatives.sh ] && 
%p/var/postgresql-9.0/remove-alternatives.sh
-       PostRmScript: [ -x %p/var/postgresql-9.0/update-alternatives.sh ] && 
%p/var/postgresql-9.0/update-alternatives.sh
+       PreRmScript: if [ "$1" != "upgrade" ]; then [ -x 
%p/var/postgresql-9.0/remove-alternatives.sh ] && 
%p/var/postgresql-9.0/remove-alternatives.sh; fi
 <<
 SplitOff2: <<
        Package: %N-shlibs
@@ -236,15 +249,15 @@
        fi
 fi
        <<
-       PreRmScript: [ -x %p/var/postgresql-9.0/remove-alternatives.sh ] && 
%p/var/postgresql-9.0/remove-alternatives.sh
+       PreRmScript: if [ "$1" != "upgrade" ]; then [ -x 
%p/var/postgresql-9.0/remove-alternatives.sh ] && 
%p/var/postgresql-9.0/remove-alternatives.sh; fi
 <<
 
 PreInstScript: <<
 PG_ID=`id -u postgres 2>/dev/null || true`
 if [ -z "$PG_ID" ]; then
        echo "Whoa there!  You must have a postgres user to install this 
package."
-       echo "Please do a 'fink reinstall passwd' and make sure you hit 'y' 
when it"
-       echo "asks if you want to update your users."
+       echo "Please do a 'fink reinstall passwd-postgres'"
+       echo "and make sure you hit 'y' when it asks if you want to update your 
users."
        exit 1
 fi
 <<
@@ -314,14 +327,12 @@
 fi
 <<
 PreRmScript: <<
-[ -x %p/var/postgresql-9.0/remove-alternatives.sh ] && 
%p/var/postgresql-9.0/remove-alternatives.sh
-
 # clean up
 if [ $1 != "upgrade" ]; then
+       [ -x %p/var/postgresql-9.0/remove-alternatives.sh ] && 
%p/var/postgresql-9.0/remove-alternatives.sh
        daemonic remove %N >/dev/null 2>&1 || :
 fi
 <<
-PostRmScript: [ -x %p/var/postgresql-9.0/update-alternatives.sh ] && 
%p/var/postgresql-9.0/update-alternatives.sh
 DaemonicFile: <<
 <service>
 <description>PostgreSQL database server</description>

Index: postgresql80-unified.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/database/postgresql80-unified.info,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- postgresql80-unified.info   11 Jul 2011 04:08:30 -0000      1.1
+++ postgresql80-unified.info   13 Jan 2012 01:10:41 -0000      1.2
@@ -1,6 +1,7 @@
 Package: postgresql80-unified
 Version: 8.0.26
-Revision: 1
+Revision: 2
+Distribution: 10.4, 10.5, 10.6
 Description: PostgreSQL open-source database
 License: BSD
 Maintainer: Benjamin Reed <postgresq...@fink.raccoonfink.com>
@@ -15,7 +16,7 @@
 <<
 BuildDepends: <<
        bison,
-       fink (>= 0.29.7-1),
+       fink (>= 0.30.0-1),
        fink-mirrors (>= 0.28.7.1-2),
        libxml2,
        libxslt,
@@ -312,8 +313,7 @@
 fi
        <<
        PostInstScript: [ -x %p/var/postgresql-8.0/update-alternatives.sh ] && 
%p/var/postgresql-8.0/update-alternatives.sh
-       PreRmScript: [ -x %p/var/postgresql-8.0/remove-alternatives.sh ] && 
%p/var/postgresql-8.0/remove-alternatives.sh
-       PostRmScript: [ -x %p/var/postgresql-8.0/update-alternatives.sh ] && 
%p/var/postgresql-8.0/update-alternatives.sh
+       PreRmScript: if [ "$1" != "upgrade" ]; then [ -x 
%p/var/postgresql-8.0/remove-alternatives.sh ] && 
%p/var/postgresql-8.0/remove-alternatives.sh; fi
 <<
 SplitOff2: <<
        Package: %N-shlibs
@@ -345,14 +345,14 @@
                %p/lib/postgresql-8.0/libpq.4.dylib          4.0.0 
postgresql80-unified-shlibs (>= 8.0.21-1)
        <<
        PostInstScript: [ -x %p/var/postgresql-8.0/update-alternatives.sh ] && 
%p/var/postgresql-8.0/update-alternatives.sh
-       PreRmScript: [ -x %p/var/postgresql-8.0/remove-alternatives.sh ] && 
%p/var/postgresql-8.0/remove-alternatives.sh
+       PreRmScript: if [ "$1" != "upgrade" ]; then [ -x 
%p/var/postgresql-8.0/remove-alternatives.sh ] && 
%p/var/postgresql-8.0/remove-alternatives.sh; fi
 <<
 SplitOff3: <<
        Package: postgresql80
        Description: Upgrade package for PostgreSQL 8.0
        Depends: <<
                %N (>= %v-%r),
-               fink (>= 0.29.7-1),
+               fink (>= 0.30.0-1),
                fink-obsolete-packages
        <<
        DocFiles: COPYRIGHT HISTORY INSTALL README
@@ -379,7 +379,7 @@
        Description: Upgrade package for PostgreSQL 8.0 development
        Depends: <<
                %N-dev (>= %v-%r),
-               fink (>= 0.29.7-1),
+               fink (>= 0.30.0-1),
                fink-obsolete-packages
        <<
        BuildDependsOnly: true
@@ -390,7 +390,7 @@
        Description: Upgrade package for PostgreSQL 8.0 libraries
        Depends: <<
                %N-shlibs (>= %v-%r),
-               fink (>= 0.29.7-1),
+               fink (>= 0.30.0-1),
                fink-obsolete-packages
        <<
        DocFiles: COPYRIGHT HISTORY INSTALL README
@@ -400,7 +400,7 @@
        Description: Upgrade package for PostgreSQL 8.0 (SSL)
        Depends: <<
                %N (>= %v-%r),
-               fink (>= 0.29.7-1),
+               fink (>= 0.30.0-1),
                fink-obsolete-packages
        <<
        DocFiles: COPYRIGHT HISTORY INSTALL README
@@ -427,7 +427,7 @@
        Description: Upgrade package for PostgreSQL 8.0 development (SSL)
        Depends: <<
                %N-dev (>= %v-%r),
-               fink (>= 0.29.7-1),
+               fink (>= 0.30.0-1),
                fink-obsolete-packages
        <<
        BuildDependsOnly: true
@@ -438,7 +438,7 @@
        Description: Upgrade package for PostgreSQL 8.0 libraries (SSL)
        Depends: <<
                %N-shlibs (>= %v-%r),
-               fink (>= 0.29.7-1),
+               fink (>= 0.30.0-1),
                fink-obsolete-packages
        <<
        DocFiles: COPYRIGHT HISTORY INSTALL README
@@ -519,17 +519,15 @@
 fi
 <<
 PreRmScript: <<
-[ -x %p/var/postgresql-8.0/remove-alternatives.sh ] && 
%p/var/postgresql-8.0/remove-alternatives.sh
-
-# clean up
-daemonic remove postgresql       >/dev/null 2>&1 || :
-daemonic remove postgresql80-ssl >/dev/null 2>&1 || :
-daemonic remove postgresql80     >/dev/null 2>&1 || :
-if [ $1 != "upgrade" ]; then
-       daemonic remove %N >/dev/null 2>&1 || :
-fi
+       # clean up
+       daemonic remove postgresql       >/dev/null 2>&1 || :
+       daemonic remove postgrsql       >/dev/null 2>&1 || 
:p/var/postgresql-8.0/remove-alternatives.shp/var/postgresql-8.0/remove-alternatives.sh;
 fie_pkg[python]l --with-libraries=%p/lib --with-includes=%p/include 
--without-tcl --without-java --enable-odbc --with-pam 
--with-rendezvous*6 
èè!è!P‹jŒÿÀ‹jŒÿxDG'Í*ЁjŒÿ"‘*&Í*®*&Í*P‹jŒÿð*&Í*‹jŒÿÀ?«'Í*ó˜*&Í*0«'Í*Ø4«'Í*¨9«'Í*€º+&Í*xDG'Í*ЁjŒÿ €jŒÿë­*&Í*à!à!P‹jŒÿÀ‹jŒÿÈ
''Í*°‚jŒÿ"‘*&Í*®*&Í*P‹jŒÿð*&Í*‹jŒÿ€‹jŒÿx‹jŒÿ«K&Í*Œp˜À‹jŒÿó˜*&Í*€º+&Í*°‚jŒÿ€jŒÿë­*&Í*GHIJKMNOPP‹jŒÿÀ‹jŒÿHÅý&Í*P„jŒÿ"‘*&Í*®*&Í*P‹jŒÿ0?«'Í*ó˜*&Í*PG'Í* ùÚ&Í*0«'Í*Ø4«'Í*¨9«'Í*€º+&Í*HÅý&Í*P„jŒÿ‚jŒÿë­*&Í*8Åý&Í*P„jŒÿÀ‚jŒÿë­*&Í*(Åý&Í*P„jŒÿð‚jŒÿë­*&Í*Åý&Í*P„jŒÿ
 ƒjŒÿë­*&Í*  
¨>«'Í*ó˜*&Í*¨9«'Í* }jŒÿŠHÛ&Í*æ—*&Í*Ø4«'Í*ÀƒjŒÿyHÛ&Í*æ—*&Í*0«'Í*ðƒjŒÿZHÛ&Í*æ—*&Í*ØôÚ&Í*PG'Í* ùÚ&Í*0«'Í*ØTG'Í*Ø4«'Í*¨9«'Í*€º+&Í*«K&Í*ͦ&Í*À‹jŒÿp‹Ú&Í* …jŒÿp„jŒÿë­*&Í*5678:<=>?@BDP‹jŒÿÀ‹jŒÿàÍ£&Í*À‹jŒÿó˜*&Í*è¤K&Í*
 „jŒÿͦ&Í*æ—*&Í*è¤K&Í*Õ_@fÆS 
Qöl±íÁãr&Í*À‹jŒÿàÍ£&Í*°†jŒÿ€…jŒÿë­*&Í*u]ÞÓ
     
4Q ÷U^Qʉ§¶uª¹ñìò*ēv´b¬&Í*jŒÿF`(Í*F`(Í*?µ©&Í*ÀŒjŒÿP‹jŒÿà‡jŒÿ‹jŒÿ€‹jŒÿx‹jŒÿ@ŽjŒÿB`(Í*jŒÿØTG'Í* YG'Í*€º+&Í*ÿÿÿÿÿÿÿÿB`(Í*ȋjŒÿë­*&esql80-ssl
 >/dev/null 2>&1 || :
+       daemonic remove postgresql80     >/dev/null 2>&1 || :
+       if [ $1 != "upgrade" ]; then
+               [ -x %p/var/postgresql-8.0/remove-alternatives.sh ] && 
%p/var/postgresql-8.0/remove-alternatives.sh
+               daemonic remove %N >/dev/null 2>&1 || :
+       fi
 <<
-PostRmScript: [ -x %p/var/postgresql-8.0/update-alternatives.sh ] && 
%p/var/postgresql-8.0/update-alternatives.sh
 DaemonicFile: <<
        <service>
        <description>PostgreSQL database server</description>

Index: postgresql83.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/database/postgresql83.info,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- postgresql83.info   1 Dec 2011 17:35:02 -0000       1.2
+++ postgresql83.info   13 Jan 2012 01:10:41 -0000      1.3
@@ -1,6 +1,7 @@
 Package: postgresql83
 Version: 8.3.15
-Revision: 1
+Revision: 2
+Distribution: 10.4, 10.5, 10.6
 Description: PostgreSQL open-source database
 License: BSD
 Maintainer: Benjamin Reed <postgresq...@fink.raccoonfink.com>
@@ -15,7 +16,7 @@
 <<
 BuildDepends: <<
        bison,
-       fink (>= 0.29.7-1),
+       fink (>= 0.30.0-1),
        fink-mirrors (>= 0.28.7.1-2),
        libxml2,
        libxslt,
@@ -291,8 +292,7 @@
 fi
        <<
        PostInstScript: [ -x %p/var/postgresql-8.3/update-alternatives.sh ] && 
%p/var/postgresql-8.3/update-alternatives.sh
-       PreRmScript: [ -x %p/var/postgresql-8.3/remove-alternatives.sh ] && 
%p/var/postgresql-8.3/remove-alternatives.sh
-       PostRmScript: [ -x %p/var/postgresql-8.3/update-alternatives.sh ] && 
%p/var/postgresql-8.3/update-alternatives.sh
+       PreRmScript: if [ "$1" != "upgrade" ]; then [ -x 
%p/var/postgresql-8.3/remove-alternatives.sh ] && 
%p/var/postgresql-8.3/remove-alternatives.sh; fi
 <<
 SplitOff2: <<
        Package: %N-shlibs
@@ -317,7 +317,7 @@
                %p/lib/postgresql-8.3/libpq.5.dylib          5.0.0 
postgresql83-shlibs (>= 8.3.7-1)
        <<
        PostInstScript: [ -x %p/var/postgresql-8.3/update-alternatives.sh ] && 
%p/var/postgresql-8.3/update-alternatives.sh
-       PreRmScript: [ -x %p/var/postgresql-8.3/remove-alternatives.sh ] && 
%p/var/postgresql-8.3/remove-alternatives.sh
+       PreRmScript: if [ "$1" != "upgrade" ]; then [ -x 
%p/var/postgresql-8.3/remove-alternatives.sh ] && 
%p/var/postgresql-8.3/remove-alternatives.sh; fi
 <<
 SplitOff3: <<
        Package: postgresql
@@ -409,14 +409,12 @@
 fi
 <<
 PreRmScript: <<
-[ -x %p/var/postgresql-8.3/remove-alternatives.sh ] && 
%p/var/postgresql-8.3/remove-alternatives.sh
-
 # clean up
 if [ $1 != "upgrade" ]; then
+       [ -x %p/var/postgresql-8.3/remove-alternatives.sh ] && 
%p/var/postgresql-8.3/remove-alternatives.sh
        daemonic remove %N >/dev/null 2>&1 || :
 fi
 <<
-PostRmScript: [ -x %p/var/postgresql-8.3/update-alternatives.sh ] && 
%p/var/postgresql-8.3/update-alternatives.sh
 DaemonicFile: <<
        <service>
        <description>PostgreSQL database server</description>

Index: postgresql-perl.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/database/postgresql-perl.info,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- postgresql-perl.info        11 Jul 2011 04:08:30 -0000      1.1
+++ postgresql-perl.info        13 Jan 2012 01:10:41 -0000      1.2
@@ -1,7 +1,7 @@
 Info2: <<
 Package: postgresql-perl-%type_pkg[perl]
-Version: 8.2.19
-Revision: 1
+Version: 8.2.21
+Revision: 2
 Architecture: (%type_pkg[perl] = 581) powerpc, (%type_pkg[perl] = 584) powerpc
 Distribution: (%type_pkg[perl] = 581) 10.4, (%type_pkg[perl] = 584) 10.4, 
(%type_pkg[perl] = 586) 10.4, (%type_pkg[perl] = 586) 10.5, (%type_pkg[perl] = 
5100) 10.5, (%type_pkg[perl] = 5100) 10.6
 Description: PostgreSQL Perl tools
@@ -14,7 +14,7 @@
        perl%type_pkg[perl]-core
 <<
 BuildDepends: <<
-       fink (>= 0.29.7-1),
+       fink (>= 0.30.0-1),
        fink-mirrors (>= 0.28.7.1-2),
        postgresql82-dev (>= %v-1),
        perl%type_pkg[perl]-core,
@@ -36,7 +36,7 @@
 <<
 
 Source: mirror:postgresql:source/v%v/postgresql-%v.tar.bz2
-Source-MD5: c7806430decc8dc67fb52920a3940c54
+Source-MD5: 6f61c428e6c4acf8619a5534d0c283ac
 Source2: ftp://gborg.postgresql.org/pub/pgperl/stable/Pg-2.1.1.tar.gz
 Source2-MD5: c11c0abd99b8e1f50ba5dbdb922c2e61
 PatchScript: sed -e 's,@INSTPREFIX@,%p,g' -e 
's,perl5.6.0,perl%type_raw[perl],g' < %{PatchFile} | patch -p1
@@ -118,7 +118,7 @@
 *** WARNING ***
 END
 <<
-PostRmScript: <<
+PreRmScript: <<
 if [ "$1" != "upgrade" ]; then
        update-alternatives --remove postgresql-perl-plperl.so 
%p/lib/postgresql-8.2/plperl-%type_pkg[perl].so
        update-alternatives --remove postgresql-perl-Pg.3 
%p/share/man/man3/Pg-%type_pkg[perl].3

--- NEW FILE: postgresql91.info ---
Info4: <<
Package: postgresql91
Version: 9.1.0
Revision: 2
Description: PostgreSQL open-source database
License: BSD
Maintainer: Benjamin Reed <postgresq...@fink.raccoonfink.com>

Depends: <<
        daemonic (>= 20010902-1),
        libxml2-shlibs,
        libxslt-shlibs,
        passwd-postgres,
        readline5-shlibs,
        %N-shlibs (>= %v-%r)
<<
BuildDepends: <<
        bison,
        fink (>= 0.30.2-1),
        fink-mirrors (>= 0.28.7.1-2),
        libxml2,
        libxslt,
        passwd-postgres,
        readline5,
        system-openssl-dev,
        system-perl,
        tcltk,
        tcltk-dev
<<
Provides: postgresql-server
GCC: 4.0

Source: mirror:postgresql:source/v%v/postgresql-%v.tar.bz2
Source-MD5: 0497b9da1d7c380c340a9a87ba5500fe
PatchScript: <<
#!/bin/sh -ex
        sed -e 's|@BUILDDIR@|%b|g' -e 's|@INSTPREFIX@|%p|g' -e 
's|@PGVERSION@|9.1|g' < %{PatchFile} | patch -p1

        # If we have fink ExtUtils::ParseXS, it is early in PERL5LIB;
        # therefore we need the xsubpp program (also part of that
        # pkg). Handcoded makefiles for perl modules are bad, m'kay?
        fink_XSUBPP="%p/lib/perl5/ExtUtils/xsubpp"
        if [ -x $fink_XSUBPP ]; then
                perl -pi -e "s,\S+xsubpp,${fink_XSUBPP},g" 
src/pl/plperl/GNUmakefile
        fi
<<



PatchFile: %n.patch
PatchFile-MD5: ca800eba11497ef264f1ca93f9509f46

SetCPPFLAGS: -I%p/lib/system-openssl/include -DHAVE_OPTRESET -fno-common
SetLDFLAGS: -L%p/lib/system-openssl/lib -F/System/Library/Frameworks
UseMaxBuildJobs: true
CompileScript: <<
        #!/bin/sh -xe
        
        if [[ $(sw_vers -productVersion | cut -d. -f1-2) > 10.6 ]]; then
        export CC=clang
        export CXX=clang++
        elif [ -x /usr/bin/gcc-4.2 ]; then
        export CC=gcc-4.2
        export CXX=g++-4.2
        fi
        
        export PERL=/usr/bin/perl
        export PYTHON=/usr/bin/python
        
        ./configure \
        --prefix='%p/opt/postgresql-9.1' \
        --docdir='%p/share/doc/%N' \
        --mandir='${prefix}/share/man' \
        --infodir='${prefix}/share/info' \
        --with-libraries=%p/lib \
        --with-includes=%p/include \
        \
        --with-perl \
        --with-python \
        --with-tcl \
        --with-tclconfig=%p/lib \
        \
        --enable-thread-safety \
        --with-openssl \
        --with-pam \
        --with-bonjour \
        --with-krb5 \
        --with-gssapi \
        \
        --with-libxml \
        --with-libxslt
        
        perl -pi -e 's,-arch x86_64,,g; s,-arch i386,,g; s,-arch ppc,,g' 
src/Makefile.global
        make
        make -C contrib
<<

InstallScript: <<
#!/bin/sh -xe

        # postgresql
        make -j1 install DESTDIR="%d" 
BE_DLLLIBS=%p/opt/postgresql-9.1/bin/postgres
        make -j1 -C contrib install DESTDIR="%d" 
BE_DLLLIBS=%p/opt/postgresql-9.1/bin/postgres

        ranlib %i/opt/postgresql-9.1/lib/*.a

        install -d -m 755 %i/share/doc/%N
        find contrib -name README.\* -exec cp {} %i/share/doc/%N/ \;

        install -d -m 755 %i/bin
        install -c -m 755 pgsql.sh %i/bin/pgsql.sh-9.1

        install -d -m 755 %i/var/postgresql-9.1
        echo "be sure to back up this database before any upgrades!" >> 
%i/var/postgresql-9.1/README

        install -d -m 755 %i/var/log
        ln -sf %p/var/postgresql-9.1/pgsql.log %i/var/log/pgsql-9.1.log

        for file in `ls -1 %i/opt/postgresql-9.1/bin/`; do
                echo "${file}" >> %i/var/postgresql-9.1/binary.list
        done

        cat <<END > %i/var/postgresql-9.1/remove-alternatives.sh
#!/bin/sh

for arg in "\$@"; do
        case \$arg in
                -h|--h|--he|--hel|--help)
                        echo "usage: \$0 [-h]"
                        echo ""
                        echo "  -h, --help          this help"
                        echo ""
                        exit 0;
                        ;;
                *)
                        echo "\$0: unknown argument '\$arg'"
                        exit 1;
                        ;;
        esac
done

update-alternatives --remove "pgsql.sh" "%p/bin/pgsql.sh-9.1"

for tuple in %p/opt/postgresql-9.1/bin:binary.list; do
        TUPLE_PATH=\`echo \$tuple | cut -d: -f1\`
        TUPLE_FILE=\`echo \$tuple | cut -d: -f2\`

        for file in \`cat %p/var/postgresql-9.1/\${TUPLE_FILE}\`; do
                update-alternatives --remove "\${file}" 
"\${TUPLE_PATH}/\${file}"
        done
done

END

        cat <<END > %i/var/postgresql-9.1/update-alternatives.sh
#!/bin/sh

FORCE=0

for arg in "\$@"; do
        case \$arg in
                -h|--h|--he|--hel|--help)
                        echo "usage: \$0 [-h] [-f]"
                        echo ""
                        echo "  -h, --help          this help"
#                       echo "  -f, --force         force this version of 
PostgreSQL, even if there is a newer one"
                        echo ""
                        exit 0;
                        ;;
#               -f|--f|--fo|--for|--forc|--force)
#                       FORCE=1
#                       ;;
                *)
                        echo "\$0: unknown argument '\$arg'"
                        exit 1;
                        ;;
        esac
done

update-alternatives --install "%p/bin/pgsql.sh" "pgsql.sh" 
"%p/bin/pgsql.sh-9.1" 91

for tuple in bin:binary.list; do
        TUPLE_PATH=\`echo \$tuple | cut -d: -f1\`
        TUPLE_FILE=\`echo \$tuple | cut -d: -f2\`

        for file in \`cat %p/var/postgresql-9.1/\${TUPLE_FILE}\`; do
                if [ -e "%p/opt/postgresql-9.1/\${TUPLE_PATH}/\${file}" ]; then
                        #echo update-alternatives --install 
"%p/\${TUPLE_PATH}/\${file}" "\${file}" 
"%p/opt/postgresql-9.1/\${TUPLE_PATH}/\${file}" 91
                        update-alternatives --install 
"%p/\${TUPLE_PATH}/\${file}" "\${file}" 
"%p/opt/postgresql-9.1/\${TUPLE_PATH}/\${file}" 91
                fi
        done
done

END

        chmod 755 %i/var/postgresql-9.1/*.sh
        perl -pi -e 's,^%d,,' %i/bin/pg_config*
<<
DocFiles: COPYRIGHT HISTORY INSTALL README
SplitOff: <<
        Package: %N-dev
        Description: PostgreSQL development headers and libraries
        Depends: %N (>= %v-%r)
        BuildDependsOnly: true
        Files: <<
                opt/postgresql-9.1/bin/pg_config*
                opt/postgresql-9.1/include
                opt/postgresql-9.1/lib/*.a
                opt/postgresql-9.1/lib/libecpg_compat.dylib
                opt/postgresql-9.1/lib/libecpg.dylib
                opt/postgresql-9.1/lib/libpgtypes.dylib
                opt/postgresql-9.1/lib/libpq.dylib
        <<
        PreInstScript: <<
PG_ID=`id -u postgres 2>/dev/null || true`
if [ -z "$PG_ID" ]; then
        echo "Whoa there!  You must have a postgres user to install this 
package."
        echo "Please do a 'fink reinstall passwd-postgres'"
        echo "and make sure you hit 'y' when it asks if you want to update your 
users."
        exit 1
fi
        <<
        PostInstScript: [ -x %p/var/postgresql-9.1/update-alternatives.sh ] && 
%p/var/postgresql-9.1/update-alternatives.sh
        PreRmScript: if [ "$1" != "upgrade" ]; then [ -x 
%p/var/postgresql-9.1/remove-alternatives.sh ] && 
%p/var/postgresql-9.1/remove-alternatives.sh; fi
<<
SplitOff2: <<
        Package: %N-shlibs
        Description: PostgreSQL shared libraries
        Files: <<
                opt/postgresql-9.1/lib/lib*.*.dylib
                var/postgresql-9.1/*.sh
                var/postgresql-9.1/*.list
        <<
        Shlibs: <<
                %p/opt/postgresql-9.1/lib/libecpg.6.dylib        6.0.0 
postgresql91-shlibs (>= 9.1.0-1)
                %p/opt/postgresql-9.1/lib/libecpg_compat.3.dylib 3.0.0 
postgresql91-shlibs (>= 9.1.0-1)
                %p/opt/postgresql-9.1/lib/libpgtypes.3.dylib     3.0.0 
postgresql91-shlibs (>= 9.1.0-1)
                %p/opt/postgresql-9.1/lib/libpq.5.dylib          5.0.0 
postgresql91-shlibs (>= 9.1.0-1)
        <<
        PostInstScript: [ -x %p/var/postgresql-9.1/update-alternatives.sh ] && 
%p/var/postgresql-9.1/update-alternatives.sh
        PreRmScript: if [ "$1" != "upgrade" ]; then [ -x 
%p/var/postgresql-9.1/remove-alternatives.sh ] && 
%p/var/postgresql-9.1/remove-alternatives.sh; fi
<<

PreInstScript: <<
PG_ID=`id -u postgres 2>/dev/null || true`
if [ -z "$PG_ID" ]; then
        echo "Whoa there!  You must have a postgres user to install this 
package."
        echo "Please do a 'fink reinstall passwd-postgres'"
        echo "and make sure you hit 'y' when it asks if you want to update your 
users."
        exit 1
fi
<<
PostInstScript: <<
INSTALL_PHASE="$1"

[ -x %p/var/postgresql-9.1/update-alternatives.sh ] && 
%p/var/postgresql-9.1/update-alternatives.sh

# remove the old "pgsql" entries from netinfo; the username was switched to
# "postgres" but the old ones hang around because of the way niload works
niutil -destroy . /users/pgsql  >/dev/null 2>&1 || true
niutil -destroy . /groups/pgsql >/dev/null 2>&1 || true

die () {
        echo "failed"
        echo ""
        echo "*** bailing because an error ocurred:"
        echo ""
        echo "$*"
        exit 1
}

# update daemonic init script if necessary
daemonic install %N >/dev/null 2>&1 || :

# get a nice port to run on
while true; do
        PGPORT=$RANDOM;
        if [ "$PGPORT" -gt 10000 ] && [ "$PGPORT" -lt 20000 ]; then
                break
        fi
done
export PGPORT
echo "- starting PostgreSQL on port $PGPORT"
if %p/bin/pgsql.sh-9.1 start >/tmp/pgstart-9.1.log 2>&1; then

        sleep 5

        ERROR=0
        # install the plpgsql language if possible
        printf -- "- attempting to install the plpgsql language in the 
template1 database... "
        %p/opt/postgresql-9.1/bin/createlang -U postgres -p $PGPORT plpgsql 
template1 >/tmp/createlang-9.1.log 2>&1 || ERROR="$?"
        if [ $ERROR -eq 0 ]; then
                echo "done"
        elif [ $ERROR -gt 0 ] && [ $ERROR -ne 2 ]; then
                echo "WARNING: an unknown error occurred inserting the plpgsql 
language"
        else
                :
        fi

        sleep 5

        %p/bin/pgsql.sh-9.1 stop >/dev/null 2>&1 || echo "WARNING: unable to 
stop postgresql: run 'PGPORT=$PGPORT sudo %p/bin/pgsql.sh-9.1 stop' to try 
again"

else

        cat <<END
WARNING: unable to start postgresql on an alternate port, not installing 
plpgsql!

        If you wish to install it manually, run:

                sudo %p/bin/pgsql.sh-9.1 start
                sudo -u postgres %p/opt/postgresql-9.1/bin/createlang plpgsql 
template1
        
END

fi
<<
PreRmScript: <<
# clean up
if [ $1 != "upgrade" ]; then
        [ -x %p/var/postgresql-9.1/remove-alternatives.sh ] && 
%p/var/postgresql-9.1/remove-alternatives.sh
        daemonic remove %N >/dev/null 2>&1 || :
fi
<<
DaemonicFile: <<
<service>
<description>PostgreSQL database server</description>
<message> PostgreSQL database server</message>

<daemon name="%N">
        <executable background="no">%p/bin/pgsql.sh-9.1</executable>
        <parameters>start</parameters>
</daemon>

</service>
<<

Homepage: http://www.postgresql.org/
DescUsage: <<
The package runs initdb on installation as the user 'postgres'.

The best way to run it is using the supplied pgsql.sh script, i.e.
'sudo pgsql.sh start'.  Or, you can run
'sudo daemonic enable %N' as root to create a
StartupItem for it.

Unless you set up admin users in the database, the easiest way to
run psql commands with administrator access is to prefix them with
the command "sudo -u postgres".  This will ask you your administrator
password, and then run the command as the postgres user.

For example, to create a new database, you would run:

  sudo -u postgres %p/opt/postgresql-9.1/bin/createdb mydb
<<
DescPackaging: <<
IMPORTANT: The location of the data files has changed from early
revisions of this package. If you're upgrading from an earlier
revision, note that this one expects the data files to be installed
at <prefix>/var/postgresql-9.1/data.

When run from the startup script, logs output to 
<prefix>/var/postgresql-9.1/pgsql.log
<<
DescPort: <<
Rearranged a lot of the PostgreSQL build to be more "correct" on
Darwin, including making proper dylibs (instead of bundles, which
ended up creating static binaries).
<<
<<



------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to