aboutsummaryrefslogtreecommitdiffstats
path: root/devel/pear-PEAR/pkg-deinstall
blob: 79df94e800f9cbcafabb61d3d2232c945eac2a76 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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-//')

${PKG_PREFIX}/bin/pear uninstall -r -n ${PACKAGE} || true