aboutsummaryrefslogtreecommitdiff
path: root/devel/gnome-vfs/pkg-deinstall.in
diff options
context:
space:
mode:
authorJeremy Messenger <mezz@FreeBSD.org>2005-01-29 20:21:04 +0000
committerJeremy Messenger <mezz@FreeBSD.org>2005-01-29 20:21:04 +0000
commit3f7a57ceaf7adb234f128db1d6506502aeb1b0c6 (patch)
tree264ae0da3e15aafc848d4992e55eaa40db463947 /devel/gnome-vfs/pkg-deinstall.in
parentbf5fb93c4db7e9bb39a8f0bf375e79ce8a51c10f (diff)
downloadports-3f7a57ceaf7adb234f128db1d6506502aeb1b0c6.tar.gz
ports-3f7a57ceaf7adb234f128db1d6506502aeb1b0c6.zip
Notes
Diffstat (limited to 'devel/gnome-vfs/pkg-deinstall.in')
-rw-r--r--devel/gnome-vfs/pkg-deinstall.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/devel/gnome-vfs/pkg-deinstall.in b/devel/gnome-vfs/pkg-deinstall.in
new file mode 100644
index 000000000000..7e289a563dd1
--- /dev/null
+++ b/devel/gnome-vfs/pkg-deinstall.in
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# Restore gconf keys of libgnome.
+
+if [ "$2" != "POST-DEINSTALL" ]; then
+ exit 0
+fi
+
+SCHEMAS=%%X11BASE%%/etc/gconf/schemas/desktop_gnome_applications_terminal.schemas
+
+if [ -f ${SCHEMAS} ]; then
+ env GCONF_CONFIG_SOURCE=xml::%%X11BASE%%/etc/gconf/gconf.xml.defaults \
+ %%X11BASE%%/bin/gconftool-2 --makefile-install-rule ${SCHEMAS} \
+ > /dev/null || /usr/bin/true
+fi
+
+exit 0