summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--databases/phppgadmin/Makefile2
-rw-r--r--databases/phppgadmin/files/patch-Postgres81.php11
2 files changed, 13 insertions, 0 deletions
diff --git a/databases/phppgadmin/Makefile b/databases/phppgadmin/Makefile
index 8cf7a29..2ab28e3 100644
--- a/databases/phppgadmin/Makefile
+++ b/databases/phppgadmin/Makefile
@@ -7,6 +7,7 @@
PORTNAME= phppgadmin
PORTVERSION= 4.1
+PORTREVISION= 1
CATEGORIES= databases www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -39,6 +40,7 @@ do-configure:
do-install:
${MKDIR} ${PREFIX}/${PGADMDIR}
+ ${RM} -f ${WRKSRC}/classes/database/Postgres81.php.orig
${CP} -Rp ${WRKSRC}/ ${PREFIX}/${PGADMDIR}/
.if exists(${DESTDIR}${PREFIX}/${PGADMOLDDIR}/conf/config.inc.php)
${CP} -np ${DESTDIR}${PREFIX}/${PGADMOLDDIR}/conf/config.inc.php \
diff --git a/databases/phppgadmin/files/patch-Postgres81.php b/databases/phppgadmin/files/patch-Postgres81.php
new file mode 100644
index 0000000..ef88221
--- /dev/null
+++ b/databases/phppgadmin/files/patch-Postgres81.php
@@ -0,0 +1,11 @@
+--- classes/database/Postgres81.php.orig Tue Feb 6 14:00:38 2007
++++ classes/database/Postgres81.php Tue Feb 6 14:01:02 2007
+@@ -83,7 +83,7 @@ class Postgres81 extends Postgres80 {
+ if (isset($conf['owned_only']) && $conf['owned_only'] && !$this->isSuperUser($server_info['username'])) {
+ $username = $server_info['username'];
+ $this->clean($username);
+- $clause = " AND pu.usename='{$username}'";
++ $clause = " AND pr.rolname='{$username}'";
+ }
+ else $clause = '';
+
OpenPOWER on IntegriCloud