Hi Dennis (CC ports@)

Attached is a patch for phppgadmin to add _postgresql, the default
postgresql user used by the OpenBSD port, to the list of bad_usernames
which are disallowed login when extra_login_security is set to true.
I'm not totally used to the obsd ports system so please let me know if I
should have done something other than removing EXTRACT_ONLY so the patch
would apply.  I also removed a two whitespace knit-picks as well.

Thanks,
Tom

-- 
| tmclaugh at sdf.lonestar.org             tmclaugh at FreeBSD.org |
| FreeBSD                                   http://www.FreeBSD.org |
| BSD#                    http://www.mono-project.com/Mono:FreeBSD |
Index: Makefile
===================================================================
RCS file: /cvs/ports/www/phppgadmin/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- Makefile	20 Oct 2005 20:19:42 -0000	1.2
+++ Makefile	3 May 2006 07:03:38 -0000
@@ -3,10 +3,11 @@
 COMMENT=	"tool to handle the administration of PostgreSQL over the web"
 
 DISTNAME=	phpPgAdmin-3.5.5
+PKGNAME=	${DISTNAME}p0
 CATEGORIES=	www databases
-HOMEPAGE=	http://phppgadmin.sourceforge.net/	
+HOMEPAGE=	http://phppgadmin.sourceforge.net/
 
-MAINTAINER= 	Denis Chatelain <[EMAIL PROTECTED]>	
+MAINTAINER= 	Denis Chatelain <[EMAIL PROTECTED]>
 
 # GPL
 PERMIT_PACKAGE_CDROM=	Yes
@@ -19,7 +20,7 @@ MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:
 NO_BUILD=	Yes
 NO_REGRESS=	Yes
 PKG_ARCH=	*
-EXTRACT_ONLY=
+WRKDIST=	${WRKDIR}/phpPgAdmin
 
 PREFIX=		/var/www
 INSTDIR=	${PREFIX}/phpPgAdmin
Index: patches/patch-classes_Misc.php
===================================================================
RCS file: patches/patch-classes_Misc.php
diff -N patches/patch-classes_Misc.php
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-classes_Misc.php	3 May 2006 07:03:38 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- classes/Misc.php.orig	Sun Jul 31 05:18:39 2005
++++ classes/Misc.php	Tue May  2 23:40:43 2006
+@@ -39,7 +39,7 @@
+ 			global $conf;
+ 
+ 			// Disallowed logins if extra_login_security is enabled.  These must be lowercase.
+-			$bad_usernames = array('pgsql', 'postgres', 'root', 'administrator');
++			$bad_usernames = array('_postgresql', 'pgsql', 'postgres', 'root', 'administrator');
+ 			
+ 			// If extra security is off, return true
+ 			if (!$conf['extra_login_security']) return true;

Reply via email to