summaryrefslogtreecommitdiff
path: root/www-plugins/browserpass
diff options
context:
space:
mode:
Diffstat (limited to 'www-plugins/browserpass')
-rw-r--r--www-plugins/browserpass/Manifest4
-rw-r--r--www-plugins/browserpass/browserpass-3.0.6-r1.ebuild47
2 files changed, 51 insertions, 0 deletions
diff --git a/www-plugins/browserpass/Manifest b/www-plugins/browserpass/Manifest
index fc7f5108ccbe..0119412e51b0 100644
--- a/www-plugins/browserpass/Manifest
+++ b/www-plugins/browserpass/Manifest
@@ -1,3 +1,7 @@
DIST browserpass-3.0.6.tar.gz 17055 BLAKE2B aa2881631db8cc7f54f690cd56101c3e470528d990eed51b15aab6b834f63d4b9f576ee4e101dd61a6013ce25644058bfcc3673aaa037ce182c331754b27bddb SHA512 48cc93843afed5dc0df4f72956df44b325d6c772ad232d8faa2315c4d8b716eda9b030601e011b280445e0b01528f413e5b19818ad89cd7bcb06f4a1f4f9d3f4
+DIST github.com-golang-sys-6d18c012aee9febd81bbf9806760c8c4480e870d.tar.gz 1532865 BLAKE2B 35294c250562b5338ab9367cdd1f1b536e83914b915981cf503997456be45efcc1567ac0309d4b41a5918f0fb3735e256a5496056db618b67745ffc8423383fe SHA512 18a6556545687f54b637c4631189419272c3664f48c283c8cb011aed36fad8ab297b5301b0ee268e5841781b0e6d01f2296e9746a7627196633a69b15f96b7ea
+DIST github.com-mattn-go-zglob-a8912a37f9e7.tar.gz 8030 BLAKE2B 2c7719a15f598b06d479bf35b1154b0685ee94d7c94bae9a3e3ae63b0706b63c885cd226e2749402a92d5937a5d8b03aa94ccf14fad6c8adbaf438ed131f04f4 SHA512 ebcd8096a15082f454be3d6349e1ae092696db52b843ca2cad84fb4ba8f5f9411db7b9bf40e387238e30c33495062ee711de4249e56889fa059c9c6ccd1600f0
+DIST github.com-sirupsen-logrus-v1.4.2.tar.gz 41373 BLAKE2B 3675dd82fd9c174fddf93eea87f3ca2c2671d9719ba148b03136c35ce6a3ce95866c57cb706a641a14522a522606dc9ea9ec9f0a6c7da6f8cf18f46b9f4bd3ee SHA512 c29689e5ea0ff919afc6fe1c492898d8b898e6831c442d3fc45c29508bdfda08604b1ea09d3b17db401bddca69fd5f8f744610075ee3c0577df6a537e0980a13
+EBUILD browserpass-3.0.6-r1.ebuild 1361 BLAKE2B e1a0506035d3818109bfe7797aa39e394be4c20ccd4e06881064ac357a25c065fedf145eec6318ad6a82cbe7edd86acf5e4ad22ad15263a0bdc311b6aaff78df SHA512 c5c17658281dc1243c82d8459cb9bebf6c86c756cf9d71b9ef759788700a94fa96bf704acc644e55d5616c693d7bad64a11ebd5554fd273161e9040e99f80094
EBUILD browserpass-3.0.6.ebuild 1452 BLAKE2B d7125291725c1b5580c2d790e9294cfb69dae8fc0b69fd7eb9473ff2a74b5122b2b96fb224122e8365a017346d1a37ebeb5982f193fef6164a6301255bbfef16 SHA512 4f12769490c6bd3efad5ab211de01c1fa1387a0b9905fe792500c92bb504a8f22aae40bf152176a5edeea4a9cd6eaf49939772891b171f22164b5dea5493693b
MISC metadata.xml 246 BLAKE2B c7559c694569e2eb079aa44ab82aac05dd7218624519133b1d1de233f6d4bce0872ada012e00dc369051e9685d9a25d314c05318d1b109ee81945dd739da51df SHA512 0d07f784095273f14c7d63a215a76c84fec302e6e52717f0e47c29916aa90149239dfe7ed3227a42e2863226e4448d8a2e8321ccc589ad6d9f725731b45559a2
diff --git a/www-plugins/browserpass/browserpass-3.0.6-r1.ebuild b/www-plugins/browserpass/browserpass-3.0.6-r1.ebuild
new file mode 100644
index 000000000000..e02b6f12b69b
--- /dev/null
+++ b/www-plugins/browserpass/browserpass-3.0.6-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit go-module
+
+DESCRIPTION="WebExtension host binary for app-admin/pass, a UNIX password manager"
+HOMEPAGE="https://github.com/browserpass/browserpass-native"
+
+EGO_VENDOR=(
+ "github.com/mattn/go-zglob a8912a37f9e7" # MIT
+ "github.com/sirupsen/logrus v1.4.2" # MIT
+ "golang.org/x/sys 6d18c012aee9febd81bbf9806760c8c4480e870d github.com/golang/sys" # BSD
+)
+
+MY_PN=browserpass-native
+SRC_URI="https://github.com/browserpass/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
+ $(go-module_vendor_uris)"
+
+LICENSE="BSD ISC MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+DEPEND=""
+RDEPEND="app-crypt/gnupg"
+
+S="${WORKDIR}"/${MY_PN}-${PV}
+
+src_compile() {
+ go build || die
+
+ sed -e 's|%%replace%%|'${EPREFIX}'/usr/libexec/browserpass-native|' \
+ -i browser-files/firefox-host.json browser-files/chromium-host.json || die
+}
+
+src_install() {
+ exeinto /usr/libexec
+ doexe browserpass-native
+
+ insinto /usr/$(get_libdir)/mozilla/native-messaging-hosts
+ newins browser-files/firefox-host.json com.github.browserpass.native.json
+
+ insinto /etc/chromium/native-messaging-hosts
+ newins browser-files/chromium-host.json com.github.browserpass.native.json
+
+ insinto /etc/opt/chrome/native-messaging-hosts
+ newins browser-files/chromium-host.json com.github.browserpass.native.json
+}