[79251] trunk/dports/databases/postgresql84-server/Portfile

jmr at macports.org jmr at macports.org
Mon Jun 6 18:53:45 PDT 2011


Revision: 79251
          http://trac.macports.org/changeset/79251
Author:   jmr at macports.org
Date:     2011-06-06 18:53:45 -0700 (Mon, 06 Jun 2011)
Log Message:
-----------
postgresql84-server: make the log subdir owned by postgres, not just the initial logfile (#24958)

Modified Paths:
--------------
    trunk/dports/databases/postgresql84-server/Portfile

Modified: trunk/dports/databases/postgresql84-server/Portfile
===================================================================
--- trunk/dports/databases/postgresql84-server/Portfile	2011-06-07 01:36:52 UTC (rev 79250)
+++ trunk/dports/databases/postgresql84-server/Portfile	2011-06-07 01:53:45 UTC (rev 79251)
@@ -43,7 +43,7 @@
 		realname=PostgreSQL-84\ Server
 	xinstall -m 755 -d ${destroot}${logdir}
 	system "touch ${destroot}${logdir}/postgres.log"
-	system "chown ${dbuser}:${dbgrp} ${destroot}${logdir}/postgres.log"
+	system "chown -R ${dbuser}:${dbgrp} ${destroot}${logdir}"
 }
 
 post-install {
@@ -55,6 +55,11 @@
 		by adding an increased kern.sysv.shmmax .. to /etc/sysctl.conf"
 }
 
+post-activate {
+    # ensure log dir is owned by postgres even if it existed previously
+    catch {file attributes $logdir -owner $dbuser -group $dbgrp}
+}
+
 livecheck.type	regex
 livecheck.url	${homepage}
 livecheck.regex	(8.4.\[0-9\]+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110606/27089ce6/attachment.html>


More information about the macports-changes mailing list