Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Nov 2013 21:37:07 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r333261 - head/devel/pear
Message-ID:  <201311082137.rA8Lb7Kp060656@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Fri Nov  8 21:37:06 2013
New Revision: 333261
URL: http://svnweb.freebsd.org/changeset/ports/333261

Log:
  Preliminary work on devel/pear to allow staging of pear classes:
  - create 3 empty directories when pkg_install is used
  - regenerate .depdb post package install to prevent fs/stage violations
  - add a note about staging this port, install-pear.php seems to be the way
  - bump PORTREVISION
  
  Reviewed by:	bapt, ports@

Added:
  head/devel/pear/pkg-install   (contents, props changed)
Modified:
  head/devel/pear/Makefile
  head/devel/pear/pkg-plist

Modified: head/devel/pear/Makefile
==============================================================================
--- head/devel/pear/Makefile	Fri Nov  8 19:52:00 2013	(r333260)
+++ head/devel/pear/Makefile	Fri Nov  8 21:37:06 2013	(r333261)
@@ -3,7 +3,7 @@
 
 PORTNAME=	pear
 PORTVERSION=	1.9.4
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	devel
 MASTER_SITES=	http://miwibox.org/distfiles/
 
@@ -19,6 +19,8 @@ USE_PHP_BUILD=	yes
 
 PEARDIR=	${PREFIX}/share/pear
 
+# https://github.com/pear/pear-core/blob/master/install-pear.php
+# supports ${SETENV} INSTALL_ROOT=${STAGEDIR}
 NO_STAGE=	yes
 post-patch:
 	@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" \

Added: head/devel/pear/pkg-install
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/pear/pkg-install	Fri Nov  8 21:37:06 2013	(r333261)
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ "$2" != "POST-INSTALL" ]; then
+	exit 0
+fi
+ 
+# Regenerate %%PEARDIR%%/.depdb post-install
+# This is to prevent fs or stage violation for first dependent port
+${PKG_PREFIX}/bin/pear list > /dev/null
+ 
+exit 0

Modified: head/devel/pear/pkg-plist
==============================================================================
--- head/devel/pear/pkg-plist	Fri Nov  8 19:52:00 2013	(r333260)
+++ head/devel/pear/pkg-plist	Fri Nov  8 21:37:06 2013	(r333261)
@@ -166,6 +166,9 @@ etc/pear.conf.sample
 @rmtry share/pear/.lock
 @dirrmtry share/pear/.channels/.alias
 @dirrmtry share/pear/.channels
+@exec mkdir -p %D/share/pear/.registry/.channel.__uri
+@exec mkdir -p %D/share/pear/.registry/.channel.doc.php.net
+@exec mkdir -p %D/share/pear/.registry/.channel.pecl.php.net
 @dirrmtry share/pear/.registry/.channel.__uri
 @dirrmtry share/pear/.registry/.channel.doc.php.net
 @dirrmtry share/pear/.registry/.channel.pecl.php.net



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