Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Nov 2010 08:51:15 GMT
From:      YAMASHIRO Jun <yamajun@ofug.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/152039: [PATCH] security/pear-Auth: Wrong installation path
Message-ID:  <201011080851.oA88pFxs085311@www.freebsd.org>
Resent-Message-ID: <201011080900.oA890IfC050248@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         152039
>Category:       ports
>Synopsis:       [PATCH] security/pear-Auth: Wrong installation path
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 08 09:00:18 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     YAMASHIRO Jun
>Release:        FreeBSD/amd64 8.1-RELEASE
>Organization:
Okinawa FreeBSD Users Group
>Environment:
FreeBSD localhost 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
pear::Auth's some files(Container.php Container/* Frontend/*) must install
at /usr/local/share/pear/Auth. But, current version of security/pear-Auth
installed these files into wrong path: /usr/local/share/pear.

>How-To-Repeat:
# cd /usr/ports/security/pear-Auth
# make install clean
# cat > test.php
<?php
require_once 'Auth.php';
$auth = new Auth('Array');
$auth->start();
^D
# php test.php | & grep include_once
PHP Warning:  include_once(Auth/Container/Array.php): failed to open stream: No such file or directory in /usr/local/share/pear/Auth.php on line 468
..

>Fix:
Apply attached patch and reinstall.

Patch attached with submission follows:

--- pear-Auth/Makefile.orig	2010-11-08 14:53:44.000000000 +0900
+++ pear-Auth/Makefile	2010-11-08 17:34:42.000000000 +0900
@@ -29,14 +29,14 @@
 		PEAR_NET_VPOPMAILD "PEAR::Net_Vpopmaild support" off
 
 FILES=		Auth.php Auth.php.bak Auth/Anonymous.php Auth/Auth.php \
-		Auth/Controller.php Container.php Container/Array.php \
-		Container/DB.php Container/DBLite.php Container/File.php \
-		Container/IMAP.php Container/KADM5.php Container/LDAP.php \
-		Container/MDB.php Container/MDB2.php Container/Multiple.php \
-		Container/PEAR.php Container/POP3.php Container/RADIUS.php \
-		Container/SAP.php Container/SMBPasswd.php Container/SOAP.php \
-		Container/SOAP5.php Container/vpopmail.php Frontend/Html.php \
-		Frontend/md5.js
+		Auth/Controller.php Auth/Container.php Auth/Container/Array.php \
+		Auth/Container/DB.php Auth/Container/DBLite.php Auth/Container/File.php \
+		Auth/Container/IMAP.php Auth/Container/KADM5.php Auth/Container/LDAP.php \
+		Auth/Container/MDB.php Auth/Container/MDB2.php Auth/Container/Multiple.php \
+		Auth/Container/PEAR.php Auth/Container/POP3.php Auth/Container/RADIUS.php \
+		Auth/Container/SAP.php Auth/Container/SMBPasswd.php Auth/Container/SOAP.php \
+		Auth/Container/SOAP5.php Auth/Container/vpopmail.php Auth/Frontend/Html.php \
+		Auth/Frontend/md5.js
 TESTS=		DBContainer.php FileContainer.php MDB2Container.php MDBContainer.php \
 		POP3Container.php POP3aContainer.php TestAuthContainer.php \
 		auth_container_db_options.php auth_container_file_options.php \
@@ -49,6 +49,9 @@
 
 post-extract:
 	@${REINPLACE_CMD} -e "s|@version@|${PORTVERSION}|" ${WRKSRC}/Auth.php
+	mv ${WRKSRC}/Container ${WRKSRC}/Auth
+	mv ${WRKSRC}/Container.php ${WRKSRC}/Auth
+	mv ${WRKSRC}/Frontend ${WRKSRC}/Auth
 
 .include <bsd.port.pre.mk>
 


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011080851.oA88pFxs085311>