Skip site navigation (1)Skip section navigation (2)
Date:      Mon,  1 Sep 2003 23:01:18 +0200 (CEST)
From:      Thierry Thomas <thierry@pompo.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/56294: New port: www/pear-APC - Alternative PHP Cache.
Message-ID:  <20030901210118.92D427629@graf.pompo.net>
Resent-Message-ID: <200309012110.h81LACtq024209@freefall.freebsd.org>

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

>Number:         56294
>Category:       ports
>Synopsis:       New port: www/pear-APC - Alternative PHP Cache.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 01 14:10:11 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Thierry Thomas
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD graf.pompo.net 4.8-STABLE FreeBSD 4.8-STABLE #0: Tue Aug 19 18:22:37 CEST 2003 thierry@graf.pompo.net:/usr/obj/mntsrc/src/sys/GRAF020727 i386


	
>Description:
	This port does not build out of the box, and has been requested
	on the PEAR-DEV mailing list.

	See <http://marc.theaimsgroup.com/?t=106235180900001&r=1&w=2>.

>How-To-Repeat:
	N/A.

>Fix:
	Please apply the following patch:

--- pear-APC.shar begins here ---
# 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:
#
#	www/pear-APC
#	www/pear-APC/pkg-plist
#	www/pear-APC/pkg-descr
#	www/pear-APC/Makefile
#	www/pear-APC/distinfo
#	www/pear-APC/pkg-message
#
echo c - www/pear-APC
mkdir -p www/pear-APC > /dev/null 2>&1
echo x - www/pear-APC/pkg-plist
sed 's/^X//' >www/pear-APC/pkg-plist << 'END-of-www/pear-APC/pkg-plist'
X%%EXTDIR%%/apc.so
X%%PKGREGDIR%%/package.xml
X%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
X%%PORTDOCS%%%%DOCSDIR%%/INSTALL
X%%PORTDOCS%%%%DOCSDIR%%/NOTICE
X@dirrm %%PKGREGDIR%%
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-www/pear-APC/pkg-plist
echo x - www/pear-APC/pkg-descr
sed 's/^X//' >www/pear-APC/pkg-descr << 'END-of-www/pear-APC/pkg-descr'
XAPC is the Alternative PHP Cache.
X
XIt was conceived of to provide a free, open, and robust framework for
Xcaching and optimizing PHP intermediate code.
X
XWWW: http://pear.php.net/package/APC
END-of-www/pear-APC/pkg-descr
echo x - www/pear-APC/Makefile
sed 's/^X//' >www/pear-APC/Makefile << 'END-of-www/pear-APC/Makefile'
X# Ports collection makefile for:  pear-APC
X# Date created:			  31 August 2003
X# Whom:				  Thierry Thomas (<thierry@pompo.net>)
X#
X# $FreeBSD$
X#
X
XPORTNAME=	APC
XPORTVERSION=	2.0
XCATEGORIES=	www
X
XMAINTAINER=	ports@FreeBSD.org
XCOMMENT=	Alternative PHP Cache
X
XBUILD_DEPENDS=	${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XUSE_PHPIZE=	yes
X
XCONFIGURE_ARGS=	--enable-apc
X
X.include <bsd.port.pre.mk>
X.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
X.include "${.CURDIR}/../../devel/pear-PEAR/Makefile.common"
X
X.if exists(${LOCALBASE}/bin/php-config)
XEXT_DIR!=	${LOCALBASE}/bin/php-config --extension-dir | ${SED} -e \
X			"s:${PHP_BASE}/::"
X.endif
XPHP_DIR?=	${LOCALBASE}/etc
XPHP_INI=	${PHP_DIR}/php.ini
XPLIST_SUB+=	EXTDIR=${EXT_DIR}
XDOCS=		CHANGELOG INSTALL NOTICE
X
Xpost-install-script:
X	@${STRIP_CMD} ${PHP_BASE}/${EXT_DIR}/apc.so
X	@if [ ! -f ${PHP_INI} ]; then \
X		${ECHO_MSG} "===>   Creating ${PHP_INI} for PHP" ; \
X		${CP} -p ${PHP_INI}-dist ${PHP_INI} ; \
X	fi
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for FILE in ${DOCS}
X	@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
X.endfor
X	@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
X.endif
X	@${ECHO_MSG}
X	@${CAT} ${PKGMESSAGE} | \
X		${SED} -e "s:/usr/local/etc/php.ini:${PHP_INI}:"
X	@${ECHO_MSG}
X
X.include <bsd.port.post.mk>
END-of-www/pear-APC/Makefile
echo x - www/pear-APC/distinfo
sed 's/^X//' >www/pear-APC/distinfo << 'END-of-www/pear-APC/distinfo'
XMD5 (PEAR/APC-2.0.tgz) = dfbbe831eeedacc495d3adec26d6f784
END-of-www/pear-APC/distinfo
echo x - www/pear-APC/pkg-message
sed 's/^X//' >www/pear-APC/pkg-message << 'END-of-www/pear-APC/pkg-message'
X************************************************************************
XDo not forget to configure your /usr/local/etc/php.ini file:
Xadd the line:
X
Xextension="apc.so"
X
Xin the section "Dynamic Extensions".
X
XThen restart your web server and consult the output of phpinfo().
XIf there is an informational section for APC, the installation was
Xsuccessful.
X************************************************************************
X
END-of-www/pear-APC/pkg-message
exit
--- pear-APC.shar ends here ---

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



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