summaryrefslogtreecommitdiff
path: root/autoscripts
diff options
context:
space:
mode:
authorjoey <joey>2004-01-13 02:38:03 +0000
committerjoey <joey>2004-01-13 02:38:03 +0000
commit4366a26a9c0c1d41597ee9f5c4b1eebaf2ac8eb3 (patch)
tree99e315022019f668255ea586ccaac11af52aecd1 /autoscripts
parentaaa199cf6663b331be56db1dccb21c784c86344c (diff)
downloaddebhelper-4366a26a9c0c1d41597ee9f5c4b1eebaf2ac8eb3.tar.gz
r1635: * Added dh_gconf command from Ross Burton. Closes: #180882version_4.1.84
* 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..
Diffstat (limited to 'autoscripts')
-rw-r--r--autoscripts/postinst-gconf11
-rw-r--r--autoscripts/postinst-scrollkeeper2
-rw-r--r--autoscripts/prerm-gconf11
3 files changed, 23 insertions, 1 deletions
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