Skip to content

Instantly share code, notes, and snippets.

@tsutsui
Created February 10, 2017 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsutsui/9dfbf481d1e674aa75dad8bc750bdf90 to your computer and use it in GitHub Desktop.
Save tsutsui/9dfbf481d1e674aa75dad8bc750bdf90 to your computer and use it in GitHub Desktop.
WIP pkgsrc/multimedia/adobe-flash-player24 files
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# adobe-flash-player24
# adobe-flash-player24/DESCR
# adobe-flash-player24/INSTALL.nspluginwrapper
# adobe-flash-player24/MESSAGE.pulseaudio
# adobe-flash-player24/Makefile
# adobe-flash-player24/PLIST
# adobe-flash-player24/distinfo
# adobe-flash-player24/options.mk
#
echo c - adobe-flash-player24
mkdir -p adobe-flash-player24 > /dev/null 2>&1
echo x - adobe-flash-player24/DESCR
sed 's/^X//' >adobe-flash-player24/DESCR << 'END-of-adobe-flash-player24/DESCR'
XNetscape compatible plugin for Adobe Flash player. This package
Xcontains a plugin that enables web browsers to render the Flash
Xformat.
X
XThe nspluginwrapper option (enabled by default on non Linux platforms)
Xpermits the use of the the Linux x86 flash player in Firefox browsers
Xon other x86 systems and x86_64 systems.
X
XFor NetBSD this package requires emul.linux.kern.osrelease = 2.6.18
Xor later, which means it will not work on NetBSD 5.x or older
Xsystems.
END-of-adobe-flash-player24/DESCR
echo x - adobe-flash-player24/INSTALL.nspluginwrapper
sed 's/^X//' >adobe-flash-player24/INSTALL.nspluginwrapper << 'END-of-adobe-flash-player24/INSTALL.nspluginwrapper'
X#!/bin/sh
X# $NetBSD$
X
XPATH=@PREFIX@/bin:$PATH
X
Xcase $STAGE in
X POST-INSTALL)
X nspluginwrapper -i @PREFIX@/lib/netscape/plugins/libflashplayer.so
X ;;
Xesac
X
X
Xcase $STAGE in
X DEINSTALL)
X for wrapped in `nspluginwrapper -l | grep ^/` ; do
X nspluginwrapper -r $wrapped
X done
X ;;
Xesac
END-of-adobe-flash-player24/INSTALL.nspluginwrapper
echo x - adobe-flash-player24/MESSAGE.pulseaudio
sed 's/^X//' >adobe-flash-player24/MESSAGE.pulseaudio << 'END-of-adobe-flash-player24/MESSAGE.pulseaudio'
X===========================================================================
X$NetBSD$
X
XThe flash plugin requires tmpfs to be mounted on /dev/shm for PulseAudio.
X
XThis can be automated by adding the following to your /etc/fstab:
X
Xtmpfs /emul/linux/dev/shm tmpfs rw,-m1777
X
X===========================================================================
END-of-adobe-flash-player24/MESSAGE.pulseaudio
echo x - adobe-flash-player24/Makefile
sed 's/^X//' >adobe-flash-player24/Makefile << 'END-of-adobe-flash-player24/Makefile'
X# $NetBSD$
X
XDISTNAME= flash_player_npapi_linux.${FLASH_ARCH}
XPKGNAME= adobe-flash-player-${FLASH_VERSION}
XDIST_SUBDIR= ${PKGNAME_NOREV}
XCATEGORIES= multimedia www
XMASTER_SITES= http://fpdownload.macromedia.com/get/flashplayer/pdc/${FLASH_VERSION}/
X
XMAINTAINER= pkgsrc-users@NetBSD.org
XHOMEPAGE= http://www.adobe.com/products/flashplayer.html
XCOMMENT= Adobe Flash Player Browser plugin
XLICENSE= flash-license
X
XRESTRICTED= Redistribution not permitted
XNO_BIN_ON_CDROM= ${RESTRICTED}
XNO_BIN_ON_FTP= ${RESTRICTED}
XNO_SRC_ON_CDROM= ${RESTRICTED}
XNO_SRC_ON_FTP= ${RESTRICTED}
X
X# On NetBSD, requires sufficiently new compat_linux.
XNOT_FOR_PLATFORM= NetBSD-[0-4]*-* NetBSD-5.[0-9].*-*
X
XWRKSRC= ${WRKDIR}
XBUILD_DIRS= # empty
X
XCRYPTO= yes
X
XEMUL_PLATFORMS= linux-i386 linux-x86_64
XEMUL_MODULES.linux= gtk2 x11 krb5 alsa curl nss nspr
XEMUL_REQD= suse>=13.1
X
XFLASH_VERSION= 24.0.0.194
X
X.include "../../mk/bsd.prefs.mk"
X
X.if ${EMUL_PLATFORM} == "linux-i386"
XFLASH_ARCH= i386
XFLASH_LIBDIR= lib
X.elif ${EMUL_PLATFORM} == "linux-x86_64"
XFLASH_ARCH= x86_64
XFLASH_LIBDIR= lib64
X.endif
X
XCONFLICTS= adobe-flash-plugin-[0-9]*
X
XNS_PLUGINS_DIR= ${PREFIX}/lib/netscape/plugins
X
X.include "options.mk"
X
Xdo-install:
X ${INSTALL_DATA_DIR} ${DESTDIR}${NS_PLUGINS_DIR}
X ${INSTALL_DATA} ${WRKSRC}/libflashplayer.so \
X ${DESTDIR}${NS_PLUGINS_DIR}
X
X.include "../../mk/bsd.pkg.mk"
END-of-adobe-flash-player24/Makefile
echo x - adobe-flash-player24/PLIST
sed 's/^X//' >adobe-flash-player24/PLIST << 'END-of-adobe-flash-player24/PLIST'
X@comment $NetBSD$
Xlib/netscape/plugins/libflashplayer.so
END-of-adobe-flash-player24/PLIST
echo x - adobe-flash-player24/distinfo
sed 's/^X//' >adobe-flash-player24/distinfo << 'END-of-adobe-flash-player24/distinfo'
X$NetBSD$
X
XSHA1 (adobe-flash-player-24.0.0.194/flash_player_npapi_linux.i386.tar.gz) = 04afa598f14cca72fc78c2eb1fadc2499191fe95
XRMD160 (adobe-flash-player-24.0.0.194/flash_player_npapi_linux.i386.tar.gz) = e92da36559c51a6000fd8c8c4451a5678f74d500
XSHA512 (adobe-flash-player-24.0.0.194/flash_player_npapi_linux.i386.tar.gz) = 7eabb3410272247c088142779ed342dfa0a2a5f014f6516c513a6f7a1c142c8fb32880ba9950afffdae1350392b31b48e76638fa62957a4587ced201bbcb2204
XSize (adobe-flash-player-24.0.0.194/flash_player_npapi_linux.i386.tar.gz) = 9161011 bytes
XSHA1 (adobe-flash-player-24.0.0.194/flash_player_npapi_linux.x86_64.tar.gz) = efe9cf4f534e8c37d425f7193e3bc839d98d3cec
XRMD160 (adobe-flash-player-24.0.0.194/flash_player_npapi_linux.x86_64.tar.gz) = 25415a6dc2a7c37f6603b4ad4076c91707c4116c
XSHA512 (adobe-flash-player-24.0.0.194/flash_player_npapi_linux.x86_64.tar.gz) = 21684cb23d60c42dea62bebe83633a43aa3efd2e8e31d62fe84840fcf401f15c77a36f3d8a7d40e952de8fdbf38772a7e743452be8c4384c7ac8bb5f1fd58e86
XSize (adobe-flash-player-24.0.0.194/flash_player_npapi_linux.x86_64.tar.gz) = 9698184 bytes
END-of-adobe-flash-player24/distinfo
echo x - adobe-flash-player24/options.mk
sed 's/^X//' >adobe-flash-player24/options.mk << 'END-of-adobe-flash-player24/options.mk'
X# $NetBSD$
X#
X
XPKG_OPTIONS_VAR= PKG_OPTIONS.adobe-flash-plugin
XPKG_SUPPORTED_OPTIONS= nspluginwrapper
X
X.include "../../mk/bsd.prefs.mk"
X
X.if ${OPSYS} != "Linux"
X. if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
XPKG_SUGGESTED_OPTIONS= nspluginwrapper
X. endif
X.endif
X
X.include "../../mk/bsd.options.mk"
X
X.if !empty(PKG_OPTIONS:Mnspluginwrapper)
XDEPENDS+= nspluginwrapper>=1.4.4:../../www/nspluginwrapper
XEMUL_MODULES.linux+= pulseaudio
XMESSAGE_SRC+= ${PKGDIR}/MESSAGE.pulseaudio
XINSTALL_TEMPLATES+= ${PKGDIR}/INSTALL.nspluginwrapper
XDEINSTALL_TEMPLATES+= ${PKGDIR}/INSTALL.nspluginwrapper
X.endif
END-of-adobe-flash-player24/options.mk
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment