aboutsummaryrefslogtreecommitdiffstats
path: root/x11/libgnome/files
diff options
context:
space:
mode:
authorjylefort <jylefort@FreeBSD.org>2005-05-18 01:23:35 +0800
committerjylefort <jylefort@FreeBSD.org>2005-05-18 01:23:35 +0800
commit56503537ec11e40a3909ed6b9ad2bb43b7a502a4 (patch)
tree6c4e649948f19c73d3383c33f62fd248dd8193a8 /x11/libgnome/files
parent2a28a0f1d9adc608188672404483dfbacc4abd40 (diff)
downloadfreebsd-ports-gnome-56503537ec11e40a3909ed6b9ad2bb43b7a502a4.tar.gz
freebsd-ports-gnome-56503537ec11e40a3909ed6b9ad2bb43b7a502a4.tar.zst
freebsd-ports-gnome-56503537ec11e40a3909ed6b9ad2bb43b7a502a4.zip
- Fix the packing list when NOPORTDOCS is defined [1]
- Use SUB_FILES=pkg-deinstall PR: ports/81156 [1] Submitted by: Björn König <bkoenig@cs.tu-berlin.de> [1]
Diffstat (limited to 'x11/libgnome/files')
-rw-r--r--x11/libgnome/files/pkg-deinstall.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/x11/libgnome/files/pkg-deinstall.in b/x11/libgnome/files/pkg-deinstall.in
new file mode 100644
index 000000000000..0ac463865c7f
--- /dev/null
+++ b/x11/libgnome/files/pkg-deinstall.in
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# Restore gconf keys of gnomevfs2.
+
+if [ "$2" != "POST-DEINSTALL" ]; then
+ exit 0
+fi
+
+SCHEMAS=%%X11BASE%%/etc/gconf/schemas/desktop_default_applications.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