Download and Install postgresql80-server version 8.0.15 on Mac OS X
Thursday the 3rd of July, 2008

    postgresql80-server  most recent diff


      View the most recent changes for the postgresql80-server port at: postgresql80-server.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for postgresql80-server.
      The raw portfile for postgresql80-server 8.0.15 is located here:
      http://postgresql80-server.darwinports.com/dports/databases/postgresql80-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/postgresql80-server
      Google
      Web Darwinports.com



      # $Id: Portfile 32559 2008-01-07 23:34:13Z mww macports.org $

      PortSystem 1.0

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

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

      depends_run port:postgresql80

      fetch {}
      checksum {}
      extract {}
      configure {}
      build {}

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

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

      destroot {
      addgroup ${dbgrp}
      set gid [existsgroup ${dbgrp}]
      adduser ${dbuser} shell=/bin/sh gid=${gid} home=${prefix}/var/db/postgresql80 realname=PostgreSQL-80\ 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 v(8.0.\[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/postgresql80-server
      % sudo port install postgresql80-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 postgresql80-server
      ---> Verifying checksum for postgresql80-server
      ---> Extracting postgresql80-server
      ---> Configuring postgresql80-server
      ---> Building postgresql80-server with target all
      ---> Staging postgresql80-server into destroot
      ---> Installing postgresql80-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 postgresql80-server with these commands:
      %  man postgresql80-server
      % apropos postgresql80-server
      % which postgresql80-server
      % locate postgresql80-server

     Where to find more information:

    Darwin Ports



    image test