Download and Install postgresql81-server version 8.1.13 on Mac OS X
Saturday the 19th of July, 2008

    postgresql81-server  most recent diff


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



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

      PortSystem 1.0

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

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

      depends_run port:postgresql81

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

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

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

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

     Where to find more information:

    Darwin Ports



    image test