Sophie

Sophie

distrib > Momonga > development > i686 > media > os > by-pkgid > fa99910cd491c0e22ff9940004c1a64f > scriptlet

wireshark-gtk-2.6.4-1m.mo8.i686.rpm

PREIN

/bin/sh
if [ -f /usr/sbin/wireshark ]; then
	rm -f /usr/sbin/wireshark
fi

# If we have a pre-alternatives wireshark binary out there, get rid of it.
# (With 'alternatives' /usr/sbin/wireshark should be a symlink.)

POSTIN

/bin/sh
update-desktop-database /usr/share/applications &> /dev/null || :
update-mime-database  /usr/share/mime &> /dev/null || :
touch --no-create /usr/share/icons/gnome &>/dev/null || :
touch --no-create /usr/share/icons/hicolor &>/dev/null || :
touch --no-create /usr/share/mime/packages &> /dev/null || :
gtk-update-icon-cache -t /usr/share/icons/hicolor &>/dev/null || :
/usr/sbin/update-alternatives --install /usr/sbin/wireshark \
	wireshark /usr/sbin/wireshark-gtk 10

POSTUN

/bin/sh
update-desktop-database &> /dev/null || :
if [ $1 -eq 0 ] ; then
	touch --no-create /usr/share/icons/gnome &>/dev/null
	gtk-update-icon-cache /usr/share/icons/gnome &>/dev/null || :

	touch --no-create /usr/share/icons/hicolor &>/dev/null
	gtk-update-icon-cache /usr/share/icons/hicolor &>/dev/null || :

        touch --no-create /usr/share/mime/packages &> /dev/null || :
        update-mime-database  /usr/share/mime &> /dev/null || :

	/usr/sbin/update-alternatives --remove wireshark /usr/sbin/wireshark-gtk
fi