Postgresql84 version 8.4.1 - How to Download and Install on Mac OS X
Monday the 22nd of March, 2010

    postgresql84  most recent diff


    version 8.4.1

      View the most recent changes for the postgresql84 port at: postgresql84.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for postgresql84.
      The raw portfile for postgresql84 8.4.1 is located here:
      http://postgresql84.darwinports.com/dports/databases/postgresql84/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/postgresql84


      The postgresql84 Portfile 59544 2009-10-16 15:20:41Z jwa macports.org $

      PortSystem 1.0

      Name: postgresql84
      Version: 8.4.1
      Revision: 1
      Category: databases
      Platform: darwin
      Maintainers: mww jwa
      Description: The most advanced open-source database available anywhere.
      Long Description: PostgreSQL is Object-Relational Database Management System. It supports almost all SQL constructs, including transactions, subselects, and user-defined types and functions. Write-ahead logging means increased performance while retaining data integrity.

      Homepage: http://www.postgresql.org/
      Master Sites: http://ftp3.de.postgresql.org/pub/Mirrors/ftp.postgresql.org/source/v${version}/ postgresql:source/v${version}/
      distname postgresql-${version}

      Checksums: md5 f2015af17bacbbfe140daf0d1067f9c9 sha1 e6903f0029402ef8fb12645a177204499ea5b2b7 rmd160 ad03c250afd71091294a2a3e67d96b661883db87

      use_bzip2 yes

      depends_lib port:readline port:openssl port:zlib port:libxml2 port:libxslt port:ossp-uuid
      depends_build port:bison

      worksrcdir postgresql-${version}

      set libdir ${prefix}/lib/${name}
      configure.args --sysconfdir=${prefix}/etc/${name} --bindir=${libdir}/bin --libdir=${libdir} --includedir=${prefix}/include/${name} --datadir=${prefix}/share/${name} --mandir=${prefix}/share/man --without-docdir --with-includes=${prefix}/include --with-libraries=${prefix}/lib --with-openssl --with-bonjour --with-readline --with-zlib --with-libxml --with-libxslt --enable-thread-safety --enable-integer-datetimes --with-ossp-uuid
      configure.cppflags-append -I${prefix}/include/ossp

      build.type gnu
      build.target

      test.run yes
      test.target check

      livecheck.type regex
      livecheck.url ${homepage}
      livecheck.regex (8\\.4\\.\[0-9\]+)

      set contribs "adminpack dblink fuzzystrmatch lo uuid-ossp pg_buffercache pg_trgm pgcrypto tsearch2 vacuumlo xml2"

      post-build {
      foreach contrib ${contribs} {
      system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}"
      }
      }

      post-destroot {
      foreach contrib ${contribs} {
      system "echo contrib: \"${contrib}\""
      system "cd ${worksrcpath}/contrib/${contrib}/ && ${destroot.cmd} install ${destroot.destdir} && touch DONE"
      }
      system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql84"
      file delete -force ${destroot}${prefix}/share/doc/${name} ${destroot}${prefix}/share/man
      }

      Variant: python description {add support for python} {
      depends_lib-append port:python26
      configure.args-append --with-python
      configure.env-append PYTHON=${prefix}/bin/python2.6
      }

      Variant: krb5 description {add support for Kerberos 5 authentication} {
      configure.args-append --with-krb5
      }

      Variant: perl description {add Perl support} {
      depends_lib-append bin:perl:perl5
      configure.args-append --with-perl
      }

      Variant: tcl description {add Tcl support} {
      depends_lib-append port:tcl
      configure.args-append --with-tcl --with-tclconfig=${prefix}/lib
      configure.env-append TCLSH=${prefix}/bin/tclsh
      }

      post-install {
      ui_msg "\nTo use the postgresql server, install the postgresql84-server port"
      }


    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/postgresql84
      % sudo port install postgresql84
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching postgresql84
      ---> Verifying checksum for postgresql84
      ---> Extracting postgresql84
      ---> Configuring postgresql84
      ---> Building postgresql84 with target all
      ---> Staging postgresql84 into destroot
      ---> Installing postgresql84
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using postgresql84 with these commands:
      %  man postgresql84
      % apropos postgresql84
      % which postgresql84
      % locate postgresql84

     Where to find more information:

    Darwin Ports



    Lightbox this page.