. PEAR is a framework and distribution system for reusable PHP components; . it is still bundled with mod_php4, but could be removed from next releases; . the distribution bundled with mod_php4 is neither complete nor up-to-date; . the port www/horde2 requires one of these packages (Log); . -HEAD branches (aka next releases) of several ports (mail/imp, deskutils/kronolith, etc.) require these packages; . port devel/pear had been marked broken (see PR ports/33050) when mod_php 4.1.0 was released; . PR ports/37649 (unbreaking) has never been committed: it is superseded by this PR; . devel/pear has been removed by Kris on 2002/10/12 20:44:27 PDT. Fix: The following uuencoded file contains a tarball with several shar files: How-To-Repeat: I have totally rewritten the original port, and there are several parts: - devel/pear is just a meta-port, to install everything - if needed; - all these ports use a PKGNAMEPREFIX= pear- - devel/pear-install is a common part, used to backup the original (from mod_php4) distribution; - sysutils/pear-Log is required by www/horde2; - the other ports are used by -HEAD branches of the Horde framework, and by cuting-edge devs in PHP.
Doing pkg_add pear-install-4.2.3.tgz wouldn't make $LOCALBASE/lib/php.DIST_PHP so you would lose $LOCALBASE/lib/php when you do pkg_delete. It would be better that you just make backup copy of lib/php in pkg-plist, like do-install target does. Below patch would work; please verify. -- diff -Bbuw -r pear-install.orig/Makefile pear-install/Makefile --- pear-install.orig/Makefile Fri Nov 15 16:36:24 2002 +++ pear-install/Makefile Fri Nov 15 16:42:01 2002 @@ -36,10 +36,4 @@ @${MKDIR} ${PEARDIR}.DIST_PHP @${CP} -Rp ${PEARDIR}/* ${PEARDIR}.DIST_PHP -post-install: - @(cd ${LOCALBASE} && ${FIND} -d ${LPHP_LIB}/* \! -type d) >> ${TMPPLIST} - @(cd ${LOCALBASE} && ${FIND} -d ${LPHP_LIB}/* -type d) | ${SED} -e 's#^#@dirrm #' >> ${TMPPLIST} - @${ECHO_CMD} "@unexec rm -r %D/lib/php || true" >> ${TMPPLIST} - @${ECHO_CMD} "@unexec mv %D/lib/php.DIST_PHP %D/lib/php || true" >> ${TMPPLIST} - .include <bsd.port.post.mk> diff -Bbuw -r pear-install.orig/pkg-plist pear-install/pkg-plist --- pear-install.orig/pkg-plist Fri Nov 15 16:36:24 2002 +++ pear-install/pkg-plist Fri Nov 15 16:44:26 2002 @@ -1 +1,4 @@ -@comment this plist intentionally left empty +@exec rm -r %D/lib/php.DIST_PHP >/dev/null 2>&1 || true +@exec cp -rp %D/lib/php %D/lib/php.DIST_PHP +@unexec rm -r %D/lib/php || true +@unexec mv %D/lib/php.DIST_PHP %D/lib/php || true
Responsible Changed From-To: freebsd-ports->sada I'll handle this.
State Changed From-To: open->closed Committed, thanks!