aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2010-06-18 17:18:02 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-06-18 17:18:02 -0500
commit6f5c3aaee7279b07279389898d02a20f8bfa363a (patch)
treee33d9e175ece5e6b169c4da14f526e057c175f7d
parent719c4d876166391a4b4ecec5221dc2ff4b2514f0 (diff)
doinst.sh: Add schema_install() example for GConf stuff
-rw-r--r--doinst.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/doinst.sh b/doinst.sh
index 1683756..cb44d46 100644
--- a/doinst.sh
+++ b/doinst.sh
@@ -22,6 +22,15 @@ preserve_perms() {
config $NEW
}
+schema_install() {
+ SCHEMA="$1"
+ GCONF_CONFIG_SOURCE="xml::etc/gconf/gconf.xml.defaults" \
+ chroot . gconftool-2 --makefile-install-rule \
+ /etc/gconf/schemas/$SCHEMA \
+ 1>/dev/null
+}
+
+schema_install blah.schemas
preserve_perms etc/rc.d/rc.INIT.new
config etc/configfile.new