mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
9259f4c7d8
Simplify pkg-deinstall
15 lines
215 B
Bash
15 lines
215 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# Remove package declaration from PEAR's registry.
|
|
|
|
if [ x$2 != xDEINSTALL ]; then
|
|
exit
|
|
fi
|
|
|
|
PACKAGE=%%PKG_NAME%%
|
|
PEAR=${PKG_PREFIX}/bin/pear
|
|
|
|
${PEAR} uninstall -r -n ${PACKAGE} || true
|