summaryrefslogtreecommitdiff
path: root/www-plugins/adobe-flash
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /www-plugins/adobe-flash
reinit the tree, so we can have metadata
Diffstat (limited to 'www-plugins/adobe-flash')
-rw-r--r--www-plugins/adobe-flash/Manifest11
-rw-r--r--www-plugins/adobe-flash/adobe-flash-27.0.0.130-r1.ebuild140
-rw-r--r--www-plugins/adobe-flash/files/mms.cfg117
-rw-r--r--www-plugins/adobe-flash/files/pepper-flash1
-rw-r--r--www-plugins/adobe-flash/files/pepper-flash-r11
-rw-r--r--www-plugins/adobe-flash/metadata.xml15
6 files changed, 285 insertions, 0 deletions
diff --git a/www-plugins/adobe-flash/Manifest b/www-plugins/adobe-flash/Manifest
new file mode 100644
index 000000000000..7afbba0510d5
--- /dev/null
+++ b/www-plugins/adobe-flash/Manifest
@@ -0,0 +1,11 @@
+AUX mms.cfg 4420 SHA256 0dd2a9f9aab559243c4d282b5c143ed8876b8d6f8be519bfa8ca6e8fc0c55d9a SHA512 597380071a06176f09df1a56cba24e83a74990c175fe9f167f026eacbf01e66a083d2389ff399ead0a39654a40ae636f8459feed2d6012e51e65c5407fe7fdbd WHIRLPOOL 915b86d717db181a776eb9392aaae2becac4747bc0e551900bfecdeda17f9d0495f54c7173e47adf2ea92567c193c466e302cac78bd2126f10fd9956c204596a
+AUX pepper-flash 151 SHA256 11a3e7e2c04f1e55ee5db5e7e776db67b6830431f1c10423df5031033c4480d1 SHA512 f20176b9567097482c3b1fdd062affb33a69b671f6298a98cd58e03ca80dd01bada4126ac5fd940fddc53a097669f52d4b8bba7850daf211e11dc24cc4d97eb1 WHIRLPOOL 5e6c3dccc897e8d6628422351f77f16363a9c86f851fb6848651a71b59bef450067d1de1fb8b55870ca5dc88b6a70f1f04818ce41b6ccc6dd50db43f223cb838
+AUX pepper-flash-r1 143 SHA256 ba069eab3ee17b93cab566c73d94e56e6225dc7094c75925bbe0597cba2dd8f6 SHA512 e4e1c1f204af1e5ce531dd43a22b4cd08e8def1099bba88ac96af09bd0879dfbb6383653ec85d5d199d418098e4b17d71998bee5a9fb5bb7bd8873432a4f66ee WHIRLPOOL 5d6a1c12120519bf524da7dafa508bdaaf65d98874b09ec76925fcfe51ccdfa5886afc228a131a267c237aae0d293609963a76ac6301273da563aea396fae8b5
+DIST adobe-flash-27.0.0.130-npapi.i386.tar.gz 8511696 SHA256 4615bec6a21822629ce7e0f5bf768ef12fe09c275f4bb18892563da20d9b7c62 SHA512 441398beccf1ec0772ef150ef13d46f374261963cdfb806f3518ff517125a9d19b0258f4200edbfd108709962e1e2fa49f3d8d65b79d391d15bc0f09d885d934 WHIRLPOOL 6a6ddb254b4945481edeaa29c879c74b042e9a9affef312a552541e0301a2d15ca3069532c8715ab68745113ecc39192dbe6a591d4a679ba6adab49c4ae1b9a6
+DIST adobe-flash-27.0.0.130-npapi.x86_64.tar.gz 9024933 SHA256 ecbd2254a68c7b0bb7675babe58cbe1b5f317bd2556ba49776eb3a6cd9526d62 SHA512 2574cd3fb707c8d32e54179bbf900ca47c875be3540c8016fad50f51721d5fc4bcf22b552ae71efdb1e78cc135163d0a2326c9569e49b9da7498eb971deabc78 WHIRLPOOL 1632fdb623fa0be0603d4866fbc4d7a31b76e1b813cbc429e8e81bc31ccc7df8e28a2e8031e6045dd34dc6130ab4821d62fedc6d0e44050ffd485c9749ae1bc0
+DIST adobe-flash-27.0.0.130-ppapi.i386.tar.gz 8544908 SHA256 c23a0c1a73872851b4e8879e713331242c0b17c73ccd57a29c17c94f3732920e SHA512 3c6036ebe87cbdca7a3baee8e651cf9e4de7b87600ae8631d516eeb30de8a309c2e2b1e0306a3d1a815a62e9116f0321fd5ece99a2dbacf41d3f350d57ca7079 WHIRLPOOL 700767b7fcf49949df24ac2ab78117703c9598445188cb3c5c8c56d7a3bcc81f6ecaa4ef267c939af7bc56b1b498d547ff7a3c14966f9a483fd01485b8d65cdb
+DIST adobe-flash-27.0.0.130-ppapi.x86_64.tar.gz 9462243 SHA256 3a9a860a42770547e0fc3c9f4c6fd6b539c122b0a9ee5bd65c9b9cd25541a752 SHA512 d88b39f4800be6e936adbe44a42cea7fe58fd82d101aeb6ee5d4722cf08e7113d41b57ff289af9ccb4b52dfed077e37a53527201a90c69e2f3fee17fedab0268 WHIRLPOOL aadeae7946dccf19d13bb3660d8ce823b2cc98384e141dcd92942dc4cee5bb34b2a591afef063ff53b6d9b4d4dfb89fa65a8d2ad50b9e4f69c356384f11c0b36
+EBUILD adobe-flash-27.0.0.130-r1.ebuild 3662 SHA256 3570c49588306152c5b948b0580bb09dc116612847083fa8f7c6cb3956913ca8 SHA512 738b9fe87e14b9988ad5e6f1bdb822c346d12f3e076f7116d47da5a9dde237f9c24fd2a900f27368afe8677c4550498b5ae88aa49b05a0c3f65eb6bc524d0ce2 WHIRLPOOL 2eff0595978d8ba39a4bd188001bd2a1d29918a05177c8376e20903cfbe2502cca63f7d65e191223bfab6af3ab49d296cd3ee86766a0c59a2dbb215059e450f2
+MISC ChangeLog 19725 SHA256 51730527e3ec07f604d9e4a72c46812d4e74d54cca7be31b4749114a0ea06469 SHA512 e90b8aa631e8b712d9e21b92d8fcaf3424fd980f02e4fd49d4ba8313fa39fe03614dbe543388d30e2699c9337002a317181dbce7eba26797b9222771d5e037ee WHIRLPOOL dcc29670fdc523529ec3effd6a66d76acbe587dc27f92c06df0ebbb769de2a5681f0ce752a28f910dee07ba0e354d793e2106c656a6ae4f354a228fbc4fa394b
+MISC ChangeLog-2015 67768 SHA256 91f0f06fcbe289262a35973afbcd69d1bdffb44f4441691c7887c42af8917fe8 SHA512 8927c851e0f9c26b9b84e1e34bee5face5438ef5b24545c34e6935644e891af3b2370c6f86386b7ed0cc8b3db95abd4fb146ca6b9385cd1e5c7cdada7e636608 WHIRLPOOL 14eb442ffd605c627270f02b165089ea49f2d74efd2ccffa7257d01e70ad7909cbd97e986439f42cd63f74e63f83bce1e3bd954b518baef46d57c83d5167a0d4
+MISC metadata.xml 552 SHA256 42e93934d6f1e16047031c14a943089c82250ff7ccb454aff6452923d0122bd0 SHA512 0f84cf3e517eb92f73629e6a157a2999f409fa6dea40682e2248edeb957e5bc6f5228c49aebdc3b5d434d0fd8f717a19c793aee8776397871e1bc5ebf8cf7fa1 WHIRLPOOL 868fa181f1427a2b557d953ffc7930468e091f2dc9d0244f2ab2d3bbd0f62e5ad8c3bb532371c7a0d90d5d4cbd14f72a139d690a836d286c9bd83d96678149c5
diff --git a/www-plugins/adobe-flash/adobe-flash-27.0.0.130-r1.ebuild b/www-plugins/adobe-flash/adobe-flash-27.0.0.130-r1.ebuild
new file mode 100644
index 000000000000..ce9885dfe11b
--- /dev/null
+++ b/www-plugins/adobe-flash/adobe-flash-27.0.0.130-r1.ebuild
@@ -0,0 +1,140 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2-utils nsplugins multilib multilib-minimal
+
+DESCRIPTION="Adobe Flash Player"
+HOMEPAGE="
+ https://www.adobe.com/products/flashplayer.html
+ https://get.adobe.com/flashplayer/
+ https://helpx.adobe.com/security/products/flash-player.html
+"
+
+AF_URI="https://fpdownload.adobe.com/pub/flashplayer/pdc/${PV}"
+AF_NP_32_URI="${AF_URI}/flash_player_npapi_linux.i386.tar.gz -> ${P}-npapi.i386.tar.gz"
+AF_NP_64_URI="${AF_URI}/flash_player_npapi_linux.x86_64.tar.gz -> ${P}-npapi.x86_64.tar.gz"
+AF_PP_32_URI="${AF_URI}/flash_player_ppapi_linux.i386.tar.gz -> ${P}-ppapi.i386.tar.gz"
+AF_PP_64_URI="${AF_URI}/flash_player_ppapi_linux.x86_64.tar.gz -> ${P}-ppapi.x86_64.tar.gz"
+
+IUSE="+nsplugin +ppapi"
+REQUIRED_USE="
+ || ( nsplugin ppapi )
+"
+
+SRC_URI="
+ nsplugin? (
+ abi_x86_32? ( ${AF_NP_32_URI} )
+ abi_x86_64? ( ${AF_NP_64_URI} )
+ )
+ ppapi? (
+ abi_x86_32? ( ${AF_PP_32_URI} )
+ abi_x86_64? ( ${AF_PP_64_URI} )
+ )
+"
+SLOT="22"
+
+KEYWORDS="-* amd64 x86"
+LICENSE="AdobeFlash-11.x"
+RESTRICT="strip mirror"
+
+NPAPI_RDEPEND="
+ dev-libs/atk[${MULTILIB_USEDEP}]
+ dev-libs/glib:2[${MULTILIB_USEDEP}]
+ dev-libs/nspr[${MULTILIB_USEDEP}]
+ dev-libs/nss[${MULTILIB_USEDEP}]
+ media-libs/fontconfig[${MULTILIB_USEDEP}]
+ media-libs/freetype[${MULTILIB_USEDEP}]
+ >=sys-libs/glibc-2.4
+ x11-libs/cairo[${MULTILIB_USEDEP}]
+ x11-libs/gdk-pixbuf[${MULTILIB_USEDEP}]
+ x11-libs/gtk+:2[${MULTILIB_USEDEP}]
+ x11-libs/libX11[${MULTILIB_USEDEP}]
+ x11-libs/libXcursor[${MULTILIB_USEDEP}]
+ x11-libs/libXext[${MULTILIB_USEDEP}]
+ x11-libs/libXrender[${MULTILIB_USEDEP}]
+ x11-libs/libXt[${MULTILIB_USEDEP}]
+ x11-libs/pango[${MULTILIB_USEDEP}]
+"
+RDEPEND="
+ !www-plugins/chrome-binary-plugins[flash(-)]
+ nsplugin? (
+ ${NPAPI_RDEPEND}
+ !www-plugins/adobe-flash:0
+ )
+"
+
+S="${WORKDIR}"
+
+# Ignore QA warnings in these closed-source binaries, since we can't fix them:
+QA_PREBUILT="usr/*"
+
+src_unpack() {
+ local files=( ${A} )
+
+ multilib_src_unpack() {
+ mkdir -p "${BUILD_DIR}" || die
+ cd "${BUILD_DIR}" || die
+
+ # we need to filter out the other archive(s)
+ local other_abi
+ [[ ${ABI} == amd64 ]] && other_abi=i386 || other_abi=x86_64
+ unpack ${files[@]//*${other_abi}*/}
+ }
+
+ multilib_parallel_foreach_abi multilib_src_unpack
+}
+
+multilib_src_install() {
+ local pkglibdir=lib
+ [[ -d usr/lib64 ]] && pkglibdir=lib64
+
+ if use nsplugin; then
+ # PLUGINS_DIR comes from nsplugins.eclass
+ exeinto /usr/$(get_libdir)/${PLUGINS_DIR}
+ doexe libflashplayer.so
+
+ if multilib_is_native_abi; then
+ # No KDE applet, so allow the GTK utility to show up in KDE:
+ sed \
+ -i usr/share/applications/flash-player-properties.desktop \
+ -e "/^NotShowIn=KDE;/d" || die
+
+ # The userland 'flash-player-properties' standalone app:
+ dobin usr/bin/flash-player-properties
+
+ # Icon and .desktop for 'flash-player-properties'
+ insinto /usr/share
+ doins -r usr/share/{icons,applications}
+ dosym ../icons/hicolor/48x48/apps/flash-player-properties.png \
+ /usr/share/pixmaps/flash-player-properties.png
+ fi
+
+ # The magic config file!
+ insinto "/etc/adobe"
+ doins "${FILESDIR}/mms.cfg"
+ fi
+
+ if use ppapi; then
+ exeinto /usr/$(get_libdir)/chromium/PepperFlash
+ doexe libpepflashplayer.so
+ insinto /usr/$(get_libdir)/chromium/PepperFlash
+ doins manifest.json
+
+ if multilib_is_native_abi; then
+ dodir /etc/chromium
+ sed "${FILESDIR}"/pepper-flash-r1 \
+ -e "s|@FP_LIBDIR@|$(get_libdir)|g" \
+ -e "s|@FP_PV@|${PV}|g" \
+ > "${D}"/etc/chromium/pepper-flash \
+ || die
+ fi
+ fi
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/www-plugins/adobe-flash/files/mms.cfg b/www-plugins/adobe-flash/files/mms.cfg
new file mode 100644
index 000000000000..3d53391eb7b8
--- /dev/null
+++ b/www-plugins/adobe-flash/files/mms.cfg
@@ -0,0 +1,117 @@
+#
+# /etc/adobe/mms.cfg: Adobe Flash privacy and security settings
+#
+# For more details on the meaning of most of these options, please visit:
+# http://www.adobe.com/devnet/flashplayer/articles/flash_player_admin_guide.html
+#
+
+# Lets you prevent users from designating any files on the local file system as
+# trusted
+# 0 = Not Allowed, 1 = Allowed (default)
+#AllowUserLocalTrust = 1
+
+# Lets you specify a hard limit on the amount of local storage that Flash Player
+# uses for the storage of common Flash components
+# Size in megabytes (default is 20), 0 = Component storage disabled
+#AssetCacheSize = 20
+
+# Lets you prevent Flash Player from automatically checkingfor and installing
+# updated versions
+# 0 = Not Disabled (default), 1 = Disabled
+AutoUpdateDisable = 1
+
+# Lets you specify how often to check for an updated version of Flash Player
+# Number of days, 0 = Every startup
+# There is no default value, which falls back to the user's setting (30 days by
+# default)
+#AutoUpdateInterval =
+
+# Lets you prevent SWF files from accessing webcams or microphones
+# 0 = Not Disabled (default), 1 = Disabled
+#AVHardwareDisable = 0
+
+# Lets you prevent information on installed fonts from being displayed
+# 0 = Not Disabled (default), 1 = Disabled
+#DisableDeviceFontEnumeration = 0
+
+# Lets you prevent networking or file system access if any kind
+# Set to the executable filename, default is empty
+#DisableNetworkAndFilesystemInHostApp =
+
+# Lets you prevent native code applications that are digitally signed and
+# delivered by Adobe from being downloaded
+# 0 = Not Disabled (default), 1 = Disabled
+#DisableProductDownload = 0
+
+# Lets you enable or disable the use of the Socket.connect() and
+# XMLSocket.connect() methods
+# 0 = Not Disabled (default), 1 = Disabled
+#DisableSockets = 0
+
+# Lets you create a whitelist of servers to which socket connections are allowed
+# Set to hostname or IP address. This can be specified multiple times in this
+# file to allow more than one host, and only takes effect if DisableSockets
+# (above) is set to 1.
+#EnableSocketsTo = localhost.localdomain
+#EnableSocketsTo = 127.0.0.1
+
+# Lets you prevent the ActionScript FileReference API from performing file
+# downloads
+# 0 = Not Disabled (default), 1 = Disabled
+#FileDownloadDisable = 0
+
+# Lets you prevent the ActionScript FileReference API from prerforming file
+# uploads
+# 0 = Not Disabled (default), 1 = Disabled
+#FileUploadDisable = 0
+
+# Lets you disable SWF files playing via a browser plug-in from being displayed
+# in full-screen mode
+# 0 = Not Disabled (default), 1 = Disabled
+#FullScreenDisable = 0
+
+# Lets you specify whether SWF files produced for Flash Player 6 and earlier can
+# execute an operation that has been restricted in a newer version of Flash
+# Player
+# 0 = Deny, 1 = Allow
+# There is no default value, which falls back to the user's setting (Defaults to
+# "Ask"
+#LegacyDomainMatching =
+
+# Lets you specify how Flash Player should determine whether to execute certain
+# local SWF files that were originally produced for Flash Player 7 and earlier
+# 0 = Deny, 1 = Allow
+# There is no default value, which falls back to the user's setting
+#LocalFileLegacyAction =
+
+# Lets you prevent local SWF files from having read access to files on local
+# drive
+# 0 = Not Disabled (default), 1 = Disabled
+#LocalFileReadDisable = 0
+
+# Lets you specify a hard limit on the amout of local storage that Flash Player
+# uses (per domain) for persistent shared objects
+# 1 = no storage, 2 = 10KB, 3 = 100KB, 4 = 1MB, 5 = 10MB,
+# 6 = User specified (default)
+# If the user does not specify a limit, the default is 100KB.
+#LocalStorageLimit = 6
+
+# Lets you override GPU validation checks to force hardware acceleration
+# Warning: This may make your player (more) unstable!
+# 0 = Check GPU (default), 1 = Skip checks
+# More details:
+# http://blogs.adobe.com/penguin.swf/2008/08/secrets_of_the_mmscfg_file_1.html
+#OverrideGPUValidation = 0
+
+# Lets you specify whether third-party SWF files can read and write locally
+# persistent shared objects
+# 0 = disabled, 1 = enabled
+# There is no default value, which falls back to the user's setting
+#ThirdPartyStorage =
+
+# Lets you disable "Windowless" mode, which may cause crashes in firefox
+# version 3.01 and earlier.
+# 0 = Not Disabled (default), 1 = Disabled
+# More details:
+# http://blogs.adobe.com/penguin.swf/2008/08/windowless_mode_fix.html
+#WindowlessDisable = 0
diff --git a/www-plugins/adobe-flash/files/pepper-flash b/www-plugins/adobe-flash/files/pepper-flash
new file mode 100644
index 000000000000..31b55752e1a1
--- /dev/null
+++ b/www-plugins/adobe-flash/files/pepper-flash
@@ -0,0 +1 @@
+CHROMIUM_FLAGS="${CHROMIUM_FLAGS} --ppapi-flash-path=/usr/@FP_LIBDIR@/chromium-browser/PepperFlash/libpepflashplayer.so --ppapi-flash-version=@FP_PV@"
diff --git a/www-plugins/adobe-flash/files/pepper-flash-r1 b/www-plugins/adobe-flash/files/pepper-flash-r1
new file mode 100644
index 000000000000..b70c40c91830
--- /dev/null
+++ b/www-plugins/adobe-flash/files/pepper-flash-r1
@@ -0,0 +1 @@
+CHROMIUM_FLAGS="${CHROMIUM_FLAGS} --ppapi-flash-path=/usr/@FP_LIBDIR@/chromium/PepperFlash/libpepflashplayer.so --ppapi-flash-version=@FP_PV@"
diff --git a/www-plugins/adobe-flash/metadata.xml b/www-plugins/adobe-flash/metadata.xml
new file mode 100644
index 000000000000..e3e8fa04213f
--- /dev/null
+++ b/www-plugins/adobe-flash/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+<email>jer@gentoo.org</email>
+</maintainer>
+<maintainer type="project">
+<email>desktop-misc@gentoo.org</email>
+<name>Gentoo Desktop Miscellaneous Project</name>
+</maintainer>
+<use>
+<flag name="nsplugin">Install the Netscape Flash API plugin (for Firefox and similar browsers)</flag>
+<flag name="ppapi">Install the Pepper Flash API plugin (for Chrome and similar browsers)</flag>
+</use>
+</pkgmetadata>