ports/123832: [NEW PORT] archivers/pear-PHP_Archive : Create and Use PHP Archive files

Wen heping wenheping at gmail.com
Tue May 20 07:50:01 UTC 2008


>Number:         123832
>Category:       ports
>Synopsis:       [NEW PORT] archivers/pear-PHP_Archive :  Create and Use PHP Archive files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 20 07:50:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Wen heping
>Release:        FreeBSD 7.0 Release
>Organization:
ChangAn Middle School
>Environment:
FreeBSD fb7 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008     root at logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
The PHP_Archive package allows creation of
self-contained cross-platform PHP libraries
or applications, similar to Java jar files.

PHP_Archive provides the PHP_Archive class,
and the phar:// stream wrapper. The PHP_Archive
class differs in approach from the Phar class in
that it does not support the ArrayAccess interface
for accessing internal files, and does not support
iteration over contents using foreach().

However, full support for the phar:// stream
wrapper, support of Phar-specific metadata setting
and retrieval using PHP_Archive::getPharMetaData()
and file-specific metadata using PHP_Archive::getFileMetaData(),
zlib and bzip2 compression of individual files,
and archive-wide SHA1/MD5 signature makes
PHP_Archive just as powerful as the Phar
extension for distributing phars.

WWW: http://pear.php.net/package/PHP_Archive/

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	/usr/ports/archivers/pear-PHP_Archive/
#	/usr/ports/archivers/pear-PHP_Archive/pkg-descr
#	/usr/ports/archivers/pear-PHP_Archive/distinfo
#	/usr/ports/archivers/pear-PHP_Archive/Makefile
#
echo c - /usr/ports/archivers/pear-PHP_Archive/
mkdir -p /usr/ports/archivers/pear-PHP_Archive/ > /dev/null 2>&1
echo x - /usr/ports/archivers/pear-PHP_Archive/pkg-descr
sed 's/^X//' >/usr/ports/archivers/pear-PHP_Archive/pkg-descr << 'END-of-/usr/ports/archivers/pear-PHP_Archive/pkg-descr'
XThe PHP_Archive package allows creation of 
Xself-contained cross-platform PHP libraries 
Xor applications, similar to Java jar files.
X
XPHP_Archive provides the PHP_Archive class, 
Xand the phar:// stream wrapper. The PHP_Archive 
Xclass differs in approach from the Phar class in 
Xthat it does not support the ArrayAccess interface 
Xfor accessing internal files, and does not support 
Xiteration over contents using foreach(). 
X
XHowever, full support for the phar:// stream 
Xwrapper, support of Phar-specific metadata setting 
Xand retrieval using PHP_Archive::getPharMetaData() 
Xand file-specific metadata using PHP_Archive::getFileMetaData(), 
Xzlib and bzip2 compression of individual files, 
Xand archive-wide SHA1/MD5 signature makes 
XPHP_Archive just as powerful as the Phar 
Xextension for distributing phars.
X
XWWW: http://pear.php.net/package/PHP_Archive/
END-of-/usr/ports/archivers/pear-PHP_Archive/pkg-descr
echo x - /usr/ports/archivers/pear-PHP_Archive/distinfo
sed 's/^X//' >/usr/ports/archivers/pear-PHP_Archive/distinfo << 'END-of-/usr/ports/archivers/pear-PHP_Archive/distinfo'
XMD5 (PEAR/PHP_Archive-0.11.4.tgz) = be6dfa685d559ed445b93e4706d4ca2a
XSHA256 (PEAR/PHP_Archive-0.11.4.tgz) = 8501d03ce5306633d00191c4d313bd056c4841c856e3748507885ef238772aef
XSIZE (PEAR/PHP_Archive-0.11.4.tgz) = 83047
END-of-/usr/ports/archivers/pear-PHP_Archive/distinfo
echo x - /usr/ports/archivers/pear-PHP_Archive/Makefile
sed 's/^X//' >/usr/ports/archivers/pear-PHP_Archive/Makefile << 'END-of-/usr/ports/archivers/pear-PHP_Archive/Makefile'
X# Ports collection makefile for:  pear-PHP_Archive
X# Date created:			  20 May 2008
X# Whom:				  Wen Heping <wenheping at gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	PHP_Archive
XPORTVERSION=	0.11.4
XCATEGORIES=	archivers
X
XMAINTAINER=	wenheping at gmail.com
XCOMMENT=	Create and Use PHP Archive files
X
XBUILD_DEPENDS=	${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear
XRUN_DEPENDS=	${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear
X
XCATEGORY=	PHP
XFILES=		Archive.php Archive/Creator.php \
X		Archive/Exception.php Archive/Manager.php
XDATA=		phar_frontcontroller.tpl
XTESTS=		eof.phpt filenotfound.phpt filenotfound_phar.phpt \
X		filenotfoundtest.php gopearphar.php.inc \
X		longfilename.phpt makepearphar.php.inc \
X		maketestphars.php.inc new_phar.phar \
X		normalstat.phpt normalstat_phar.phpt \
X		opendir.phpt pearindex.php phar.log \
X		phpt_test.php.inc require_once.phpt \
X		require_once_phar.phpt savetest.php \
X		seek.phpt seek_phar.phpt streamstat.phpt \
X		streamstat_phar.phpt test.php test1.php \
X		test_path.php test_phar.phar \
X		test_phar2.phar test_require.php \
X		test_tar.tar twophars.phpt \
X		filenotfound/filenotfound.phar \
X		filenotfound/makefilenotfoundphar.php.inc \
X		longfilename/longphar.phar \
X		longfilename/makelongphar.php.inc \
X		opendir/makeopendirphar.php.inc \
X		opendir/opendir.phar \
X		planet_php/default_phar.php \
X		require_once/makerequire_oncephar.php.inc \
X		require_once/require_once.phar
X
X.include <bsd.port.pre.mk>
X.include "${PORTSDIR}/devel/pear/bsd.pear.mk"
X.include <bsd.port.post.mk>
END-of-/usr/ports/archivers/pear-PHP_Archive/Makefile
exit



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



More information about the freebsd-ports-bugs mailing list