Download and Install postgresql83-server version 8.3.5 on Mac OS X
Monday the 1st of December, 2008

    postgresql83-server  most recent diff


    version 8.3.5

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



      # $Id: Portfile 42182 2008-11-16 17:19:56Z jwa macports.org $

      PortSystem 1.0

      Name: postgresql83-server
      Version: 8.3.5
      Category: databases
      Platform: darwin
      Maintainers: mww jwa
      Description: run postgresql83 as server
      Long Description: ${description}

      Homepage: http://www.postgresql.org/
      master_sites postgresql

      depends_run port:postgresql83

      fetch {}
      checksum {}
      extract {}
      use_configure no
      build {}

      set libdir ${prefix}/lib/postgresql83
      set dbdir ${prefix}/var/db/postgresql83/defaultdb
      set logdir ${prefix}/var/log/postgresql83
      set dbuser postgres
      set dbgrp postgres

      startupitem.create yes
      startupitem.init "PGCTL=${libdir}/bin/pg_ctl"
      startupitem.start "su ${dbuser} -c \"\${PGCTL} -D \${POSTGRESQL83DATA:=${dbdir}} start -l ${logdir}/postgres.log\""
      startupitem.stop "su ${dbuser} -c \"\${PGCTL} -D \${POSTGRESQL83DATA:=${dbdir}} stop -s -m fast\""

      destroot {
      addgroup ${dbgrp}
      set gid [existsgroup ${dbgrp}]
      adduser ${dbuser} shell=/bin/sh gid=${gid} home=${prefix}/var/db/postgresql83 realname=PostgreSQL-83\ Server
      xinstall -m 755 -d ${destroot}${logdir}
      system "touch ${destroot}${logdir}/postgres.log"
      system "chown ${dbuser}:${dbgrp} ${destroot}${logdir}/postgres.log"
      }

      post-install {
      ui_msg "\nTo create a database instance, after install do\n sudo mkdir -p ${dbdir}\n sudo chown ${dbuser}:${dbgrp} ${dbdir}\n sudo su ${dbuser} -c \'${libdir}/bin/initdb -D ${dbdir}\'"
      ui_msg "\nTo tweak your DBMS, consider increasing kern.sysv.shmmax by adding an increased kern.sysv.shmmax .. to /etc/sysctl.conf"
      }

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


    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/postgresql83-server
      % sudo port install postgresql83-server
      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 postgresql83-server
      ---> Verifying checksum for postgresql83-server
      ---> Extracting postgresql83-server
      ---> Configuring postgresql83-server
      ---> Building postgresql83-server with target all
      ---> Staging postgresql83-server into destroot
      ---> Installing postgresql83-server
    - 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 postgresql83-server with these commands:
      %  man postgresql83-server
      % apropos postgresql83-server
      % which postgresql83-server
      % locate postgresql83-server

     Where to find more information:

    Darwin Ports



    Lightbox this page.