blob: 94de0bfd249e08ffa77da70b8fd40bf8ee60880f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/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
PEAR2=${PKG_PREFIX}/bin/pear2
if [ ${PACKAGE} = "PEAR" ] \
|| [ ${PACKAGE} = "Archive_Tar" ] \
|| [ ${PACKAGE} = "Console_Getopt" ] \
|| [ ${PACKAGE} = "XML_RPC" ]; then
PEAR_INSTALLER=${PEAR}
else
PEAR_INSTALLER=${PEAR2}
fi
${PEAR_INSTALLER} uninstall -r -n ${PACKAGE} || true
|