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)
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..
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 0000000..c5ee87d
--- /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 5f2a255..1132b56 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 0000000..aaa803e
--- /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