1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
From: Debian Bananas Team <team+bananas@tracker.debian.org>
Date: Sat, 21 Jun 2025 10:37:11 +0200
Subject: Prevent script from copying configuration and support firefox-esr
---
widevine-installer | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/widevine-installer b/widevine-installer
index ea7db0f..2f3a3e3 100755
--- a/widevine-installer
+++ b/widevine-installer
@@ -4,10 +4,10 @@
set -e
# Set to 0 if packaged and the configs are pre-installed
-: ${COPY_CONFIGS=1}
+: ${COPY_CONFIGS=0}
: ${DESTDIR:=/}
: ${CONFDIR:=/etc}
-: ${LIBDIR:=/usr/lib64}
+: ${LIBDIR:=/usr/lib}
: ${BINDIR:=/usr/bin}
: ${LIBEXECDIR:=/usr/libexec}
: ${STATEDIR:=/var/lib}
@@ -18,8 +18,9 @@ set -e
: ${LACROS_NAME:=chromeos-lacros-arm64-squash-zstd}
: ${LACROS_VERSION:=120.0.6098.0}
: ${WIDEVINE_VERSION:=4.10.2662.3}
-: ${CHROME_WIDEVINE_BASE:=$LIBDIR/chromium-browser}
+: ${CHROME_WIDEVINE_BASE:=$LIBDIR/chromium}
: ${MOZ_PREF_BASE:=$LIBDIR/firefox/defaults/pref}
+: ${MOZ_ESR_PREF_BASE:=$LIBDIR/firefox-esr/defaults/pref}
[ -e $(dirname "$0")/widevine_fixup.py ] && SCRIPT_BASE="$(realpath "$(dirname "$0")")"
@@ -36,6 +37,8 @@ install_configs() {
ln -sf "$INSTALL_BASE/WidevineCdm" "$DESTDIR/$CHROME_WIDEVINE_BASE/WidevineCdm"
install -d -m 0755 "$DESTDIR/$MOZ_PREF_BASE"
install -p -m 0644 -t "$DESTDIR/$MOZ_PREF_BASE" ./conf/gmpwidevine.js
+ install -d -m 0755 "$DESTDIR/$MOZ_ESR_PREF_BASE"
+ install -p -m 0644 -t "$DESTDIR/$MOZ_ESR_PREF_BASE" ./conf/gmpwidevine.js
}
if [ "$1" = "--distinstall" ]; then
|