summaryrefslogtreecommitdiff
path: root/devel/pear/pear-deinstall
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2005-12-09 18:58:03 +0000
committerAlex Dupre <ale@FreeBSD.org>2005-12-09 18:58:03 +0000
commit4e6ebc04cb2ecb570b58d17b068cbf5ef58196bd (patch)
treeea0367a13d5f5542a8d3f5670605f4abe782bd3d /devel/pear/pear-deinstall
parentAdd p5-Devel-TraceCalls 0.04, track calls to subs, classes and object (diff)
New pear bootstrap port based on go-pear, independent to php releases.
Discussed with: thierry, antonio@php.net Required by: PHP 5.1
Notes
Notes: svn path=/head/; revision=150743
Diffstat (limited to 'devel/pear/pear-deinstall')
-rw-r--r--devel/pear/pear-deinstall15
1 files changed, 15 insertions, 0 deletions
diff --git a/devel/pear/pear-deinstall b/devel/pear/pear-deinstall
new file mode 100644
index 000000000000..39672a7cb577
--- /dev/null
+++ b/devel/pear/pear-deinstall
@@ -0,0 +1,15 @@
+#!/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