Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > a4625520469ae75b96dc248a99816313 > scriptlet

imsettings-0.108.1-2.fc14.i686.rpm

PREIN

/bin/sh

if [ "$1" -gt 1 ] ; then 
    rm -rf /var/lib/rpm-state/gconf/* 
    for schema in imsettings-applet ; do 
        if test -f /etc/gconf/schemas/"$schema".schemas ; then 
            cp -p /etc/gconf/schemas/"$schema".schemas /var/lib/rpm-state/gconf/ || : 
        fi 
    done 
fi 
#if [ "$1" -gt 1 ]; then
#	export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
#	if [ -f /etc/gconf/schemas/imsettings-applet.schemas ]; then
#		gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/imsettings-applet.schemas > /dev/null || :
#	fi
#fi

PREUN

/bin/sh

if [ "$1" -eq 0 ] ; then 
    for schema in imsettings-applet ; do 
        
        if test -f /etc/gconf/schemas/"$schema".schemas ; then 
            export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 
            gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/"$schema".schemas > /dev/null || : 
        fi 
    done 
fi 
#if [ "$1" -eq 0 ]; then
#	export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
#	gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/imsettings-applet.schemas > /dev/null || :
#fi

POSTIN

/bin/sh

for schema in imsettings-applet ; do 
    if test -f /var/lib/rpm-state/gconf/"$schema".schemas ; then 
        cmp --quiet /etc/gconf/schemas/"$schema".schemas /var/lib/rpm-state/gconf/"$schema".schemas 
        if test $? != 0; then
            
        if test -f /etc/gconf/schemas/"$schema".schemas ; then 
            export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 
            gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/"$schema".schemas > /dev/null || : 
        fi 
            export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 
            gconftool-2 --makefile-install-rule /etc/gconf/schemas/"$schema".schemas > /dev/null || : 
        fi 
        rm -f /var/lib/rpm-state/gconf/"$schema".schemas 
    else 
        export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 
        gconftool-2 --makefile-install-rule /etc/gconf/schemas/"$schema".schemas > /dev/null || : 
    fi 
done 
#export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
#gconftool-2 --makefile-install-rule /etc/gconf/schemas/imsettings-applet.schemas > /dev/null || :
alternatives --install /etc/X11/xinit/xinputrc xinputrc /etc/X11/xinit/xinput.d/none.conf 10
alternatives --install /etc/X11/xinit/xinputrc xinputrc /etc/X11/xinit/xinput.d/xim.conf 30
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig > /dev/null 2>&1 || :

POSTUN

/bin/sh
if [ "$1" = 0 ]; then
	alternatives --remove xinputrc /etc/X11/xinit/xinput.d/none.conf
	alternatives --remove xinputrc /etc/X11/xinit/xinput.d/xim.conf
	dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig > /dev/null 2>&1 || :
fi