Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(675)

Unified Diff: src/package_scripts/flashplugin-installer.postinst

Issue 555027: Maintainer script for flash ++ (Closed)
Patch Set: Make a proper plugins directory for chrome Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/package_scripts/package.whitelist » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/package_scripts/flashplugin-installer.postinst
diff --git a/src/package_scripts/flashplugin-installer.postinst b/src/package_scripts/flashplugin-installer.postinst
new file mode 100755
index 0000000000000000000000000000000000000000..42790186ba0ca5d72bc5bc399942c0d590c76840
--- /dev/null
+++ b/src/package_scripts/flashplugin-installer.postinst
@@ -0,0 +1,41 @@
+#!/bin/bash
+
+# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# flashplugin-installer.postinst
+
+set -e
+
+case "$ARCH" in
+ x86)
+ VERSION="10.0.32.18"
+ FILENAME="adobe-flashplugin_${VERSION}.orig.tar.gz"
+ CHECKSUM="859058c0085671c8e822a083cf7ca03ac3e0dea6"
+ URL="http://archive.canonical.com/pool/partner/a/adobe-flashplugin/"
+ ;;
+# todo
+# armel)
+# ;;
+ *)
+ echo "Unknown architecture for flashplugin"
+ exit 1
+ ;;
+esac
+
+if [ ! -d "${SRC_ROOT}/build/${ARCH}/local_assets/" ]; then
+ mkdir -p "${SRC_ROOT}/build/${ARCH}/local_assets/"
+fi
+
+cd "${SRC_ROOT}/build/${ARCH}/local_assets/"
+
+if [ ! -f "adobe-flashplugin-${VERSION}.orig/libflashplayer.so" ]; then
+ rm ${FILENAME} 2>/dev/null || true
+ wget "${URL}/${FILENAME}"
+ echo "${CHECKSUM} ${FILENAME}" | sha1sum -c
+ tar xzf $FILENAME
+fi
+
+install -m 644 "adobe-flashplugin-${VERSION}.orig/libflashplayer.so" \
+ "${ROOT}/usr/lib/flashplugin-installer/"
« no previous file with comments | « no previous file | src/package_scripts/package.whitelist » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698