Bug 44473

Summary: Resurrection of port devel/pear.
Product: Ports & Packages Reporter: Thierry Thomas <thierry>
Component: Individual Port(s)Assignee: sada <sada>
Status: Closed FIXED    
Severity: Affects Only Me CC: kris
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Description Flags
pear.tar.gz none

Description Thierry Thomas 2002-10-25 23:50:01 UTC
	. PEAR is a framework and distribution system for reusable PHP
	. it is still bundled with mod_php4, but could be removed from
	  next releases;
	. the distribution bundled with mod_php4 is neither complete nor
	. 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
How-To-Repeat: 	I have totally rewritten the original port, and there are several

	- 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.
Comment 1 sada freebsd_committer 2002-11-15 08:04:44 UTC
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 @@
-	@(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
Comment 2 sada freebsd_committer 2002-11-15 08:05:08 UTC
Responsible Changed
From-To: freebsd-ports->sada

I'll handle this.
Comment 3 sada freebsd_committer 2002-11-17 05:17:03 UTC
State Changed
From-To: open->closed

Committed, thanks!