#!/bin/sh # # $FreeBSD: ports/devel/pear-PHPUnit3/files/pear-install.in,v 1.1 2007/10/29 17:01:20 miwi Exp $ # # Register the package $1 in the port registry and optionally add a # non-standard channel. PREFIX=${PKG_PREFIX:=%%PREFIX%%} PEAR=${PREFIX}/bin/pear PKGREGDIR=${PREFIX}/share/pear/packages/$1 CHANNEL=%%CHANNEL%% [ "x$1" = "x" ] && exit 1 if [ "x$2" = "xPOST-INSTALL" ]; then if [ "x${CHANNEL}" != "x" ]; then ${PEAR} channel-add http://${CHANNEL}/channel.xml fi ${PEAR} install -r -n -f ${PKGREGDIR}/package.xml fi