Skip site navigation (1)Skip section navigation (2)
Date:      Sun,  7 Sep 2003 15:37:09 +0200 (CEST)
From:      Thierry Thomas <thierry@pompo.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        "Daniel J Cain Jr." <dan@cain.sh>
Subject:    ports/56555: New port: devel/pear-apd - Advanced PHP Debugger (APD).
Message-ID:  <20030907133709.BD10D752C@graf.pompo.net>
Resent-Message-ID: <200309071340.h87DeCwp090756@freefall.freebsd.org>

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

>Number:         56555
>Category:       ports
>Synopsis:       New port: devel/pear-apd - Advanced PHP Debugger (APD).
>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:   Sun Sep 07 06:40:12 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:
	Adding APD, a full-featured PHP profiler/debugger loaded as a
	zend_extension.

>How-To-Repeat:
	N/A.

>Fix:
	Please execute the following shar file:

--- pear-apd.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:
#
#	devel/pear-apd
#	devel/pear-apd/pkg-plist
#	devel/pear-apd/pkg-descr
#	devel/pear-apd/Makefile
#	devel/pear-apd/distinfo
#	devel/pear-apd/pkg-message
#
echo c - devel/pear-apd
mkdir -p devel/pear-apd > /dev/null 2>&1
echo x - devel/pear-apd/pkg-plist
sed 's/^X//' >devel/pear-apd/pkg-plist << 'END-of-devel/pear-apd/pkg-plist'
Xbin/pprofp
X%%EXTDIR%%/apd.so
X%%PKGREGDIR%%/package.xml
X%%PORTDOCS%%%%DOCSDIR%%/README
X@dirrm %%PKGREGDIR%%
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-devel/pear-apd/pkg-plist
echo x - devel/pear-apd/pkg-descr
sed 's/^X//' >devel/pear-apd/pkg-descr << 'END-of-devel/pear-apd/pkg-descr'
XAPD is a full-featured PHP profiler/debugger that is loaded as a
Xzend_extension.
X
XIt aims to be an analog of C's gprof or Perl's Devel::DProf.
X
XWWW: http://pear.php.net/package/apd
END-of-devel/pear-apd/pkg-descr
echo x - devel/pear-apd/Makefile
sed 's/^X//' >devel/pear-apd/Makefile << 'END-of-devel/pear-apd/Makefile'
X# Ports collection makefile for:  pear-apd
X# Date created:			  06 Septemeber 2003
X# Whom:				  Thierry Thomas (<thierry@pompo.net>)
X#
X# $FreeBSD$
X#
X
XPORTNAME=	apd
XPORTVERSION=	0.4p2
XCATEGORIES=	devel
X
XMAINTAINER=	ports@FreeBSD.org
XCOMMENT=	A full-featured engine-level PHP profiler/debugger
X
XBUILD_DEPENDS=	${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XUSE_PHPIZE=	yes
X
XCONFIGURE_ARGS=	--enable-apd
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
XDUMP_DIR?=	/var/tmp/apd
XPHP_INI=	${PHP_DIR}/php.ini
XPLIST_SUB+=	EXTDIR=${EXT_DIR}
XDOCS=		README
X
Xpost-extract:
X	@${CHMOD} -R u+w ${WRKSRC}
X
Xpost-install-script:
X	@${STRIP_CMD} ${PHP_BASE}/${EXT_DIR}/apd.so
X	@${MKDIR} ${DUMP_DIR}
X	@${CHMOD} a+w ${DUMP_DIR}
X	${INSTALL_SCRIPT} ${WRKSRC}/pprofp ${PREFIX}/bin
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			-e "s:/usr/local:${LOCALBASE}:"			\
X			-e "s:lib/php/20020429:${EXT_DIR}:"		\
X			-e "s:/var/tmp/apd:${DUMP_DIR}:"
X	@${ECHO_MSG}
X
X.include <bsd.port.post.mk>
END-of-devel/pear-apd/Makefile
echo x - devel/pear-apd/distinfo
sed 's/^X//' >devel/pear-apd/distinfo << 'END-of-devel/pear-apd/distinfo'
XMD5 (PEAR/apd-0.4p2.tgz) = 7b13b405033e693e67ac8b9ff5ae93c2
END-of-devel/pear-apd/distinfo
echo x - devel/pear-apd/pkg-message
sed 's/^X//' >devel/pear-apd/pkg-message << 'END-of-devel/pear-apd/pkg-message'
X************************************************************************
X
XDo not forget to configure your /usr/local/etc/php.ini file:
Xadd the line:
X
Xzend_extension = /usr/local/lib/php/20020429/apd.so
Xapd.dumpdir = /var/tmp/apd
X
Xin the section "Dynamic Extensions".
X
X************************************************************************
X
END-of-devel/pear-apd/pkg-message
exit
--- pear-apd.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?20030907133709.BD10D752C>