freebsd-ports/security/pear-Auth/pkg-deinstall
Edwin Groothuis fd066d0394 New port: security/pear-Auth - PEAR authentication methods.
PR:		ports/48119
Submitted by:	Thierry Thomas <thierry@pompo.net>
2003-02-24 05:59:41 +00:00

14 lines
246 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-//')
${PKG_PREFIX}/bin/pear uninstall -r ${PACKAGE} || true