Download and Install postgresql81 version 8.1.13 on Mac OS X
Sunday the 20th of July, 2008

    postgresql81  most recent diff


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



      # $Id: Portfile 37597 2008-06-15 10:36:19Z mww macports.org $

      PortSystem 1.0

      Name: postgresql81
      Version: 8.1.13
      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://ftp.de.postgresql.org/mirror/postgresql//source/v8.1.13/ postgresql:source/v${version}

      checksums md5 fb88b45deeed02e8822fa0ed8e03aa13 sha1 6d4b771aa4011fa3e8aed726f1521b77cd91772a
      use_bzip2 yes
      distname postgresql-${version}

      depends_lib port:readline port:openssl port:zlib
      depends_build port:bison

      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 --enable-thread-safety --enable-integer-datetimes

      build.type gnu
      build.target

      test.run yes
      test.target check

      livecheck.check regex
      livecheck.url ${homepage}
      livecheck.regex v(8.1.\[0-9\]+)

      set contribs "fulltextindex fuzzystrmatch pg_buffercache pg_trgm tsearch2 vacuumlo"

      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 psql81"
      file delete -force ${destroot}${prefix}/share/doc/${name} ${destroot}${prefix}/share/man
      }

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

      Variant: krb5 description {add support for Kerberos 5 authentication} {
      # depends_lib-append bin:kerberos:kerberos5
      configure.args-append --with-krb5
      }

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

      post-install {
      ui_msg "\nTo use the postgresql server, install the postgresql81-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/postgresql81
      % sudo port install postgresql81
      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 postgresql81
      ---> Verifying checksum for postgresql81
      ---> Extracting postgresql81
      ---> Configuring postgresql81
      ---> Building postgresql81 with target all
      ---> Staging postgresql81 into destroot
      ---> Installing postgresql81
    - 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 postgresql81 with these commands:
      %  man postgresql81
      % apropos postgresql81
      % which postgresql81
      % locate postgresql81

     Where to find more information:

    Darwin Ports



    image test