mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +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
|