summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--metadata/layout.conf1
-rw-r--r--profiles/repo_name1
-rwxr-xr-xupdate-manifests3
-rw-r--r--www-misc/firefox-policy/Manifest1
-rw-r--r--www-misc/firefox-policy/firefox-policy-9999.ebuild56
-rw-r--r--www-plugins/istilldontcareaboutcookies-bin/Manifest2
-rw-r--r--www-plugins/istilldontcareaboutcookies-bin/istilldontcareaboutcookies-bin-1.1.4.ebuild28
-rw-r--r--www-plugins/libredirect-bin/Manifest2
-rw-r--r--www-plugins/libredirect-bin/libredirect-bin-2.8.4.ebuild26
-rw-r--r--www-plugins/ublock-origin-bin/Manifest4
-rw-r--r--www-plugins/ublock-origin-bin/ublock-origin-bin-1.55.0.ebuild29
-rw-r--r--www-plugins/ublock-origin-bin/ublock-origin-bin-1.57.2.ebuild29
-rw-r--r--www-plugins/ublock-origin/Manifest2
-rw-r--r--www-plugins/ublock-origin/ublock-origin-9999.ebuild38
14 files changed, 222 insertions, 0 deletions
diff --git a/metadata/layout.conf b/metadata/layout.conf
new file mode 100644
index 0000000..d43e61c
--- /dev/null
+++ b/metadata/layout.conf
@@ -0,0 +1 @@
+masters = gentoo
diff --git a/profiles/repo_name b/profiles/repo_name
new file mode 100644
index 0000000..4380a87
--- /dev/null
+++ b/profiles/repo_name
@@ -0,0 +1 @@
+genfox-overlay
diff --git a/update-manifests b/update-manifests
new file mode 100755
index 0000000..982d49e
--- /dev/null
+++ b/update-manifests
@@ -0,0 +1,3 @@
+find ./ -iname '*.ebuild' -type f -exec sh -c '
+ ebuild "$0" manifest
+' {} \;
diff --git a/www-misc/firefox-policy/Manifest b/www-misc/firefox-policy/Manifest
new file mode 100644
index 0000000..1988860
--- /dev/null
+++ b/www-misc/firefox-policy/Manifest
@@ -0,0 +1 @@
+EBUILD firefox-policy-9999.ebuild 1457 BLAKE2B 3df9d734b322719f3edf678b27d965944054179330f4fa264787b6768092f4b6fb8403452f5f524e9a34f9c271b4d5c7c953833e7700f179e112efa3afbf82a5 SHA512 ca3951366d3948701a03360069efe3add00995426cf9392cee29646d4d66304276906f6638bd297c716e8c8015861fde5335297d97a976a9235bf8e39692c1d2
diff --git a/www-misc/firefox-policy/firefox-policy-9999.ebuild b/www-misc/firefox-policy/firefox-policy-9999.ebuild
new file mode 100644
index 0000000..eaabac0
--- /dev/null
+++ b/www-misc/firefox-policy/firefox-policy-9999.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Generating Firefox system-wide policies to handle addons and updates"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS=""
+IUSE="+noupdate +ublock redirect nocookiespopup"
+
+RDEPEND="
+ ublock? ( www-plugins/ublock-origin-bin )
+ redirect? ( www-plugins/libredirect-bin )
+ nocookiespopup? ( www-plugins/istilldontcareaboutcookies-bin )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="app-misc/jq"
+
+S="${WORKDIR}"
+
+_add_addon_entry() {
+ echo "$1" | jq ".policies.ExtensionSettings +=
+ { \"$2\" :
+ {
+ \"install_url\" : \"file:///usr/share/firefox-addons/$2.xpi\",
+ \"installation_mode\" : \"normal_installed\",
+ \"updates_disabled\" : true
+ }
+ }"
+}
+
+src_install() {
+ # firefox-bin installs policies to /opt/firefox/distribution/policies.json
+ # policy in /etc overrides it
+ dodir /etc/firefox/policies
+ policy=""
+ if use noupdate ; then
+ # browser updates
+ policy="$(jq -n '.policies += { "DisableAppUpdates" : true }')"
+ fi
+ if use ublock ; then
+ # uBlockOrigin
+ policy="$(_add_addon_entry "$policy" "uBlock0@raymondhill.net")"
+ fi
+ if use redirect ; then
+ # LibRedirect
+ policy="$(_add_addon_entry "$policy" "7esoorv3@alefvanoon.anonaddy.me")"
+ fi
+ if use nocookiespopup ; then
+ # I still don't care about cookies
+ policy="$(_add_addon_entry "$policy" "idcac-pub@guus.ninja")"
+ fi
+ echo "$policy" > "${D}/etc/firefox/policies/policies.json"
+}
diff --git a/www-plugins/istilldontcareaboutcookies-bin/Manifest b/www-plugins/istilldontcareaboutcookies-bin/Manifest
new file mode 100644
index 0000000..9c3f8c8
--- /dev/null
+++ b/www-plugins/istilldontcareaboutcookies-bin/Manifest
@@ -0,0 +1,2 @@
+DIST istilldontcareaboutcookies-1.1.4.xpi 530474 BLAKE2B 6537d666c9e5ea8c23181647e487feb6ff272badfaa482ad6f48b41a840be9ea5762ef1bfe1224748b4d603f695b4433e24a1f9925b8ed7c03fdf0780bb53568 SHA512 f0a15c4e4609fbf232bda4fbcd8646775fcbe3e79f704c814e9630c4290c8f8b33a4d8e8d6ee8177b5095c39b535088fad6ea7db89d48d6bbbea02a3a6f05779
+EBUILD istilldontcareaboutcookies-bin-1.1.4.ebuild 699 BLAKE2B 7cd3bd63670d5302c76d7de8ceb2efdb1cba309ccc10ead1b0de7ad71a1118d2511f24f4c13aaa5d2cb4c1cd319ce19524a16c9651c7d0b5f5166c866dd15e85 SHA512 770c03c2486eddf852a6c526caf0603ef4e19f2cae76ea49306e5ddced83061ea4e04296b422d4ec0e8805e386887edcc6eb32618a3f01691dcec2a3df8b2ac6
diff --git a/www-plugins/istilldontcareaboutcookies-bin/istilldontcareaboutcookies-bin-1.1.4.ebuild b/www-plugins/istilldontcareaboutcookies-bin/istilldontcareaboutcookies-bin-1.1.4.ebuild
new file mode 100644
index 0000000..683c6ba
--- /dev/null
+++ b/www-plugins/istilldontcareaboutcookies-bin/istilldontcareaboutcookies-bin-1.1.4.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+VER="1.1.4"
+
+DESCRIPTION="LibRedirect addon for Firefox"
+HOMEPAGE="https://github.com/libredirect/browser_extension"
+XPI="istilldontcareaboutcookies-${VER}.xpi"
+SRC_URI="https://addons.mozilla.org/firefox/downloads/file/4216095/${XPI}"
+# alternative
+#SRC_URI="https://github.com/OhMyGuus/I-Still-Dont-Care-About-Cookies/releases/download/v${VER}/${XPI}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}"
+BDEPEND=""
+
+S="${WORKDIR}"
+
+src_install() {
+ dodir "/usr/share/firefox-addons"
+ cp "${DISTDIR}/${XPI}" "${D}/usr/share/firefox-addons/idcac-pub@guus.ninja.xpi"
+}
diff --git a/www-plugins/libredirect-bin/Manifest b/www-plugins/libredirect-bin/Manifest
new file mode 100644
index 0000000..6bae46b
--- /dev/null
+++ b/www-plugins/libredirect-bin/Manifest
@@ -0,0 +1,2 @@
+DIST libredirect-2.8.4.xpi 944551 BLAKE2B 004c4c609a87389a6cda83e72c5db0d84cf49710238749a6b18a67fe3df096f0d38738c6d45356b51748b444303dcf51256228b475cc895d6917dcc96d328f18 SHA512 4cadffbb73168eb7d94576786725f120ec9f8572f3137fc44ca985168ad01ed31c1151b9eba43c6d4456a7b8a19f2c37e52687c10676c110fa22018dc061743a
+EBUILD libredirect-bin-2.8.4.ebuild 577 BLAKE2B 8044fc2241ceee14eb1de3aa595e7e7e67b6654170e4b9b3a5a6d3ab9dc7499c8f8070a53e6a72083a778af6da4a11dc2a1baa918fb99e794ca9db164f1b5f1e SHA512 4d030af991fa629210d78f166ca0be9cc16f5b7cb4a5c8e41435cebfd7e6ebd2e1738f4e274583c196ddebf68bf7d7cc1f339d31df8ce7fd3c5e5dd9cef30b52
diff --git a/www-plugins/libredirect-bin/libredirect-bin-2.8.4.ebuild b/www-plugins/libredirect-bin/libredirect-bin-2.8.4.ebuild
new file mode 100644
index 0000000..a5c7591
--- /dev/null
+++ b/www-plugins/libredirect-bin/libredirect-bin-2.8.4.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+VER="2.8.4"
+
+DESCRIPTION="LibRedirect addon for Firefox"
+HOMEPAGE="https://github.com/libredirect/browser_extension"
+XPI="libredirect-${VER}.xpi"
+SRC_URI="https://addons.mozilla.org/firefox/downloads/file/4280925/${XPI}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}"
+BDEPEND=""
+
+S="${WORKDIR}"
+
+src_install() {
+ dodir "/usr/share/firefox-addons"
+ cp "${DISTDIR}/${XPI}" "${D}/usr/share/firefox-addons/7esoorv3@alefvanoon.anonaddy.me.xpi"
+}
diff --git a/www-plugins/ublock-origin-bin/Manifest b/www-plugins/ublock-origin-bin/Manifest
new file mode 100644
index 0000000..014d968
--- /dev/null
+++ b/www-plugins/ublock-origin-bin/Manifest
@@ -0,0 +1,4 @@
+DIST ublock_origin-1.55.0.xpi 3861786 BLAKE2B 4187817a0a0583e9b3d8b8760aa92ab27e033df485b1b9cc534d5fbe7e3538f5b44de515bd0ee0b6b619900320c6abddbb2274a64b61bd3458237906baf45012 SHA512 1d80d44c6c9fe965c3f6bdc9355b577339669e992c2d2b46340c8beb7c84834e132d722567abdd667817a6508410ee7badb9f9f5f72a4b418839de7fc51af54c
+DIST ublock_origin-1.57.2.xpi 3861786 BLAKE2B 4187817a0a0583e9b3d8b8760aa92ab27e033df485b1b9cc534d5fbe7e3538f5b44de515bd0ee0b6b619900320c6abddbb2274a64b61bd3458237906baf45012 SHA512 1d80d44c6c9fe965c3f6bdc9355b577339669e992c2d2b46340c8beb7c84834e132d722567abdd667817a6508410ee7badb9f9f5f72a4b418839de7fc51af54c
+EBUILD ublock-origin-bin-1.55.0.ebuild 693 BLAKE2B 0511565170f6f72c06522738b176b1eab3e7ec4ac1154c59656b036f12180350a1fc9850a867759e4b0582fcc263e9c9efc048b7aac393ea49aeac6073eb04f9 SHA512 bcc8f6b0b1c1e9def5b5035955f94ebf537f2507f8a1417f63b489d39fa1ee8b43ea86dd8a8d8ab2524038d092f7f9bac5f8263aba59343095fb1f48e32b303d
+EBUILD ublock-origin-bin-1.57.2.ebuild 691 BLAKE2B ff5d82f4ba685ce1fa2ca6a28fbafae1fb9d274df92af5953b70662466f2aaca27100fa07649f098956f9ab76703e60d689729900cc6a2e591db8c0e5f3746d2 SHA512 4fb8a09db868985153fe0551040d28c6097697b5e303129fc7d79dbee49ef609515f8e560f4286acde15f100b4bd680e3cad418e56fa064a59e3f62deae59d3d
diff --git a/www-plugins/ublock-origin-bin/ublock-origin-bin-1.55.0.ebuild b/www-plugins/ublock-origin-bin/ublock-origin-bin-1.55.0.ebuild
new file mode 100644
index 0000000..fecaa6d
--- /dev/null
+++ b/www-plugins/ublock-origin-bin/ublock-origin-bin-1.55.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+VER="1.55.0"
+
+DESCRIPTION="uBlock Origin addon for Firefox"
+HOMEPAGE="https://github.com/gorhill/uBlock"
+XPI="ublock_origin-${VER}.xpi"
+SRC_URI="https://addons.mozilla.org/firefox/downloads/file/4261710/${XPI}"
+# alternative
+# XPI="uBlock0_${VER}.firefox.signed.xpi"
+# SRC_URI="https://github.com/gorhill/uBlock/releases/download/${VER}/${XPI}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}"
+BDEPEND=""
+
+S="${WORKDIR}"
+
+src_install() {
+ dodir "/usr/share/firefox-addons"
+ cp "${DISTDIR}/${XPI}" "${D}/usr/share/firefox-addons/uBlock0@raymondhill.net.xpi"
+}
diff --git a/www-plugins/ublock-origin-bin/ublock-origin-bin-1.57.2.ebuild b/www-plugins/ublock-origin-bin/ublock-origin-bin-1.57.2.ebuild
new file mode 100644
index 0000000..7c8db1a
--- /dev/null
+++ b/www-plugins/ublock-origin-bin/ublock-origin-bin-1.57.2.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+VER="1.57.2"
+
+DESCRIPTION="uBlock Origin addon for Firefox"
+HOMEPAGE="https://github.com/gorhill/uBlock"
+XPI="ublock_origin-${VER}.xpi"
+SRC_URI="https://addons.mozilla.org/firefox/downloads/file/4261710/${XPI}"
+# alternative
+#XPI="uBlock0_${VER}.firefox.signed.xpi"
+#SRC_URI="https://github.com/gorhill/uBlock/releases/download/${VER}/${XPI}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}"
+BDEPEND=""
+
+S="${WORKDIR}"
+
+src_install() {
+ dodir "/usr/share/firefox-addons"
+ cp "${DISTDIR}/${XPI}" "${D}/usr/share/firefox-addons/uBlock0@raymondhill.net.xpi"
+}
diff --git a/www-plugins/ublock-origin/Manifest b/www-plugins/ublock-origin/Manifest
new file mode 100644
index 0000000..a2fccbe
--- /dev/null
+++ b/www-plugins/ublock-origin/Manifest
@@ -0,0 +1,2 @@
+DIST uBlock.git 350167 BLAKE2B 382975d112b61bf249b2f153da3453f2114a372edd2b9c540419137a73c4bb3b7a2eddf6e621b921ee9b1fb38c4a3e8484fa09e11f5fb64b45cebedad85dbbac SHA512 29560fc2dd237a3652f6b56fb8480d32c9c9d25081e55a4d722fc73beaf164fafd27c726a711f8b490a3527d922b40f73d9dc629e249013d02a7aaf60c523929
+EBUILD ublock-origin-9999.ebuild 726 BLAKE2B 9eb2b15b570edb164eeb51845443d208843ecc3d69dbf49af808e9ad0127f1fb8af29c2bcfd63ef4d1b055224966141c7fc09503fbf04bebf9a63b3318ba180c SHA512 979a33b514fd12c2a6f508f16649547515418b4f3de6367bac567549d3274aa804b318c5c4201bda865aca2b8d4cfec2ad9af9eb119a60bd715da5b2a9a0596f
diff --git a/www-plugins/ublock-origin/ublock-origin-9999.ebuild b/www-plugins/ublock-origin/ublock-origin-9999.ebuild
new file mode 100644
index 0000000..17458e7
--- /dev/null
+++ b/www-plugins/ublock-origin/ublock-origin-9999.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="uBlock Origin addon for Firefox"
+HOMEPAGE="https://github.com/gorhill/uBlock"
+SRC_URI="https://github.com/gorhill/uBlock.git"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}"
+BDEPEND="dev-build/ninja net-libs/nodejs"
+
+inherit git-r3
+
+src_unpack() {
+ EGIT_REPO_URI="$SRC_URI"
+ EGIT_CLONE_TYPE="shallow"
+ git-r3_src_unpack
+ cd "${S}"
+ tools/pull-assets.sh
+ cd -
+}
+
+src_compile() {
+ cd "${S}"
+ tools/make-firefox.sh all
+ cd -
+}
+
+src_install() {
+ dodir /usr/share/firefox-addons
+ cp "${S}/dist/build/uBlock0.firefox.xpi" "${D}/usr/share/firefox-addons/uBlock0@raymondhill.net.xpi"
+}