From 4366a26a9c0c1d41597ee9f5c4b1eebaf2ac8eb3 Mon Sep 17 00:00:00 2001 From: joey Date: Tue, 13 Jan 2004 02:38:03 +0000 Subject: r1635: * Added dh_gconf command from Ross Burton. Closes: #180882 * dh_scrollkeeper: Make postinst fragment test for scrollkeeper-update. Closes: #225337 * Copyright update. * Include full text of the GPL in the source package, because goodness knows, I need another copy of that in subversion.. --- autoscripts/postinst-gconf | 11 +++++++++++ autoscripts/postinst-scrollkeeper | 2 +- autoscripts/prerm-gconf | 11 +++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 autoscripts/postinst-gconf create mode 100644 autoscripts/prerm-gconf (limited to 'autoscripts') diff --git a/autoscripts/postinst-gconf b/autoscripts/postinst-gconf new file mode 100644 index 00000000..c5ee87d5 --- /dev/null +++ b/autoscripts/postinst-gconf @@ -0,0 +1,11 @@ +if [ "$1" = "configure" ]; then + SCHEMA_LOCATION=/etc/gconf/schemas + SCHEMA_FILES="#SCHEMAS#" + for SCHEMA in $SCHEMA_FILES; do + if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then + HOME=/root GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \ + gconftool-2 \ + --makefile-install-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null + fi + done +fi diff --git a/autoscripts/postinst-scrollkeeper b/autoscripts/postinst-scrollkeeper index 5f2a255d..1132b56c 100644 --- a/autoscripts/postinst-scrollkeeper +++ b/autoscripts/postinst-scrollkeeper @@ -1,3 +1,3 @@ -if [ "$1" = "configure" ]; then +if [ "$1" = "configure" ] && which scrollkeeper-update 2>/dev/null; then scrollkeeper-update -q fi diff --git a/autoscripts/prerm-gconf b/autoscripts/prerm-gconf new file mode 100644 index 00000000..aaa803e7 --- /dev/null +++ b/autoscripts/prerm-gconf @@ -0,0 +1,11 @@ +if [ "$1" = remove ] || [ "$1" = upgrade ]; then + SCHEMA_LOCATION=/etc/gconf/schemas + SCHEMA_FILES="#SCHEMAS#" + for SCHEMA in $SCHEMA_FILES; do + if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then + HOME=/root GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \ + gconftool-2 \ + --makefile-uninstall-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null + fi + done +fi -- cgit v1.2.3