aboutsummaryrefslogtreecommitdiff
path: root/security/pear-Crypt_CBC/pkg-deinstall
blob: c17e9d19ced020d94331f9b4247a78c010901851 (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 ${PACKAGE} || true