diff options
author | ahoka <ahoka@pkgsrc.org> | 2011-02-08 18:47:03 +0000 |
---|---|---|
committer | ahoka <ahoka@pkgsrc.org> | 2011-02-08 18:47:03 +0000 |
commit | 32c9b7bade3d5e3997455c2287a2715add244981 (patch) | |
tree | ae61310d4a45649129c3909760debf1b9400e319 | |
parent | 76403174e1e61076f05b4de8d54d96d3721b61c7 (diff) | |
download | pkgsrc-32c9b7bade3d5e3997455c2287a2715add244981.tar.gz |
Import a newer version of Flash plugin. The old one is retained,
because this version requires TLS support in Linux emulation, which
NetBSD 5.x doesnt have.
-rw-r--r-- | multimedia/adobe-flash-plugin10.1/DESCR | 10 | ||||
-rw-r--r-- | multimedia/adobe-flash-plugin10.1/INSTALL.nspluginwrapper | 20 | ||||
-rw-r--r-- | multimedia/adobe-flash-plugin10.1/Makefile | 55 | ||||
-rw-r--r-- | multimedia/adobe-flash-plugin10.1/PLIST | 2 | ||||
-rw-r--r-- | multimedia/adobe-flash-plugin10.1/distinfo | 5 | ||||
-rw-r--r-- | multimedia/adobe-flash-plugin10.1/options.mk | 24 |
6 files changed, 116 insertions, 0 deletions
diff --git a/multimedia/adobe-flash-plugin10.1/DESCR b/multimedia/adobe-flash-plugin10.1/DESCR new file mode 100644 index 00000000000..f1ca535c228 --- /dev/null +++ b/multimedia/adobe-flash-plugin10.1/DESCR @@ -0,0 +1,10 @@ +Netscape plugin for Adobe Flash player. This package contains +a plugin that enables web browsers to render the Flash format. + +The nspluginwrapper option (enabled by default) permits the use of +the the Linux x86 flash player in Firefox browsers on other x86 +systems. + +This package requires emul.linux.kern.osrelease = 2.6.18 or later. +This means this package won't work on NetBSD 5.x or older systems! + diff --git a/multimedia/adobe-flash-plugin10.1/INSTALL.nspluginwrapper b/multimedia/adobe-flash-plugin10.1/INSTALL.nspluginwrapper new file mode 100644 index 00000000000..1fac0784686 --- /dev/null +++ b/multimedia/adobe-flash-plugin10.1/INSTALL.nspluginwrapper @@ -0,0 +1,20 @@ +#!/bin/sh +# $NetBSD: INSTALL.nspluginwrapper,v 1.1.1.1 2011/02/08 18:47:03 ahoka Exp $ + +PATH=@PREFIX@/bin:$PATH + +case $STAGE in + POST-INSTALL) + nspluginwrapper -i @PREFIX@/lib/netscape/plugins/libflashplayer.so + ;; +esac + + +case $STAGE in + DEINSTALL) + for wrapped in `nspluginwrapper -l | grep ^/` ; do + nspluginwrapper -r $wrapped + done + ;; +esac + diff --git a/multimedia/adobe-flash-plugin10.1/Makefile b/multimedia/adobe-flash-plugin10.1/Makefile new file mode 100644 index 00000000000..cc14a9315d8 --- /dev/null +++ b/multimedia/adobe-flash-plugin10.1/Makefile @@ -0,0 +1,55 @@ +# $NetBSD: Makefile,v 1.1.1.1 2011/02/08 18:47:03 ahoka Exp $ + +CATEGORIES= multimedia www +#MASTER_SITES= http://download.macromedia.com/pub/labs/flashplayer10/ +MASTER_SITES= http://fpdownload.macromedia.com/get/flashplayer/current/ +#http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz +#flash-plugin-10.1.102.65-release.i386.rpm +MASTER_SITES+= ftp://www.dvo.ru/pub/Gentoo/distfiles/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://www.adobe.com/ +COMMENT= Adobe Flash Player Browser plugin +LICENSE= flash-license + +RESTRICTED= Redistribution not permitted +NO_SRC_ON_FTP= ${RESTRICTED} +NO_SRC_ON_CDROM= ${RESTRICTED} +NO_BIN_ON_FTP= ${RESTRICTED} +NO_BIN_ON_CDROM= ${RESTRICTED} + +PKG_DESTDIR_SUPPORT= user-destdir + +WRKSRC= ${WRKDIR} +BUILD_DIRS= # empty +DIST_SUBDIR= flash/${FLASH_VERS} + +CRYPTO= yes + +EMUL_PLATFORMS= linux-i386 +EMUL_MODULES.linux= compat gtk2 x11 krb5 +EMUL_REQD= suse>=10.0 + +.include "../../mk/bsd.prefs.mk" + +# Defaults so lintpkgsrc is happy +FLASH_VERS= 10.1.102.65 +#FLASH_VERS= 10.0.0.525 +.if ${EMUL_PLATFORM} == "linux-i386" +DISTUNAME= linux +DISTNAME= install_flash_player_10_${DISTUNAME} +WRKNAME= install_flash_player_10_${DISTUNAME} +.endif + +CONFLICTS= ns-flash-[0-9]* +PKGNAME= adobe-flash-plugin-${FLASH_VERS:S/r/./} + +NS_PLUGINS_DIR= ${PREFIX}/lib/netscape/plugins + +.include "options.mk" + +do-install: + ${INSTALL_DATA_DIR} ${DESTDIR}${NS_PLUGINS_DIR} + ${INSTALL_DATA} ${WRKSRC}/libflashplayer.so ${DESTDIR}${NS_PLUGINS_DIR} + +.include "../../mk/bsd.pkg.mk" diff --git a/multimedia/adobe-flash-plugin10.1/PLIST b/multimedia/adobe-flash-plugin10.1/PLIST new file mode 100644 index 00000000000..8ee0fb5b25a --- /dev/null +++ b/multimedia/adobe-flash-plugin10.1/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2011/02/08 18:47:03 ahoka Exp $ +lib/netscape/plugins/libflashplayer.so diff --git a/multimedia/adobe-flash-plugin10.1/distinfo b/multimedia/adobe-flash-plugin10.1/distinfo new file mode 100644 index 00000000000..37bd8f2aab0 --- /dev/null +++ b/multimedia/adobe-flash-plugin10.1/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2011/02/08 18:47:03 ahoka Exp $ + +SHA1 (flash/10.1.102.65/install_flash_player_10_linux.tar.gz) = d7addfbb4a541817933d195fd20718aaa7c6ffcc +RMD160 (flash/10.1.102.65/install_flash_player_10_linux.tar.gz) = b86be76ccfc25e0571f80a4c74e49c0196f2486a +Size (flash/10.1.102.65/install_flash_player_10_linux.tar.gz) = 4911328 bytes diff --git a/multimedia/adobe-flash-plugin10.1/options.mk b/multimedia/adobe-flash-plugin10.1/options.mk new file mode 100644 index 00000000000..92e3ffecbeb --- /dev/null +++ b/multimedia/adobe-flash-plugin10.1/options.mk @@ -0,0 +1,24 @@ +# $NetBSD: options.mk,v 1.1.1.1 2011/02/08 18:47:03 ahoka Exp $ +# + +PKG_OPTIONS_VAR= PKG_OPTIONS.ns-flash +PKG_SUPPORTED_OPTIONS= nspluginwrapper + +# XXXX: If nspluginwrapper is enabled and this package is installed after +# firefox (or similar) it will install a system wide wrapped plugin into +# @PREFIX/lib/<browser>/plugins. If it is installed before a browser +# it will install a plugin for the current user in ~/.mozilla/plugins/ +# or similar. This is inconsistant and potentially confusing. + +.if ${MACHINE_ARCH} == "i386" && ${OPSYS} != "Linux" +PKG_SUGGESTED_OPTIONS= nspluginwrapper +.endif + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mnspluginwrapper) +DEPENDS+= nspluginwrapper>0:../../www/nspluginwrapper +DEPENDS+= libflashsupport{,-pulse}>0:../../multimedia/libflashsupport +INSTALL_TEMPLATES+= ${PKGDIR}/INSTALL.nspluginwrapper +DEINSTALL_TEMPLATES+= ${PKGDIR}/INSTALL.nspluginwrapper +.endif |