commit:     09821ae9942800256678a8b4335e907b5484b0b9
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sun Nov  4 14:46:32 2018 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sun Nov  4 14:53:51 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09821ae9

www-client/firefox-bin: disable auto-update using policies.json

Closes: https://bugs.gentoo.org/670196
Package-Manager: Portage-2.3.51, Repoman-2.3.11
RepoMan-Options: --force
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 www-client/firefox-bin/files/all-gentoo-1.js                         | 2 +-
 www-client/firefox-bin/files/disable-auto-update.policy.json         | 5 +++++
 .../{firefox-bin-60.3.0.ebuild => firefox-bin-60.3.0-r1.ebuild}      | 4 ++++
 .../{firefox-bin-63.0.1.ebuild => firefox-bin-63.0.1-r1.ebuild}      | 4 ++++
 4 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/www-client/firefox-bin/files/all-gentoo-1.js 
b/www-client/firefox-bin/files/all-gentoo-1.js
index 0ac6d6a4988..a5e93b179d0 100644
--- a/www-client/firefox-bin/files/all-gentoo-1.js
+++ b/www-client/firefox-bin/files/all-gentoo-1.js
@@ -1,4 +1,4 @@
-// Ensure preference cann't be changed by users
+// Ensure preference can't be changed by users
 lockPref("app.update.auto", false);
 lockPref("app.update.enabled", false);
 lockPref("intl.locale.matchOS",                true);

diff --git a/www-client/firefox-bin/files/disable-auto-update.policy.json 
b/www-client/firefox-bin/files/disable-auto-update.policy.json
new file mode 100644
index 00000000000..f36622021fc
--- /dev/null
+++ b/www-client/firefox-bin/files/disable-auto-update.policy.json
@@ -0,0 +1,5 @@
+{
+  "policies": {
+    "DisableAppUpdate": true
+  }
+}

diff --git a/www-client/firefox-bin/firefox-bin-60.3.0.ebuild 
b/www-client/firefox-bin/firefox-bin-60.3.0-r1.ebuild
similarity index 96%
rename from www-client/firefox-bin/firefox-bin-60.3.0.ebuild
rename to www-client/firefox-bin/firefox-bin-60.3.0-r1.ebuild
index af452de7b79..371ab74243b 100644
--- a/www-client/firefox-bin/firefox-bin-60.3.0.ebuild
+++ b/www-client/firefox-bin/firefox-bin-60.3.0-r1.ebuild
@@ -115,6 +115,10 @@ src_install() {
        dodir ${MOZILLA_FIVE_HOME%/*}
        mv "${S}" "${ED}"${MOZILLA_FIVE_HOME} || die
 
+       # Disable built-in auto-update because we update firefox-bin through 
package manager
+       insinto ${MOZILLA_FIVE_HOME}/distribution/
+       newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
+
        # Fix prefs that make no sense for a system-wide install
        insinto ${MOZILLA_FIVE_HOME}/defaults/pref/
        doins "${FILESDIR}"/local-settings.js

diff --git a/www-client/firefox-bin/firefox-bin-63.0.1.ebuild 
b/www-client/firefox-bin/firefox-bin-63.0.1-r1.ebuild
similarity index 96%
rename from www-client/firefox-bin/firefox-bin-63.0.1.ebuild
rename to www-client/firefox-bin/firefox-bin-63.0.1-r1.ebuild
index 39a6591abfd..af7d272f28a 100644
--- a/www-client/firefox-bin/firefox-bin-63.0.1.ebuild
+++ b/www-client/firefox-bin/firefox-bin-63.0.1-r1.ebuild
@@ -115,6 +115,10 @@ src_install() {
        dodir ${MOZILLA_FIVE_HOME%/*}
        mv "${S}" "${ED}"${MOZILLA_FIVE_HOME} || die
 
+       # Disable built-in auto-update because we update firefox-bin through 
package manager
+       insinto ${MOZILLA_FIVE_HOME}/distribution/
+       newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
+
        # Fix prefs that make no sense for a system-wide install
        insinto ${MOZILLA_FIVE_HOME}/defaults/pref/
        doins "${FILESDIR}"/local-settings.js

Reply via email to