Ticket #33497: postgresql91-server.patch

File postgresql91-server.patch, 1.1 KB (added by drkp (Dan Ports), 13 years ago)
  • opt/local/var/macports/sources/svn.macports.org/trunk/dports/databases/postgresql91-server/Portfile

     
    2929set dbuser              postgres
    3030set dbgrp               postgres
    3131
     32add_users ${dbuser} shell=/bin/sh group=${dbgrp} \
     33    home=${prefix}/var/db/postgresql91 \
     34    realname=PostgreSQL-91\ Server
     35
    3236startupitem.create      yes
    3337startupitem.init        \
    3438        "PGCTL=${libdir}/bin/pg_ctl"
     
    3842"su ${dbuser} -c \"\${PGCTL} -D \${POSTGRESQL91DATA:=${dbdir}} stop -s -m fast\""
    3943
    4044destroot {
    41         addgroup ${dbgrp}
    42         set gid [existsgroup ${dbgrp}]
    43         add_users ${dbuser} shell=/bin/sh gid=${gid} \
    44                 home=${prefix}/var/db/postgresql91 \
    45                 realname=PostgreSQL-91\ Server
    4645        xinstall -m 755 -d ${destroot}${logdir}
    4746        system "touch ${destroot}${logdir}/postgres.log"
    4847        system "chown ${dbuser}:${dbgrp} ${destroot}${logdir}/postgres.log"