[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

New dh_gconf



Hi all,

Attached is a new dh_gconf and relevant maintainer scripts.  If people
could have a look over it and check it does the right thing etc, I'll
mail it to Joey.

Josselin is currently looking at patching gconfd so that sending a HUP
to gconfd will restart it without killing it, which would be much nicer
than the ugly kill I'm currently using.

Ross
-- 
Ross Burton                                 mail: ross@burtonini.com
                                          jabber: ross@burtonini.com
                                     www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF

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=`gconftool-2 --get-default-source` \
				gconftool-2 \
				--makefile-install-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null
		fi
	done

	# Truly evil...
	kill `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=`gconftool-2 --get-default-source` \
				gconftool-2 \
					--makefile-uninstall-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null
		fi
	done
fi

# TODO: remove old schemas in /etc

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: