logo

overlay

My (experimental) gentoo overlay
commit: 656b354d1e15e41093765cae540b7ced70b489b7
parent: 282f9b2d7fc4a1a35e04bdb579852ce0d16c3cbb
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 19 Sep 2018 05:25:51 +0200

www-plugins/firefox-user-js: New package

Diffstat:

Awww-plugins/firefox-user-js/files/local-settings.js2++
Awww-plugins/firefox-user-js/firefox-user-js-9999.ebuild38++++++++++++++++++++++++++++++++++++++
Awww-plugins/firefox-user-js/metadata.xml8++++++++
3 files changed, 48 insertions(+), 0 deletions(-)

diff --git a/www-plugins/firefox-user-js/files/local-settings.js b/www-plugins/firefox-user-js/files/local-settings.js @@ -0,0 +1,2 @@ +pref("general.config.obscure_value", 0); +pref("general.config.filename", "mozilla.cfg"); diff --git a/www-plugins/firefox-user-js/firefox-user-js-9999.ebuild b/www-plugins/firefox-user-js/firefox-user-js-9999.ebuild @@ -0,0 +1,38 @@ +# Copyright 2018 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit git-r3 + +DESCRIPTION="Firefox configuration hardening" +HOMEPAGE="https://github.com/pyllyukko/user.js" +SLOT="0" +LICENSE="MIT" + +FEATURES="test" + +EGIT_REPO_URI="${HOMEPAGE}.git" + +src_prepare() { + default + + cp "${FILESDIR}/local-settings.js" . + + sed -i 's/tests/test/' Makefile || die "Failed changing tests to test" + sed -i '{/all:/ s/test//}' Makefile || die "Failed removing test from ``make all``" + sed -i '{/test:/ s/acorn//}' Makefile || die "Failed removing acorn (unknown command) from test" +} + +src_compile() { + default + emake systemwide_user.js +} + +src_install() { + insinto /usr/lib/firefox + newins systemwide_user.js mozilla.cfg + + insinto /usr/lib/firefox/defaults/pref/ + doins local-settings.js +} diff --git a/www-plugins/firefox-user-js/metadata.xml b/www-plugins/firefox-user-js/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>contact@hacktivis.me</email> + <name>Haelwenn (lanodan) Monnier</name> +</maintainer> +</pkgmetadata>