#!/bin/sh
#
case $2 in
	PRE-DEINSTALL)
		#including any pre-deinstall content and @preunexec commands...
		;;
	POST-DEINSTALL)
		#including any @postunexec commands...
		env GCONF_CONFIG_SOURCE=xml:merged:/usr/local/etc/gconf/gconf.xml.defaults HOME=/wrkdirs/usr/ports/x11/libgnome/work gconftool-2 --makefile-uninstall-rule /usr/local/etc/gconf/schemas/desktop_gnome_accessibility_keyboard.schemas > /dev/null || /usr/bin/true
		env GCONF_CONFIG_SOURCE=xml:merged:/usr/local/etc/gconf/gconf.xml.defaults HOME=/wrkdirs/usr/ports/x11/libgnome/work gconftool-2 --makefile-uninstall-rule /usr/local/etc/gconf/schemas/desktop_gnome_accessibility_startup.schemas > /dev/null || /usr/bin/true
		env GCONF_CONFIG_SOURCE=xml:merged:/usr/local/etc/gconf/gconf.xml.defaults HOME=/wrkdirs/usr/ports/x11/libgnome/work gconftool-2 --makefile-uninstall-rule /usr/local/etc/gconf/schemas/desktop_gnome_applications_at_mobility.schemas > /dev/null || /usr/bin/true
		env GCONF_CONFIG_SOURCE=xml:merged:/usr/local/etc/gconf/gconf.xml.defaults HOME=/wrkdirs/usr/ports/x11/libgnome/work gconftool-2 --makefile-uninstall-rule /usr/local/etc/gconf/schemas/desktop_gnome_applications_at_visual.schemas > /dev/null || /usr/bin/true
		env GCONF_CONFIG_SOURCE=xml:merged:/usr/local/etc/gconf/gconf.xml.defaults HOME=/wrkdirs/usr/ports/x11/libgnome/work gconftool-2 --makefile-uninstall-rule /usr/local/etc/gconf/schemas/desktop_gnome_applications_browser.schemas > /dev/null || /usr/bin/true
		env GCONF_CONFIG_SOURCE=xml:merged:/usr/local/etc/gconf/gconf.xml.defaults HOME=/wrkdirs/usr/ports/x11/libgnome/work gconftool-2 --makefile-uninstall-rule /usr/local/etc/gconf/schemas/desktop_gnome_applications_office.schemas > /dev/null || /usr/bin/true
		env GCONF_CONFIG_SOURCE=xml:merged:/usr/local/etc/gconf/gconf.xml.defaults HOME=/wrkdirs/usr/ports/x11/libgnome/work gconftool-2 --makefile-uninstall-rule /usr/local/etc/gconf/schemas/desktop_gnome_applications_terminal.schemas > /dev/null || /usr/bin/true
		env GCONF_CONFIG_SOURCE=xml:merged:/usr/local/etc/gconf/gconf.xml.defaults HOME=/wrkdirs/usr/ports/x11/libgnome/work gconftool-2 --makefile-uninstall-rule /usr/local/etc/gconf/schemas/desktop_gnome_applications_window_manager.schemas > /dev/null || /usr/bin/true
		env GCONF_CONFIG_SOURCE=xml:merged:/usr/local/etc/gconf/gconf.xml.defaults HOME=/wrkdirs/usr/ports/x11/libgnome/work gconftool-2 --makefile-uninstall-rule /usr/local/etc/gconf/schemas/desktop_gnome_background.schemas > /dev/null || /usr/bin/true
		env GCONF_CONFIG_SOURCE=xml:merged:/usr/local/etc/gconf/gconf.xml.defaults HOME=/wrkdirs/usr/ports/x11/libgnome/work gconftool-2 --makefile-uninstall-rule /usr/local/etc/gconf/schemas/desktop_gnome_file_views.schemas > /dev/null || /usr/bin/true
		env GCONF_CONFIG_SOURCE=xml:merged:/usr/local/etc/gconf/gconf.xml.defaults HOME=/wrkdirs/usr/ports/x11/libgnome/work gconftool-2 --makefile-uninstall-rule /usr/local/etc/gconf/schemas/desktop_gnome_interface.schemas > /dev/null || /usr/bin/true
		env GCONF_CONFIG_SOURCE=xml:merged:/usr/local/etc/gconf/gconf.xml.defaults HOME=/wrkdirs/usr/ports/x11/libgnome/work gconftool-2 --makefile-uninstall-rule /usr/local/etc/gconf/schemas/desktop_gnome_lockdown.schemas > /dev/null || /usr/bin/true
		env GCONF_CONFIG_SOURCE=xml:merged:/usr/local/etc/gconf/gconf.xml.defaults HOME=/wrkdirs/usr/ports/x11/libgnome/work gconftool-2 --makefile-uninstall-rule /usr/local/etc/gconf/schemas/desktop_gnome_peripherals_keyboard.schemas > /dev/null || /usr/bin/true
		env GCONF_CONFIG_SOURCE=xml:merged:/usr/local/etc/gconf/gconf.xml.defaults HOME=/wrkdirs/usr/ports/x11/libgnome/work gconftool-2 --makefile-uninstall-rule /usr/local/etc/gconf/schemas/desktop_gnome_peripherals_mouse.schemas > /dev/null || /usr/bin/true
		env GCONF_CONFIG_SOURCE=xml:merged:/usr/local/etc/gconf/gconf.xml.defaults HOME=/wrkdirs/usr/ports/x11/libgnome/work gconftool-2 --makefile-uninstall-rule /usr/local/etc/gconf/schemas/desktop_gnome_sound.schemas > /dev/null || /usr/bin/true
		env GCONF_CONFIG_SOURCE=xml:merged:/usr/local/etc/gconf/gconf.xml.defaults HOME=/wrkdirs/usr/ports/x11/libgnome/work gconftool-2 --makefile-uninstall-rule /usr/local/etc/gconf/schemas/desktop_gnome_thumbnail_cache.schemas > /dev/null || /usr/bin/true
		env GCONF_CONFIG_SOURCE=xml:merged:/usr/local/etc/gconf/gconf.xml.defaults HOME=/wrkdirs/usr/ports/x11/libgnome/work gconftool-2 --makefile-uninstall-rule /usr/local/etc/gconf/schemas/desktop_gnome_thumbnailers.schemas > /dev/null || /usr/bin/true
		env GCONF_CONFIG_SOURCE=xml:merged:/usr/local/etc/gconf/gconf.xml.defaults HOME=/wrkdirs/usr/ports/x11/libgnome/work gconftool-2 --makefile-uninstall-rule /usr/local/etc/gconf/schemas/desktop_gnome_typing_break.schemas > /dev/null || /usr/bin/true
		;;
esac
# 
# Including the existing pkg-deinstall script..
# 
#!/bin/sh
#
# $FreeBSD: head/x11/libgnome/files/pkg-deinstall.in 340719 2014-01-22 15:52:06Z mat $
#   $MCom: ports/x11/libgnome/files/pkg-deinstall.in,v 1.29 2010/09/28 15:55:50 kwm Exp $
#
# Restore gconf keys of gnomevfs2.

if [ "$2" != "POST-DEINSTALL" ]; then
	exit 0
fi

SCHEMAS=/usr/local/etc/gconf/schemas/desktop_default_applications.schemas

if [ -f ${SCHEMAS} ]; then
	env GCONF_CONFIG_SOURCE=xml::/usr/local/etc/gconf/gconf.xml.defaults \
	/usr/local/bin/gconftool-2 --makefile-install-rule ${SCHEMAS} \
		> /dev/null || /usr/bin/true
fi

exit 0
# 
# Done including the existing script.
exit 0
