272bc9ee30
- install pear script as pear2. PR: ports/73995 Submitted by: maintainer.
22 lines
400 B
Bash
22 lines
400 B
Bash
#!/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 [ ${PKG_NAME} = "pear-PEAR" ]; then
|
|
PEAR_INSTALLER=${PEAR}
|
|
else
|
|
PEAR_INSTALLER=${PEAR2}
|
|
fi
|
|
|
|
${PEAR_INSTALLER} uninstall -r -n ${PACKAGE} || true
|