diff options
Diffstat (limited to 'devel/pear/pear-deinstall')
-rw-r--r-- | devel/pear/pear-deinstall | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/devel/pear/pear-deinstall b/devel/pear/pear-deinstall new file mode 100644 index 000000000000..39672a7cb577 --- /dev/null +++ b/devel/pear/pear-deinstall @@ -0,0 +1,15 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# Remove package declaration from PEAR's registry. + +if [ x$2 != xDEINSTALL ]; then + exit +fi +PKG_NAME=${1%%-[0-9._]*} +PACKAGE=$(echo $PKG_NAME | sed 's/pear-//') + +PEAR=${PKG_PREFIX}/bin/pear + +${PEAR} uninstall -r -n ${PACKAGE} || true |