diff options
| -rw-r--r-- | metadata/news/2024-08-24-arkenfox-rfp-to-fpp/2024-08-24-arkenfox-rfp-to-fpp.en.txt | 8 | ||||
| -rw-r--r-- | www-misc/arkenfox/Manifest | 2 | ||||
| -rw-r--r-- | www-misc/arkenfox/arkenfox-128.0.ebuild | 67 |
3 files changed, 74 insertions, 3 deletions
diff --git a/metadata/news/2024-08-24-arkenfox-rfp-to-fpp/2024-08-24-arkenfox-rfp-to-fpp.en.txt b/metadata/news/2024-08-24-arkenfox-rfp-to-fpp/2024-08-24-arkenfox-rfp-to-fpp.en.txt index 4298c27..9c93db2 100644 --- a/metadata/news/2024-08-24-arkenfox-rfp-to-fpp/2024-08-24-arkenfox-rfp-to-fpp.en.txt +++ b/metadata/news/2024-08-24-arkenfox-rfp-to-fpp/2024-08-24-arkenfox-rfp-to-fpp.en.txt @@ -1,10 +1,12 @@ -Title: =www-misc/arkenfox-128 changes RFP to FPP +Title: >=www-misc/arkenfox-128.0 changes RFP to FPP Author: Ivan Boikov Content-Type: text/plain Posted: 2024-08-24 Revision: 1 News-Item-Format: 1.0 -Display-If-Installed: =www-misc/arkenfox-128 +Display-If-Installed: >=www-misc/arkenfox-128.0 + +Arkenfox in v128 will make ResistFingerprinting inactive and use +FingerprintingProtection as default. -Arkenfox in v128 will make ResistFingerprinting inactive and use FingerprintingProtection as default https://github.com/arkenfox/user.js/issues/1804 diff --git a/www-misc/arkenfox/Manifest b/www-misc/arkenfox/Manifest index 219cc47..d38339f 100644 --- a/www-misc/arkenfox/Manifest +++ b/www-misc/arkenfox/Manifest @@ -1,4 +1,6 @@ DIST arkenfox-126.1.tar.gz 42646 BLAKE2B 8682f5d09833a8f8e8a3a57584b15ade46ffa807479744b366590b9bcb53f1c372b5d38fd0a22a60da4ba74d8696b89839164003c9661487fb50602e711d1f70 SHA512 1b17d105a7f0fb812ccd3c894d116a02fd69c873bae230970b62a4971a3c747143670c734effbeacf90c6d3c9fa5b9c1405d3286b22d452328987ece51e42341 +DIST arkenfox-128.0.tar.gz 42998 BLAKE2B ae1fcca7e5d8c45d3ba79d6332daa0addb8354b3c87ac751f97f843d1021110737bd40e5908f1e4f383845f362b9d76ae5f909c747a23751e6d8c8981e474cac SHA512 ca00aff4b97b237a43b7aaf763f1c72ebcd13f129e6d3824c1000c646216aca732c2b855068c5900bab4804de783bb37c6524a7643e0af043def88583825770d DIST arkenfox-master.tar.gz 42744 BLAKE2B a89139a17de22c9d1ec071e9055d66440b7510decf9bfbd0c5297943815f89664781d7ba1d907ba5d02b0e43a7e360714c560cf5b8b494c31d19350ace4bfe35 SHA512 d881640606feb9aac266650f8af92932c25e1bf9b0aed92f7af69a76a812bc302f75dbd0a9a13ff82d46b3524f2cbf1ee8ee928e52c02f96dc2bb664ff2bfae3 EBUILD arkenfox-126.1.ebuild 1901 BLAKE2B 89336730beabb223b468da6e430e15ebbd376527e00d19b58c49a2be363dae2c8f7b84b9ac5c77ebf5b35887bc52b14f931dc5f1fb9a9f623f5669205c7d9239 SHA512 0231856451e42fb2a6172f7c04ab92eacd67ed7ed9ef577392eea17f22bac38aaf3863c61f73afb93a10f991df29d0b6fca5ac48fa9ece25bcd9d9f26de77b5e +EBUILD arkenfox-128.0.ebuild 1903 BLAKE2B add7d349ecdde9eb00e7ddd21a04490b6ec230a781b93ae1d4e9883280c955fa67fe075add6ca19134a96578be7f7e8d926df7a37feaecbbd21ae6ddd559bcae SHA512 d24d777d6b3bc149c1c50a4321dc564bb609c5356f604e68e196f082311a543f60d4bb60b113b4bb7c4f39fb32834fd7423de80183cc6b854100af97a7f88d5a EBUILD arkenfox-9999.ebuild 1882 BLAKE2B 7dd59908070df469e560ae7ece5c405d3090e312f87db3357087748fc77df131716284ad9b94c9fcfb4713c8fa732c122d7c6c32c54e238dd7f1c9521dafa468 SHA512 7c4103ac26964fd12d4de97a73379301e5c14f6600a001d37410a88e6991cd465ec39c7b63c45c76deaf399d092145249e05af7a4fc4fb59118cf64a211fc36b diff --git a/www-misc/arkenfox/arkenfox-128.0.ebuild b/www-misc/arkenfox/arkenfox-128.0.ebuild new file mode 100644 index 0000000..06445cd --- /dev/null +++ b/www-misc/arkenfox/arkenfox-128.0.ebuild @@ -0,0 +1,67 @@ +# 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="128.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}/${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/lib/firefox" ]; then # "firefox" in installed + dodir "/usr/lib/firefox" + cp "user.js-${VER}/arkenfox.cfg" "${D}/usr/lib/firefox/" + fi + + save_config user-overrides.js +} |
