mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
4e6ebc04cb
Discussed with: thierry, antonio@php.net Required by: PHP 5.1
16 lines
263 B
Bash
16 lines
263 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
|
|
|
|
${PEAR} uninstall -r -n ${PACKAGE} || true
|