Fri Mar 17 21:56:29 2017 UTC ()
Re-import multimedia/adobe-flash-player24 as multimedia/adobe-flash-player
for future major version bump with compatibility.
We had multiple adobe-flash-plugin versions in the past because
newer 11.x versions didn't work on older (4.x) NetBSD systems.
However I guess Adobe will not put aggressive changes that require
newer Linux kernel version (i.e. emul.linux.kern.osrelease on NetBSD)
in future periodical major updates, as per their announcements:
https://blogs.adobe.com/flashplayer/2016/08/beta-news-flash-player-npapi-for-linux.html
> Because this change is primarily a security initiative, some features
> (like GPU 3D acceleration and premium video DRM) will not be fully
> implemented.
No objection on pkgsrc-users@:
http://mail-index.netbsd.org/pkgsrc-users/2017/03/14/msg024523.html
Also ok'ed by gdt@ in private mail.
---
NPAPI Adobe Flash player plugin for the Firefox browser.
This package contains a plugin that enables web browsers to render
the Flash format.
The nspluginwrapper option (enabled by default on non Linux platforms)
permits the use of the the Linux x86 and x86_64 flash player in Firefox
browsers on other x86 systems and x86_64 systems.
For NetBSD this package requires NetBSD 6.2 or 7.1 (and later versions)
which include procfs fixes for Linux binaries.
(tsutsui)
diff -r0 -r1.1 pkgsrc/multimedia/adobe-flash-player/DESCR
diff -r0 -r1.1 pkgsrc/multimedia/adobe-flash-player/INSTALL.nspluginwrapper
diff -r0 -r1.1 pkgsrc/multimedia/adobe-flash-player/MESSAGE.pulseaudio
diff -r0 -r1.1 pkgsrc/multimedia/adobe-flash-player/Makefile
diff -r0 -r1.1 pkgsrc/multimedia/adobe-flash-player/PLIST
diff -r0 -r1.1 pkgsrc/multimedia/adobe-flash-player/distinfo
diff -r0 -r1.1 pkgsrc/multimedia/adobe-flash-player/options.mk
NPAPI Adobe Flash player plugin for the Firefox browser.
This package contains a plugin that enables web browsers to render
the Flash format.
The nspluginwrapper option (enabled by default on non Linux platforms)
permits the use of the the Linux x86 and x86_64 flash player in Firefox
browsers on other x86 systems and x86_64 systems.
For NetBSD this package requires NetBSD 6.2 or 7.1 (and later versions)
which include procfs fixes for Linux binaries.
#!/bin/sh
# $NetBSD: INSTALL.nspluginwrapper,v 1.1 2017/03/17 21:56:29 tsutsui 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
===========================================================================
$NetBSD: MESSAGE.pulseaudio,v 1.1 2017/03/17 21:56:29 tsutsui Exp $
The flash plugin requires tmpfs to be mounted on /dev/shm for PulseAudio.
This can be automated by adding the following to your /etc/fstab:
tmpfs /emul/linux/dev/shm tmpfs rw,-m1777
===========================================================================
# $NetBSD: Makefile,v 1.1 2017/03/17 21:56:29 tsutsui Exp $
FLASH_VERSION= 24.0.0.221
DISTNAME= flash_player_npapi_linux.${FLASH_ARCH}
PKGNAME= adobe-flash-player-${FLASH_VERSION}
DIST_SUBDIR= ${PKGNAME_NOREV}
CATEGORIES= multimedia www
MASTER_SITES= http://fpdownload.macromedia.com/get/flashplayer/pdc/${FLASH_VERSION}/
MAINTAINER= tsutsui@NetBSD.org
HOMEPAGE= http://www.adobe.com/products/flashplayer.html
COMMENT= Adobe Flash Player Browser NPAPI plugin
LICENSE= flash-license
RESTRICTED= Redistribution not permitted
NO_BIN_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_SRC_ON_FTP= ${RESTRICTED}
# On NetBSD, requires sufficiently new compat_linux and
# procfs_map.c fixes pulled after 6.1 and 7.0.
NOT_FOR_PLATFORM= NetBSD-[0-5]*-* NetBSD-6.[0-1].*-* NetBSD-7.0.*-*
WRKSRC= ${WRKDIR}
BUILD_DIRS= # empty
CRYPTO= yes
EMUL_PLATFORMS= linux-i386 linux-x86_64
EMUL_MODULES.linux= gtk2 x11 glx krb5 alsa curl nss nspr
# flashplayer 24 still supports OpenSUSE 11.3, but NetBSD 6.x uses 12.1
# by default so I won't bother to test with 11.3.
EMUL_REQD= suse>=12.1
.include "../../mk/bsd.prefs.mk"
.if ${EMUL_PLATFORM} == "linux-i386"
FLASH_ARCH= i386
.elif ${EMUL_PLATFORM} == "linux-x86_64"
FLASH_ARCH= x86_64
.endif
CONFLICTS= adobe-flash-plugin-[0-9]*
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"
@comment $NetBSD: PLIST,v 1.1 2017/03/17 21:56:29 tsutsui Exp $
lib/netscape/plugins/libflashplayer.so
$NetBSD: distinfo,v 1.1 2017/03/17 21:56:29 tsutsui Exp $
SHA1 (adobe-flash-player-24.0.0.221/flash_player_npapi_linux.i386.tar.gz) = f2fa63b6a18f3141a3b66e95e8cd003ca97aab15
RMD160 (adobe-flash-player-24.0.0.221/flash_player_npapi_linux.i386.tar.gz) = 67e25b3d6dd85ca9df1733032acd9f5959e797c0
SHA512 (adobe-flash-player-24.0.0.221/flash_player_npapi_linux.i386.tar.gz) = 54595f8baad3f9531e8f261ac89246f6a428b9c7be50019580618a8c14d650d7dea00b602f8b15881a2b8c9749df05fba38231cd7fffcd6eb66427d68539eea8
Size (adobe-flash-player-24.0.0.221/flash_player_npapi_linux.i386.tar.gz) = 9161831 bytes
# $NetBSD: options.mk,v 1.1 2017/03/17 21:56:29 tsutsui Exp $
#
PKG_OPTIONS_VAR= PKG_OPTIONS.adobe-flash-plugin
PKG_SUPPORTED_OPTIONS= nspluginwrapper pulseaudio
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} != "Linux"
. if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
PKG_SUGGESTED_OPTIONS= nspluginwrapper
. endif
.endif
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mnspluginwrapper)
DEPENDS+= nspluginwrapper>=1.4.4:../../www/nspluginwrapper
. if !empty(PKG_OPTIONS:Mpulseaudio)
EMUL_MODULES.linux+= pulseaudio
MESSAGE_SRC+= ${PKGDIR}/MESSAGE.pulseaudio
. else
DEPENDS+= libflashsupport>=4.2.2011:../../multimedia/libflashsupport
. endif
INSTALL_TEMPLATES+= ${PKGDIR}/INSTALL.nspluginwrapper
DEINSTALL_TEMPLATES+= ${PKGDIR}/INSTALL.nspluginwrapper
.endif