From 09c7392bf79759402966e89330595d30b96f282d Mon Sep 17 00:00:00 2001 From: ivan-boikov Date: Sat, 23 Aug 2025 16:03:48 +0200 Subject: Arkenfox 140 stable, drop 135 --- www-misc/arkenfox/Manifest | 4 +- www-misc/arkenfox/arkenfox-135.0-r1.ebuild | 71 ------------------------------ www-misc/arkenfox/arkenfox-140.0.ebuild | 71 ++++++++++++++++++++++++++++++ 3 files changed, 73 insertions(+), 73 deletions(-) delete mode 100644 www-misc/arkenfox/arkenfox-135.0-r1.ebuild create mode 100644 www-misc/arkenfox/arkenfox-140.0.ebuild diff --git a/www-misc/arkenfox/Manifest b/www-misc/arkenfox/Manifest index 7b6c671..37eb3b0 100644 --- a/www-misc/arkenfox/Manifest +++ b/www-misc/arkenfox/Manifest @@ -1,4 +1,4 @@ -DIST arkenfox-135.0.tar.gz 42582 BLAKE2B 5b3c0e7f6df720d1f2af31393f549aeb1cc2e0bd69f9634d07f4d9f88c4797210f46c5632d9c92f81104ee97e66ff254c25834250c31550d22c5df0aaeb0388b SHA512 46141bb97cdf5bbba71c783816599e9a439b534c561e7168a1617b9dfdaf653f275d71bd397ecbf4c507d751f481c5f5413179340b65c44efaba25edb240da59 +DIST arkenfox-140.0.tar.gz 43177 BLAKE2B 5867fbb984dfd97457dcfffe390232d15480a53350d244cad4b4f60e548e805ea9da378fc55dee1c9c0bf9d7dbbf75eacbaebddaf90eccaf4f7ec2182a7e6f60 SHA512 f45d73dff1eef0641e6aaafe2737b1958fd26fec3fbd0139b9ae55aee8cd81cd5e825e63bde4440c76d3a650c016ba5bd8f0e67a8b8506b837023207c03f0311 DIST arkenfox-master.tar.gz 42744 BLAKE2B a89139a17de22c9d1ec071e9055d66440b7510decf9bfbd0c5297943815f89664781d7ba1d907ba5d02b0e43a7e360714c560cf5b8b494c31d19350ace4bfe35 SHA512 d881640606feb9aac266650f8af92932c25e1bf9b0aed92f7af69a76a812bc302f75dbd0a9a13ff82d46b3524f2cbf1ee8ee928e52c02f96dc2bb664ff2bfae3 -EBUILD arkenfox-135.0-r1.ebuild 2096 BLAKE2B 9581e32d56a3bdfeedf3675922613b7fb34244c3caf0765013313975abaa8d5476049bb401179c5cdad8d05fe179290ea529d300d7fbd66ca1bbd7e3c35f66e0 SHA512 8e04a21c950db29350704df306e9071e6c745da2c31a2f13cff2e64175c658af789c9b15e780deebca9c8c4cc128ce5c542ca07568eff247f9e8640b2303fe42 +EBUILD arkenfox-140.0.ebuild 2099 BLAKE2B 5b3dab29077ea99c6c57000c0f939afdbf7f7ea3337ab4f987e4b62e4aec84b399d7b6ccf08ff2b954e1c033574a93cf1477a490d345ccaaee691ad067cf1add SHA512 bd1b145ed0eb10a586db1b22b903493d1051f8c8eef042cd2753745b7c69111eb7ef465417f69fa074ed926fb71b9b3c58ee69866559cf65e4dc170542d13e62 EBUILD arkenfox-9999.ebuild 1895 BLAKE2B 7019b0cfe2ab00a9b07d24045be51f655b0a163e6b549d0b0a3b96bfe32cf87988ab84e934319f92467789378f94cce74d8a24ad280c32095a900fe2b0b22f96 SHA512 41b6fd56776930ccad58efbf911ca076258a151af72cc3d5caebfbcfd4f5adbaea8e31bb164dd63cb64ba8c8b21e27d32045723d3aec45d7c3b0aba733a6f54b diff --git a/www-misc/arkenfox/arkenfox-135.0-r1.ebuild b/www-misc/arkenfox/arkenfox-135.0-r1.ebuild deleted file mode 100644 index 719e81a..0000000 --- a/www-misc/arkenfox/arkenfox-135.0-r1.ebuild +++ /dev/null @@ -1,71 +0,0 @@ -# Copyright 2024 Ivan Boikov -# 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="135.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-140.0.ebuild b/www-misc/arkenfox/arkenfox-140.0.ebuild new file mode 100644 index 0000000..11e5b9e --- /dev/null +++ b/www-misc/arkenfox/arkenfox-140.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="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' +} -- cgit v1.2.3