diff --git a/www-plugins/chrome-floccus/Manifest b/www-plugins/chrome-floccus/Manifest new file mode 100644 index 000000000..284d0084f --- /dev/null +++ b/www-plugins/chrome-floccus/Manifest @@ -0,0 +1 @@ +DIST chrome-floccus-4.19.1.tar.bz2 5041900 BLAKE2B c226a365b82941aeb60abda9e695f00dfd80a7187012ed4ccb215d3dd7f42d5bb493006fad525663e6232a827a26ef838bbfed111d15ce9351eeb7f967b02e5d SHA512 f4547501cd828f17d9eebe36cc9de71f286a3274a06df86be89b83a7fd4097aea0e906ee9824ebea939e4132f534b0871f89012e19b6de9c5622672ff2e4c799 diff --git a/www-plugins/chrome-floccus/chrome-floccus-4.19.1.ebuild b/www-plugins/chrome-floccus/chrome-floccus-4.19.1.ebuild new file mode 100644 index 000000000..6295a32e3 --- /dev/null +++ b/www-plugins/chrome-floccus/chrome-floccus-4.19.1.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=8 + +SRC_URI="https://mirror.calculate-linux.org/source/${PN}/${P}.tar.bz2" + +DESCRIPTION="Bitwarden - The password manager" +HOMEPAGE="https://chrome.google.com/webstore/detail/nngceckbapebfimnlniiiahkandclblb" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" + +RDEPEND="dev-python/plyvel + dev-python/sjcl" + +S="${WORKDIR}" + +src_install() { + insinto /usr/share/${PN} + doins -r * + doins "${FILESDIR}"/configure.py + fperms 755 /usr/share/$PN/configure.py +} diff --git a/www-plugins/chrome-floccus/files/configure.py b/www-plugins/chrome-floccus/files/configure.py new file mode 100644 index 000000000..2d3e7f9a5 --- /dev/null +++ b/www-plugins/chrome-floccus/files/configure.py @@ -0,0 +1,21 @@ +#!/usr/bin/python3 + +import plyvel +import json +import sys +from os import path + +data = json.load(sys.stdin) + +if len(sys.argv) < 3: + sys.stderr.write("configure.py chrome-dir ext-id") + sys.exit(1) + +chrome_dir = sys.argv[1] +ext_id = sys.argv[2] + +db_path = path.join(chrome_dir,"Default/Local Extension Settings", ext_id) +db = plyvel.DB(db_path, create_if_missing=True) +for k,v in data.items(): + db.put(bytes(k,encoding='utf-8'), bytes(v,encoding='utf-8')) +db.close() diff --git a/www-plugins/chrome-floccus/metadata.xml b/www-plugins/chrome-floccus/metadata.xml new file mode 100644 index 000000000..ee8676aae --- /dev/null +++ b/www-plugins/chrome-floccus/metadata.xml @@ -0,0 +1,9 @@ + + + + + support@calculate.ru + Mir Calculate + Calculate Overlay + +