Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 May 2013 22:18:01 GMT
From:      Kevin Rauwolf <sweetpea-freebsd@tentacle.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/178695: www/eaccelerator-devel Development version of eAccelerator PHP accelerator
Message-ID:  <201305162218.r4GMI1WJ064454@oldred.FreeBSD.org>
Resent-Message-ID: <201305162220.r4GMK1ht017790@freefall.freebsd.org>

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

>Number:         178695
>Category:       ports
>Synopsis:       www/eaccelerator-devel Development version of eAccelerator PHP accelerator
>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:   Thu May 16 22:20:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Kevin Rauwolf
>Release:        9.1-STABLE
>Organization:
>Environment:
FreeBSD xxx 9.1-STABLE FreeBSD 9.1-STABLE #0 r249714: Sun Apr 21 18:37:02 PDT 2013     root@xxx:/usr/obj/usr/src/sys/XXX  amd64
>Description:
This is a development version of the existing eaccelerator port. The existing port contains the last "stable" release, which was over 3 years ago. It's not compatible with PHP 5.4.

Development should be fairly easy to track - the latest commit is 9 months old right now.
>How-To-Repeat:

>Fix:
See attached shar

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:
#
#	eaccelerator-devel
#	eaccelerator-devel/files
#	eaccelerator-devel/files/pkg-message.in
#	eaccelerator-devel/Makefile
#	eaccelerator-devel/distinfo
#	eaccelerator-devel/pkg-descr
#	eaccelerator-devel/pkg-plist
#
echo c - eaccelerator-devel
mkdir -p eaccelerator-devel > /dev/null 2>&1
echo c - eaccelerator-devel/files
mkdir -p eaccelerator-devel/files > /dev/null 2>&1
echo x - eaccelerator-devel/files/pkg-message.in
sed 's/^X//' >eaccelerator-devel/files/pkg-message.in << '127b5093085ecc496afc6a60b6428c13'
X*****************************************************************************
X
XYou have installed the eaccelerator package.
X
XEdit %%LOCALBASE%%/etc/php.ini and add:
X
Xzend_extension="%%PREFIX%%/lib/php/%%PHP_EXT_DIR%%/eaccelerator.so"
X
XThen create the cache directory:
X
Xmkdir /tmp/eaccelerator
Xchown www /tmp/eaccelerator
Xchmod 0700 /tmp/eaccelerator
X
X*****************************************************************************
127b5093085ecc496afc6a60b6428c13
echo x - eaccelerator-devel/Makefile
sed 's/^X//' >eaccelerator-devel/Makefile << '9f22d0ad29b3d0ee162c774b135053e7'
X# Created by: Kevin Rauwolf <sweetpea-freebsd@tentacle.net>
X# $FreeBSD$
X
XPORTNAME=	eaccelerator
XPORTVERSION=	20120816
XPORTREVISION=	1
XCATEGORIES=	www
XMASTER_SITES=	GH
XPKGNAMESUFFIX=	-devel
X
XMAINTAINER=	sweetpea-freebsd@tentacle.net
XCOMMENT=	A free open-source PHP accelerator & optimizer (devel version)
X
XLICENSE=	GPLv2
XLICENSE_FILE=	${WRKSRC}/COPYING
X
XCONFLICTS_INSTALL=	eaccelerator-[0-9]*
X
XOPTIONS_DEFINE=	DOCCOMM
XDOCCOMM_DESC=	Retain doc-comments in internal php structures
X
XUSE_GITHUB=	yes
XGH_ACCOUNT=	eaccelerator
XGH_PROJECT=	eaccelerator
XGH_COMMIT=	42067ac
XGH_TAGNAME=	${GH_COMMIT}
X
XUSE_PHP=	yes
XUSE_PHPIZE=	yes
XUSE_PHP_BUILD=	yes
X
XCONFIGURE_ARGS=	--enable-eaccelerator=shared \
X		--with-eaccelerator-userid=80 \
X		--without-eaccelerator-use-inode
X
XUSE_BZIP2=	yes
XSUB_FILES=	pkg-message
XPKGMESSAGE=	${WRKDIR}/pkg-message
X
XPORTDOCS=	*
X
X.include <bsd.port.options.mk>
X
X.if ${PORT_OPTIONS:MDOCCOMM}
XCONFIGURE_ARGS+=--with-eaccelerator-doc-comment-inclusion
X.endif
X
Xdo-install:
X	@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}
X	${INSTALL_DATA} ${WRKSRC}/modules/${PORTNAME}.so \
X	       ${PREFIX}/lib/php/${PHP_EXT_DIR}
X
Xpost-install:
X.if ${PORT_OPTIONS:MDOCS}
X	@${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
X.endif
X	@${MKDIR} ${EXAMPLESDIR}
X	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.ini ${EXAMPLESDIR}
X	${INSTALL_DATA} ${WRKSRC}/control.php ${EXAMPLESDIR}
X	${INSTALL_DATA} ${WRKSRC}/dasm.php ${EXAMPLESDIR}
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
9f22d0ad29b3d0ee162c774b135053e7
echo x - eaccelerator-devel/distinfo
sed 's/^X//' >eaccelerator-devel/distinfo << 'ed1cf5cd0469c591360432610818d4df'
XSHA256 (eaccelerator-20120816.tar.bz2) = 2e48f5e70aedff31b083e8ae6c9a6a0d29cdd1ad92c8f43b3fcaf8b3e66def5d
XSIZE (eaccelerator-20120816.tar.bz2) = 131579
ed1cf5cd0469c591360432610818d4df
echo x - eaccelerator-devel/pkg-descr
sed 's/^X//' >eaccelerator-devel/pkg-descr << '490f99378c801b3b5b1e907c4e2b5e0f'
XeAccelerator is a free open-source PHP accelerator & optimizer. It increases
Xthe performance of PHP scripts by caching them in their compiled state, so
Xthat the overhead of compiling is almost completely eliminated. It also
Xoptimizes scripts to speed up their execution. eAccelerator typically reduces
Xserver load and increases the speed of your PHP code by 1-10 times.
X
XWWW: http://eaccelerator.net/
490f99378c801b3b5b1e907c4e2b5e0f
echo x - eaccelerator-devel/pkg-plist
sed 's/^X//' >eaccelerator-devel/pkg-plist << '1b9d4924f132acb68a668608fabf1b73'
Xlib/php/%%PHP_EXT_DIR%%/eaccelerator.so
X@dirrmtry lib/php/%%PHP_EXT_DIR%%
X%%EXAMPLESDIR%%/control.php
X%%EXAMPLESDIR%%/dasm.php
X%%EXAMPLESDIR%%/eaccelerator.ini
X@dirrm %%EXAMPLESDIR%%
1b9d4924f132acb68a668608fabf1b73
exit



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



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