Sophie

Sophie

distrib > Mandriva > 2007.0 > x86_64 > media > main-release > by-pkgid > 4b6776d8084123af34df140e5316ef80 > scriptlet

ekiga-2.0.3-1mdv2007.0.x86_64.rpm

PREUN

/bin/sh
if [ -r /etc/gconf/schemas/gnomemeeting.schemas -a -x /usr/bin/gconftool-2 ]; then
GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/gnomemeeting.schemas > /dev/null
  update-alternatives --remove webcam.kde.dynamic /etc/dynamic/launchers/webcam/gnomemeeting.desktop
  update-alternatives --remove webcam.gnome.dynamic /etc/dynamic/launchers/webcam/gnomemeeting.desktop
fi
if [ "$1" = "0" -a -x /usr/bin/gconftool-2 ]; then 
export GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` && 
for SCHEMA in ekiga ; do 
  /usr/bin/gconftool-2 --makefile-uninstall-rule  /etc/gconf/schemas/$SCHEMA.schemas > /dev/null || true 
done ; fi

POSTIN

/bin/sh
if [ -x /usr/bin/gconftool-2 ]; then 
export GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` &&  
for SCHEMA in ekiga ; do 
  /usr/bin/gconftool-2 --makefile-install-rule /etc/gconf/schemas/$SCHEMA.schemas > /dev/null || true 
done ; fi 
if [ -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi 


update-alternatives --install /etc/dynamic/launchers/webcam/kde.desktop webcam.kde.dynamic /etc/dynamic/launchers/webcam/ekiga.desktop 40
update-alternatives --install /etc/dynamic/launchers/webcam/gnome.desktop webcam.gnome.dynamic /etc/dynamic/launchers/webcam/ekiga.desktop 40
if [ -x /usr/bin/scrollkeeper-update ]; then 
/usr/bin/scrollkeeper-update -q || true ; fi

POSTUN

/bin/sh
if [ "$1" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi 

if [ "$1" = "0" -a -x /usr/bin/scrollkeeper-update ]; 
then /usr/bin/scrollkeeper-update -q || true ; fi 


if [ "$1" = "0" ]; then
  update-alternatives --remove webcam.kde.dynamic /etc/dynamic/launchers/webcam/ekiga.desktop
  update-alternatives --remove webcam.gnome.dynamic /etc/dynamic/launchers/webcam/ekiga.desktop
fi