[30027] trunk/dports/databases/postgresql82-server/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Thu Oct 18 10:38:13 PDT 2007
Revision: 30027
http://trac.macosforge.org/projects/macports/changeset/30027
Author: jwa at macports.org
Date: 2007-10-18 10:38:13 -0700 (Thu, 18 Oct 2007)
Log Message:
-----------
reverting accidental r30025, sorry
Modified Paths:
--------------
trunk/dports/databases/postgresql82-server/Portfile
Modified: trunk/dports/databases/postgresql82-server/Portfile
===================================================================
--- trunk/dports/databases/postgresql82-server/Portfile 2007-10-18 17:34:15 UTC (rev 30026)
+++ trunk/dports/databases/postgresql82-server/Portfile 2007-10-18 17:38:13 UTC (rev 30027)
@@ -36,31 +36,22 @@
"su ${dbuser} -c \"\${PGCTL} -D \${POSTGRESQL82DATA:=${dbdir}} stop -s -m fast\""
destroot {
- if {![existsgroup ${dbgrp}]} {
addgroup ${dbgrp}
- } else {
- ui_msg "${dbgrp} group exists, not added"
- }
- set gid [existsgroup ${dbgrp}]
- if {![existsuser ${dbuser}]} {
- ui_msg "adding ${dbgrp}"
+ set gid [existsgroup ${dbgrp}]
adduser ${dbuser} shell=/bin/sh gid=${gid} \
- home=${prefix}/var/db/postgresql82 \
- realname=PostgreSQL-82\ Server
- } else {
- ui_msg "${dbuser} user exists, not added"
- }
- xinstall -m 755 -d ${destroot}${logdir}
- system "touch ${destroot}${logdir}/postgres.log"
- system "chown ${dbuser}:${dbgrp} ${destroot}${logdir}/postgres.log"
+ home=${prefix}/var/db/postgresql82 \
+ realname=PostgreSQL-82\ 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\
+ 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\
+ ui_msg "\nTo tweak your DBMS, consider increasing kern.sysv.shmmax\
by adding an increased kern.sysv.shmmax .. to /etc/sysctl.conf"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071018/b2442a07/attachment.html
More information about the macports-changes
mailing list