mirror of
https://git.freebsd.org/ports.git
synced 2025-06-23 05:30:31 -04:00
- Got this port working again after making some minor changes to the devel/pear port to support alternate download locations. Submitted by: Greg Larkin <glarkin@sourcehosting.net> Approved by: maintainer (via icq)
19 lines
448 B
Bash
19 lines
448 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# 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
|