blob: 0a1badde00bfecd2d039c74688520aaabc150d90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh
#
# $FreeBSD$
#
# Register the package $1 in the port registry
PREFIX=${PKG_PREFIX:-/usr/local}
PEAR=${PREFIX}/bin/pear
PEAR2=${PREFIX}/bin/pear2
PKGREGDIR=${PREFIX}/share/pear/packages/$1
if [ -f "${PEAR2}" ]; then
PEAR_INSTALLER=${PEAR2}
else
PEAR_INSTALLER=${PEAR}
fi
[ "x$1" = "x" ] && exit 1
if [ "x$2" = "xPOST-INSTALL" ]; then
${PEAR_INSTALLER} install -r -n -f ${PKGREGDIR}/package.xml
fi
|