blob: 52d50417d9c3d5121833e6c0a9b0b2c614482882 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
#
# $FreeBSD$
#
# Register the package $1 in the port registry and optionally add a
# non-standard channel.
PREFIX=${PKG_PREFIX:=%%LOCALBASE%%}
PEAR=%%LOCALBASE%%/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
|