Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Aug 2007 19:25:03 GMT
From:      Ditesh Shashikant Gathani <ditesh@gathani.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/115224: New port: archivers/pecl-phar A PECL extension which allows running applications out of .phar files
Message-ID:  <200708051925.l75JP3N4008094@www.freebsd.org>
Resent-Message-ID: <200708051930.l75JU2I7047119@freefall.freebsd.org>

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

>Number:         115224
>Category:       ports
>Synopsis:       New port: archivers/pecl-phar A PECL extension which allows running applications out of .phar 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:   Sun Aug 05 19:30:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Ditesh Shashikant Gathani
>Release:        FreeBSD 6.2-RELEASE i386
>Organization:
>Environment:
System: FreeBSD neela.qubeconnect.com 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 11:05:30 UTC 2007 root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP i386

>Description:
The phar extension provides the phar stream wrapper and the Phar class for manipulating self-contained PHP Archive (phar) files. The Phar class can be used to create and to extract contents of phar files as well as iterating over their contents.

PHP Archive files (Phars) are special collections of files that can be transparently run right out of the file, similar to Java's jar archive files. Using a phar archive, it is possible to distribute a complete PHP application in a single file that will run out of the file without modification or extraction.
>How-To-Repeat:

>Fix:
shar file as attached.

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:
#
#	.
#	./pkg-descr
#	./distinfo
#	./Makefile
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./pkg-descr
sed 's/^X//' >./pkg-descr << 'END-of-./pkg-descr'
XThe phar extension provides the phar stream wrapper and the Phar class for manipulating self-contained PHP Archive (phar) files. The Phar class can be used to create and to extract contents of phar files as well as iterating over their contents.
X
XPHP Archive files (Phars) are special collections of files that can be transparently run right out of the file, similar to Java's jar archive files. Using a phar archive, it is possible to distribute a complete PHP application in a single file that will run out of the file without modification or extraction.
X
XWWW: http://pecl.php.net/package/phar/
X
X- Ditesh Shashikant Gathani
Xditesh@gathani.org
END-of-./pkg-descr
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'END-of-./distinfo'
XMD5 (PECL/phar-1.2.0.tgz) = bafae732137b0b8977e289910a36f438
XSHA256 (PECL/phar-1.2.0.tgz) = 83fad1a7946e8355aebf40e4928a2a6323c86f16df41ad9f67fa3b3852229fc8
XSIZE (PECL/zip-1.9.0.tgz) = 67432
END-of-./distinfo
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# New ports collection makefile for:	pecl-phar
X# Date created:			6 Aug 2007
X# Whom:				Ditesh Shashikant Gathani <ditesh@gathani.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	phar
XPORTVERSION=	1.2.0
XCATEGORIES=	archivers pear
XMASTER_SITES=	http://pecl.php.net/get/
XPKGNAMEPREFIX=	pecl-
XEXTRACT_SUFX=	.tgz
XDIST_SUBDIR=	PECL
X
XMAINTAINER=	ditesh@gathani.org
XCOMMENT=	A PECL extension which allows running applications out of .phar files
X
XUSE_PHP=	hash spl
XUSE_PHP_BUILD=	yes
XUSE_PHPEXT=	yes
X
XOPTIONS=        BZ2		"Enable bz2 compression support" off \
X		ZLIB		"Enable gzip compression support" off
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_BZ2) && !defined(WITHOUT_BZ2)
XUSE_PHP+=	bz2
X.endif
X
X.if defined(WITH_ZLIB) && !defined(WITHOUT_ZLIB)
XUSE_PHP+=	zlib
X.endif
X
XCONFIGURE_ARGS=	--enable-phar
X
X.include <bsd.port.post.mk>
END-of-./Makefile
exit



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



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