Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > 8ffb1a3a064ef76070b8051e06018316 > scriptlet

flash-player-plugin-kde-11.2.202.577-1.mga5.nonfree.x86_64.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-plugin-11.2.202.577-release.x86_64.rpm ]

POSTIN

/bin/sh
FILE1_SRC="usr/lib64/kde4/kcm_adobe_flash_player.so"
FILE1_DST="/usr/lib64/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 || :