blob: ed2f91c6f145dac9fa31f52714286ee67c3f0dfa (
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:-/usr/local}
PEAR=${PREFIX}/bin/pear
PKGREGDIR=${PREFIX}/.PEAR.pkg/$1
[ "x$1" = "x" ] && exit 1
if [ "x$2" = "xPOST-INSTALL" ]; then
${PEAR} install -r -f ${PKGREGDIR}/package.xml
fi
|