# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-www/netscape-flash/netscape-flash-10.0.21.1_alpha.ebuild,v 1.1 2008/12/21 15:55:31 lack Exp $ EAPI=1 inherit nsplugins DESCRIPTION="Adobe Flash Player" SRC_URI="http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.d21.1.linux-x86_64.so.tar.gz" HOMEPAGE="http://www.adobe.com/" IUSE="" SLOT="0" # Keeps -x86 around as a placeholder for now - Some day we'll have the same # version for both arches... I hope. KEYWORDS="-* -x86 ~amd64" LICENSE="AdobeFlash-10" RESTRICT="strip mirror" S="${WORKDIR}" RDEPEND="x11-libs/gtk+:2 media-libs/fontconfig dev-libs/nss net-misc/curl >=sys-libs/glibc-2.4 || ( media-fonts/liberation-fonts media-fonts/corefonts )" QA_EXECSTACK="opt/netscape/plugins/libflashplayer.so" src_install() { exeinto /opt/netscape/plugins doexe libflashplayer.so inst_plugin /opt/netscape/plugins/libflashplayer.so # The magic config file! insinto "/etc/adobe" doins "${FILESDIR}/mms.cfg" } pkg_postinst() { ewarn "Flash player is closed-source, with a long history of security" ewarn "issues. Please consider only running Flash applets you know to" ewarn "be safe." if has_version 'www-client/mozilla-firefox' || \ has_version 'www-client/mozilla-firefox-bin'; then elog "The Firefox 'flashblock' extension may help:" elog " https://addons.mozilla.org/en-US/firefox/addon/433" fi if has_version 'kde-base/konqueror'; then elog "Konqueror users: You may need to follow the instructions here:" elog " http://dev.gentoo.org/~lack/konqueror-flash.xml" elog "For Flash to work with your browser." fi if has_version 'net-www/nspluginwrapper'; then elog "If you were using nspluginwrapper for this plugin, you may want" elog "to run 'nspluginwrapper -a -u' as root to clear out any old" elog "wrappers." fi if has_version 'www-client/mozilla-firefox-bin'; then eerror "This 64-bit plugin will not work with a 32-bit firefox." eerror "If you wish to continue using flash with firefox-bin, you should" eerror "mask this version:" eerror " =${CATEGORY}/${P}" eerror "And re-emerge netscape-flash" fi }