From 79d9170b430c631e2e8942d7a42e7d5fcad80ce6 Mon Sep 17 00:00:00 2001 From: Andreas Grapentin Date: Fri, 16 Jun 2017 07:42:06 +0200 Subject: libre/iceweasel: fixing user agent --- libre/iceweasel/PKGBUILD | 8 +++++--- libre/iceweasel/vendor.js | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'libre') diff --git a/libre/iceweasel/PKGBUILD b/libre/iceweasel/PKGBUILD index 823ccb40f..762df076e 100644 --- a/libre/iceweasel/PKGBUILD +++ b/libre/iceweasel/PKGBUILD @@ -20,7 +20,7 @@ pkgname=iceweasel epoch=1 pkgver=54.0 -pkgrel=1 +pkgrel=2 _brandingver=54.0 _brandingrel=1 _parabolarepo=https://repo.parabola.nu/other/iceweasel @@ -70,7 +70,7 @@ sha256sums=('08a9ff6870d904a2af1d03c17c6c44f67413608efb66bb280894d7b92c336a77' '56eba484179c7f498076f8dc603d8795e99dce8c6ea1da9736318c59d666bff6' '250f7aaa3c1362f9d2bb2211cd605eab93a5e806e8540f184979d41acf46142a' '46e588300797bda599c8f5157437fd79f88b6e1179f2fde49e0405e435e03efa' - '90bdede15c2e85e5d081e2b822884a6354a116868ba7d9e19a2484a4e2528aaf' + '085b968e613a5aadbc8cbec20f4db80d76c4fd7cfe75642babefa6385663cbb5' 'd28b14a870aa100273243039d08ab9e64d325c28b6291413441146ebdf5d38ee' '9765bca5d63fb5525bbd0520b7ab1d27cabaed697e2fc7791400abc3fa4f13b8' 'e260e555b261aabab1e48786dd514eeea056e4402af7cfd4dfd1d32858441484' @@ -189,7 +189,9 @@ package() { make -f client.mk DESTDIR="$pkgdir" INSTALL_SDK= install - install -Dm644 ../vendor.js "$pkgdir/usr/lib/$pkgname/browser/defaults/preferences/vendor.js" + install -Dm644 "$srcdir/vendor.js" "$pkgdir/usr/lib/$pkgname/browser/defaults/preferences/vendor.js" + local shortver=$(echo $pkgver | cut -d'.' -f1,2) + sed -i "s/@PKGVER@/$shortver/" "$pkgdir/usr/lib/$pkgname/browser/defaults/preferences/vendor.js" local brandingdir="$srcdir/$pkgname-$_brandingver" diff --git a/libre/iceweasel/vendor.js b/libre/iceweasel/vendor.js index b2c8411ad..5ef880e2a 100644 --- a/libre/iceweasel/vendor.js +++ b/libre/iceweasel/vendor.js @@ -68,9 +68,9 @@ pref("browser.EULA.override", true); // Spoof the useragent to a generic one pref("general.useragent.compatMode.firefox", true); // Spoof the useragent to a generic one -pref("general.useragent.override", "Mozilla/5.0 (Windows NT 6.1; rv:53.0) Gecko/20100101 Firefox/53.0"); +pref("general.useragent.override", "Mozilla/5.0 (Windows NT 6.1; rv:@PKGVER@) Gecko/20100101 Firefox/@PKGVER@"); pref("general.appname.override", "Netscape"); -pref("general.appversion.override", "53.0"); +pref("general.appversion.override", "@PKGVER@"); pref("general.buildID.override", "Gecko/20100101"); pref("general.oscpu.override", "Windows NT 6.1"); pref("general.platform.override", "Win32"); -- cgit v1.2.3