freebsd-ports/security/pear-Crypt_CBC/pkg-deinstall
2021-04-06 16:31:13 +02:00

11 lines
232 B
Bash

#!/bin/sh
#
# 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