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
29 29 set dbuser postgres 30 30 set dbgrp postgres 31 31 32 add_users ${dbuser} shell=/bin/sh group=${dbgrp} \ 33 home=${prefix}/var/db/postgresql91 \ 34 realname=PostgreSQL-91\ Server 35 32 36 startupitem.create yes 33 37 startupitem.init \ 34 38 "PGCTL=${libdir}/bin/pg_ctl" … … 38 42 "su ${dbuser} -c \"\${PGCTL} -D \${POSTGRESQL91DATA:=${dbdir}} stop -s -m fast\"" 39 43 40 44 destroot { 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\ Server46 45 xinstall -m 755 -d ${destroot}${logdir} 47 46 system "touch ${destroot}${logdir}/postgres.log" 48 47 system "chown ${dbuser}:${dbgrp} ${destroot}${logdir}/postgres.log"