Le mar 15/06/2004 à 12:52, Josselin Mouette a écrit : > You will find attached the patch I'm using, it seems to work fine. Your > script only needs to send kill -HUP `pidof gconfd-2`, so that's not a > big change. It is safe to use it with the current gconf2 packages too, > as SIGHUP currently equals to SIGTERM in the signal handler. > > The corresponding package is also available on the alioth repository: > http://pkg-gnome.alioth.debian.org/debian/pool/g/gconf2/ I've updated the package there (2.6.1-4) so that it also allows the move of defaults files to /var/lib/gconf/defaults. It also introduces a /etc/gconf/system.defaults for sysadmin and package use: instead of patching the schemas, you should insert the defaults here. You will find attached the corresponding debhelper scripts. If anyone has time, please test them with several packages using gconf. Using them, the packages should be completely FHS-compliant (schemas in /usr, defaults in /var) and the daemon should be forced to reload their databases after the upgrade. -- .''`. Josselin Mouette /\./\ : :' : josselin.mouette@ens-lyon.org `. `' joss@debian.org `- Debian GNU/Linux -- The power of freedom
Attachment:
dh_gconf
Description: Perl program
if [ "$1" = "configure" ]; then SCHEMA_LOCATION=/usr/share/gconf/schemas SCHEMA_FILES="#SCHEMAS#" for SCHEMA in $SCHEMA_FILES; do if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then HOME=/root \ GCONF_CONFIG_SOURCE="xml::/var/lib/gconf/defaults" \ gconftool-2 \ --makefile-install-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null fi done # Force the reload of databases by all running gconfd instances kill -HUP `pidof gconfd-2` fi
if [ "$1" = remove ] || [ "$1" = upgrade ]; then SCHEMA_LOCATION=/usr/share/gconf/schemas SCHEMA_FILES="#SCHEMAS#" for SCHEMA in $SCHEMA_FILES; do if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then HOME=/root \ GCONF_CONFIG_SOURCE="xml::/var/lib/gconf/defaults" \ gconftool-2 \ --makefile-uninstall-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null fi done fi # TODO: remove old schemas in /etc
Attachment:
signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e=2E?=