aboutsummaryrefslogtreecommitdiffstats
path: root/devel/pear/pear-deinstall
blob: 39672a7cb57761fca5f89daa2ac69cfd3a20f9e6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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