#!/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"] &&exit1if["x$2"="xPOST-INSTALL"];then${PEAR}install-r -f${PKGREGDIR}/package.xml
fi