Sophie

Sophie

distrib > Mageia > 5 > i586 > media > nonfree-updates > by-pkgid > b3da72785a7a130ce14fe22e5e81c4fe > scriptlet

flash-player-plugin-kde-26.0.0.126-1.mga5.nonfree.i586.rpm

PREIN

/bin/sh
# When installing both main package and -kde, failure of %pre of main package
# can prevent installation of it, but urpmi/rpm will try to install -kde
# regardless. FIXME.
# For now, workaround it by preventing -kde installation as well:
[ -e /usr/share/flash-player-plugin/functions ] && [ -e /var/lib/flash-player-plugin/flash-player-npapi-26.0.0.126-release.i386.rpm ]

POSTIN

/bin/sh
FILE1_SRC="usr/lib/kde4/kcm_adobe_flash_player.so"
FILE1_DST="/usr/lib/kde4/kcm_adobe_flash_player.so"
FILE1_PRM="0755"
FILE2_SRC="usr/share/kde4/services/kcm_adobe_flash_player.desktop"
FILE2_DST="/usr/share/kde4/services/kcm_adobe_flash_player.desktop"
FILE2_PRM="0644"
FILE3_SRC=

. /usr/share/flash-player-plugin/functions
tar_extract

sed -i 's,=personal,=network-and-connectivity,' /usr/share/kde4/services/kcm_adobe_flash_player.desktop 2>/dev/null || :