gconf.txt revision 9021
10139N/A/desktop/gnome/interface/foo, the corresponding value was stored in
10139N/Astored in /etc/gconf/schemas.
10139N/ASo we had 100s of small xml files, each containing just a few keys/values
16920N/A/etc/gconf/gconf.xml.defaults/%gconf-tree-<locale>.xml
10139N/AAlternate Root installations (see postrun.txt for more details).
12107N/Afiles in /etc/gconf/gconf.xml.defaults/%gconf-tree*.xml.
10139N/A %include default-depend.inc
10139N/A If you do this, the only gconf-related files in $RPM_BUILD_ROOT/etc
10139N/A export GCONF_CONFIG_SOURCE=xml::$RPM_BUILD_ROOT%{_sysconfdir}/gconf/gconf.xml.defaults
10139N/A for S in $RPM_BUILD_ROOT/%{_sysconfdir}/gconf/schemas/*.schemas; do
10139N/A test ! -s $RPM_BUILD_ROOT%{_sysconfdir}/gconf/gconf.xml.defaults/$f && \
10139N/A rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/gconf/gconf.xml.defaults/$f
10139N/A3) Add a %post and a %preun script that installs/uninstalls the schemas.
10139N/A ( echo 'test -x /usr/bin/gconftool-2 || {';
10139N/A echo 'GCONF_CONFIG_SOURCE=xml:merged:/etc/gconf/gconf.xml.defaults';
10139N/A ) | $BASEDIR/var/lib/postrun/postrun -u -c JDS_wait
10139N/A test -x $BASEDIR/var/lib/postrun/postrun || exit 0
10139N/A ( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
10139N/A echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
10142N/A echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
10139N/A echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
12176N/A echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
12886N/A echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
12886N/A ) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
10139N/A %{_sysconfdir}/gconf/schemas/###FILE1###.schemas
14434N/A %{_sysconfdir}/gconf/schemas/###FILE2###.schemas
15440N/A %{_sysconfdir}/gconf/schemas/###FILE3###.schemas
15740N/A %{_sysconfdir}/gconf/schemas/###FILEn###.schemas