1 |
commit: fcf8d7aab3930f17f936cb8aff06379b24dd2e61 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 1 18:27:17 2019 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 1 19:07:25 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcf8d7aa |
7 |
|
8 |
www-plugins/browserpass: Port to go-module |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
www-plugins/browserpass/Manifest | 3 ++ |
13 |
.../browserpass/browserpass-3.0.6-r1.ebuild | 47 ++++++++++++++++++++++ |
14 |
2 files changed, 50 insertions(+) |
15 |
|
16 |
diff --git a/www-plugins/browserpass/Manifest b/www-plugins/browserpass/Manifest |
17 |
index 0ecc5f7ed2e..fac189e8da7 100644 |
18 |
--- a/www-plugins/browserpass/Manifest |
19 |
+++ b/www-plugins/browserpass/Manifest |
20 |
@@ -1 +1,4 @@ |
21 |
DIST browserpass-3.0.6.tar.gz 17055 BLAKE2B aa2881631db8cc7f54f690cd56101c3e470528d990eed51b15aab6b834f63d4b9f576ee4e101dd61a6013ce25644058bfcc3673aaa037ce182c331754b27bddb SHA512 48cc93843afed5dc0df4f72956df44b325d6c772ad232d8faa2315c4d8b716eda9b030601e011b280445e0b01528f413e5b19818ad89cd7bcb06f4a1f4f9d3f4 |
22 |
+DIST github.com-golang-sys-6d18c012aee9febd81bbf9806760c8c4480e870d.tar.gz 1532865 BLAKE2B 35294c250562b5338ab9367cdd1f1b536e83914b915981cf503997456be45efcc1567ac0309d4b41a5918f0fb3735e256a5496056db618b67745ffc8423383fe SHA512 18a6556545687f54b637c4631189419272c3664f48c283c8cb011aed36fad8ab297b5301b0ee268e5841781b0e6d01f2296e9746a7627196633a69b15f96b7ea |
23 |
+DIST github.com-mattn-go-zglob-a8912a37f9e7.tar.gz 8030 BLAKE2B 2c7719a15f598b06d479bf35b1154b0685ee94d7c94bae9a3e3ae63b0706b63c885cd226e2749402a92d5937a5d8b03aa94ccf14fad6c8adbaf438ed131f04f4 SHA512 ebcd8096a15082f454be3d6349e1ae092696db52b843ca2cad84fb4ba8f5f9411db7b9bf40e387238e30c33495062ee711de4249e56889fa059c9c6ccd1600f0 |
24 |
+DIST github.com-sirupsen-logrus-v1.4.2.tar.gz 41373 BLAKE2B 3675dd82fd9c174fddf93eea87f3ca2c2671d9719ba148b03136c35ce6a3ce95866c57cb706a641a14522a522606dc9ea9ec9f0a6c7da6f8cf18f46b9f4bd3ee SHA512 c29689e5ea0ff919afc6fe1c492898d8b898e6831c442d3fc45c29508bdfda08604b1ea09d3b17db401bddca69fd5f8f744610075ee3c0577df6a537e0980a13 |
25 |
|
26 |
diff --git a/www-plugins/browserpass/browserpass-3.0.6-r1.ebuild b/www-plugins/browserpass/browserpass-3.0.6-r1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..e02b6f12b69 |
29 |
--- /dev/null |
30 |
+++ b/www-plugins/browserpass/browserpass-3.0.6-r1.ebuild |
31 |
@@ -0,0 +1,47 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+inherit go-module |
37 |
+ |
38 |
+DESCRIPTION="WebExtension host binary for app-admin/pass, a UNIX password manager" |
39 |
+HOMEPAGE="https://github.com/browserpass/browserpass-native" |
40 |
+ |
41 |
+EGO_VENDOR=( |
42 |
+ "github.com/mattn/go-zglob a8912a37f9e7" # MIT |
43 |
+ "github.com/sirupsen/logrus v1.4.2" # MIT |
44 |
+ "golang.org/x/sys 6d18c012aee9febd81bbf9806760c8c4480e870d github.com/golang/sys" # BSD |
45 |
+) |
46 |
+ |
47 |
+MY_PN=browserpass-native |
48 |
+SRC_URI="https://github.com/browserpass/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz |
49 |
+ $(go-module_vendor_uris)" |
50 |
+ |
51 |
+LICENSE="BSD ISC MIT" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64" |
54 |
+DEPEND="" |
55 |
+RDEPEND="app-crypt/gnupg" |
56 |
+ |
57 |
+S="${WORKDIR}"/${MY_PN}-${PV} |
58 |
+ |
59 |
+src_compile() { |
60 |
+ go build || die |
61 |
+ |
62 |
+ sed -e 's|%%replace%%|'${EPREFIX}'/usr/libexec/browserpass-native|' \ |
63 |
+ -i browser-files/firefox-host.json browser-files/chromium-host.json || die |
64 |
+} |
65 |
+ |
66 |
+src_install() { |
67 |
+ exeinto /usr/libexec |
68 |
+ doexe browserpass-native |
69 |
+ |
70 |
+ insinto /usr/$(get_libdir)/mozilla/native-messaging-hosts |
71 |
+ newins browser-files/firefox-host.json com.github.browserpass.native.json |
72 |
+ |
73 |
+ insinto /etc/chromium/native-messaging-hosts |
74 |
+ newins browser-files/chromium-host.json com.github.browserpass.native.json |
75 |
+ |
76 |
+ insinto /etc/opt/chrome/native-messaging-hosts |
77 |
+ newins browser-files/chromium-host.json com.github.browserpass.native.json |
78 |
+} |