mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 06:10:30 -04:00
- Release maintainership. PR: ports/122450 Submitted by: "Brian A. Seklecki" <bseklecki@collaborativefusion.com> Related to: ports/121791
19 lines
544 B
Bash
19 lines
544 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD: /tmp/pcvs/ports/devel/php5-phing/files/pear-install.in,v 1.1 2008-08-16 08:10:35 kuriyama 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
|