aboutsummaryrefslogtreecommitdiffstats
path: root/devel/pear/pear-install
blob: 2bf50d301095069a699e3b02563a9e66218e3240 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
#
# $FreeBSD$
#
# Register the package $1 in the port registry

PREFIX=${PKG_PREFIX:=%%PREFIX%%}
PEAR=${PREFIX}/bin/pear
PKGREGDIR=${PREFIX}/share/pear/packages/$1

[ "x$1" = "x" ] && exit 1
if [ "x$2" = "xPOST-INSTALL" ]; then
    ${PEAR} install -r -n -f ${PKGREGDIR}/package.xml
fi