From 8f67f4657d503d95b8233b8dd7780919f0c6982a Mon Sep 17 00:00:00 2001 From: "Ivan K. Boikov" Date: Fri, 8 May 2026 15:53:30 +0200 Subject: arkenfox: add 144.0 stable, drop 140.0 --- www-misc/arkenfox/Manifest | 4 +- www-misc/arkenfox/arkenfox-140.0.ebuild | 71 --------------------------------- www-misc/arkenfox/arkenfox-144.0.ebuild | 71 +++++++++++++++++++++++++++++++++ 3 files changed, 73 insertions(+), 73 deletions(-) delete mode 100644 www-misc/arkenfox/arkenfox-140.0.ebuild create mode 100644 www-misc/arkenfox/arkenfox-144.0.ebuild (limited to 'www-misc/arkenfox') diff --git a/www-misc/arkenfox/Manifest b/www-misc/arkenfox/Manifest index 37eb3b0..8dc2293 100644 --- a/www-misc/arkenfox/Manifest +++ b/www-misc/arkenfox/Manifest @@ -1,4 +1,4 @@ -DIST arkenfox-140.0.tar.gz 43177 BLAKE2B 5867fbb984dfd97457dcfffe390232d15480a53350d244cad4b4f60e548e805ea9da378fc55dee1c9c0bf9d7dbbf75eacbaebddaf90eccaf4f7ec2182a7e6f60 SHA512 f45d73dff1eef0641e6aaafe2737b1958fd26fec3fbd0139b9ae55aee8cd81cd5e825e63bde4440c76d3a650c016ba5bd8f0e67a8b8506b837023207c03f0311 +DIST arkenfox-144.0.tar.gz 43373 BLAKE2B 9a4f81580aca27d40809e401c2017c580aa764995e7314712785be77497680a6558fab0cb8041f4819dc7d8f813e4bf4d8668c31dee62a6087af9c755d6c6968 SHA512 f96e642b7c4626b6c109f895d5857deab670f75c17d6f5c39d40b7ef6c0181e35a223849b072000b9e3c399c31806a254619045a24068b39cf67d0f74f6458c2 DIST arkenfox-master.tar.gz 42744 BLAKE2B a89139a17de22c9d1ec071e9055d66440b7510decf9bfbd0c5297943815f89664781d7ba1d907ba5d02b0e43a7e360714c560cf5b8b494c31d19350ace4bfe35 SHA512 d881640606feb9aac266650f8af92932c25e1bf9b0aed92f7af69a76a812bc302f75dbd0a9a13ff82d46b3524f2cbf1ee8ee928e52c02f96dc2bb664ff2bfae3 -EBUILD arkenfox-140.0.ebuild 2099 BLAKE2B 5b3dab29077ea99c6c57000c0f939afdbf7f7ea3337ab4f987e4b62e4aec84b399d7b6ccf08ff2b954e1c033574a93cf1477a490d345ccaaee691ad067cf1add SHA512 bd1b145ed0eb10a586db1b22b903493d1051f8c8eef042cd2753745b7c69111eb7ef465417f69fa074ed926fb71b9b3c58ee69866559cf65e4dc170542d13e62 +EBUILD arkenfox-144.0.ebuild 2099 BLAKE2B a2aa1c92547e2e9ea5b03860bd06964e243d4f7fc10ec4d7df25793439058cf92e03e9a322a5b6627d32973829b0756aacdfacfb047deee963ccd123ff1c3104 SHA512 384ab731bcfea9a21ca9ab23c29e1d8bc7aade52b475cf0108d56ecac1df06c53242801b2995ac757a33d64ac0870c046fcc4f12afda9665d60b45c580dbc7e9 EBUILD arkenfox-9999.ebuild 1895 BLAKE2B 7019b0cfe2ab00a9b07d24045be51f655b0a163e6b549d0b0a3b96bfe32cf87988ab84e934319f92467789378f94cce74d8a24ad280c32095a900fe2b0b22f96 SHA512 41b6fd56776930ccad58efbf911ca076258a151af72cc3d5caebfbcfd4f5adbaea8e31bb164dd63cb64ba8c8b21e27d32045723d3aec45d7c3b0aba733a6f54b diff --git a/www-misc/arkenfox/arkenfox-140.0.ebuild b/www-misc/arkenfox/arkenfox-140.0.ebuild deleted file mode 100644 index 11e5b9e..0000000 --- a/www-misc/arkenfox/arkenfox-140.0.ebuild +++ /dev/null @@ -1,71 +0,0 @@ -# Copyright 2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit savedconfig - -DESCRIPTION="Firefox privacy, security and anti-tracking: a comprehensive user.js template for configuration and hardening" -HOMEPAGE="https://github.com/arkenfox/user.js" -VER="140.0" -SRC_URI="https://github.com/arkenfox/user.js/archive/refs/tags/${VER}.tar.gz -> arkenfox-${VER}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="+savedconfig" - -RDEPEND=" -" -DEPEND="${RDEPEND}" -BDEPEND="" - -S="${WORKDIR}" - -sanitize() { - # firefox is restrictive about the config content, so only leave the bare minimum - # arkenfox's updating script does a similar thing - cat "$1" | grep "user_pref" | grep -v "// user_pref" | sed "s/^user_pref/pref/g" -} - -src_prepare() { - default - - tar -xf "${DISTDIR}/arkenfox-${VER}.tar.gz" - - restore_config 'user-overrides.js' - if [ ! -f "user-overrides.js" ]; then - echo '// user_pref("parameter", "value")' > "user-overrides.js" - fi -} - -src_compile() { - echo "// IMPORTANT: Start your code on the 2nd line" > "user.js-${VER}/arkenfox.cfg" - sanitize "user.js-${VER}/user.js" >> "user.js-${VER}/arkenfox.cfg" - sanitize "user-overrides.js" >> "user.js-${VER}/arkenfox.cfg" -} - -src_install() { - # https://support.mozilla.org/en-US/kb/customizing-firefox-using-autoconfig - dodir "/etc/firefox/defaults/pref" - cat >> "${D}/etc/firefox/defaults/pref/autoconfig.js" << EOF -pref("general.config.filename", "arkenfox.cfg"); -pref("general.config.obscure_value", 0); -EOF - - # it appears we can only install configs inside the install directory - if [ -d "/opt/firefox" ]; then # "firefox-bin" in installed - dodir "/opt/firefox" - cp "user.js-${VER}/arkenfox.cfg" "${D}/opt/firefox/" - fi - if [ -d "/usr/lib64/firefox" ]; then # "firefox" in installed - dodir "/usr/lib64/firefox" - cp "user.js-${VER}/arkenfox.cfg" "${D}/usr/lib64/firefox/" - fi - if [ -d "/usr/lib/firefox" ]; then # "firefox" in installed but somehow not in lib64 - dodir "/usr/lib/firefox" - cp "user.js-${VER}/arkenfox.cfg" "${D}/usr/lib/firefox/" - fi - - save_config 'user-overrides.js' -} diff --git a/www-misc/arkenfox/arkenfox-144.0.ebuild b/www-misc/arkenfox/arkenfox-144.0.ebuild new file mode 100644 index 0000000..d97a33c --- /dev/null +++ b/www-misc/arkenfox/arkenfox-144.0.ebuild @@ -0,0 +1,71 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit savedconfig + +DESCRIPTION="Firefox privacy, security and anti-tracking: a comprehensive user.js template for configuration and hardening" +HOMEPAGE="https://github.com/arkenfox/user.js" +VER="144.0" +SRC_URI="https://github.com/arkenfox/user.js/archive/refs/tags/${VER}.tar.gz -> arkenfox-${VER}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="+savedconfig" + +RDEPEND=" +" +DEPEND="${RDEPEND}" +BDEPEND="" + +S="${WORKDIR}" + +sanitize() { + # firefox is restrictive about the config content, so only leave the bare minimum + # arkenfox's updating script does a similar thing + cat "$1" | grep "user_pref" | grep -v "// user_pref" | sed "s/^user_pref/pref/g" +} + +src_prepare() { + default + + tar -xf "${DISTDIR}/arkenfox-${VER}.tar.gz" + + restore_config 'user-overrides.js' + if [ ! -f "user-overrides.js" ]; then + echo '// user_pref("parameter", "value")' > "user-overrides.js" + fi +} + +src_compile() { + echo "// IMPORTANT: Start your code on the 2nd line" > "user.js-${VER}/arkenfox.cfg" + sanitize "user.js-${VER}/user.js" >> "user.js-${VER}/arkenfox.cfg" + sanitize "user-overrides.js" >> "user.js-${VER}/arkenfox.cfg" +} + +src_install() { + # https://support.mozilla.org/en-US/kb/customizing-firefox-using-autoconfig + dodir "/etc/firefox/defaults/pref" + cat >> "${D}/etc/firefox/defaults/pref/autoconfig.js" << EOF +pref("general.config.filename", "arkenfox.cfg"); +pref("general.config.obscure_value", 0); +EOF + + # it appears we can only install configs inside the install directory + if [ -d "/opt/firefox" ]; then # "firefox-bin" in installed + dodir "/opt/firefox" + cp "user.js-${VER}/arkenfox.cfg" "${D}/opt/firefox/" + fi + if [ -d "/usr/lib64/firefox" ]; then # "firefox" in installed + dodir "/usr/lib64/firefox" + cp "user.js-${VER}/arkenfox.cfg" "${D}/usr/lib64/firefox/" + fi + if [ -d "/usr/lib/firefox" ]; then # "firefox" in installed but somehow not in lib64 + dodir "/usr/lib/firefox" + cp "user.js-${VER}/arkenfox.cfg" "${D}/usr/lib/firefox/" + fi + + save_config 'user-overrides.js' +} -- cgit v1.2.3