Postgresql-server-devel version 20090613 - How to Download and Install on Mac OS X
Monday the 23rd of November, 2009

    postgresql-server-devel  most recent diff


    version 20090613

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


      The postgresql-server-devel Portfile 52697 2009-06-21 18:51:40Z raimue macports.org $

      PortSystem 1.0

      Name: postgresql-server-devel
      Version: 20090613
      Category: databases
      Platform: darwin
      Maintainers: gmail.com:chepra
      Description: run postgresql-devel as server
      Long Description: ${description}

      Homepage: http://www.postgresql.org/
      Master Sites: postgresql

      depends_run port:postgresql-devel

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

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

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

      destroot {
      addgroup ${dbgrp}
      set gid [existsgroup ${dbgrp}]
      adduser ${dbuser} shell=/bin/sh gid=${gid} home=${prefix}/var/db/postgresql-devel realname=PostgreSQL-devel\ 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"
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.