1 |
commit: 47648102ce6530a8edfc2b9762bf3956256a7052 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 19 05:41:44 2018 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 19 05:51:33 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47648102 |
7 |
|
8 |
www-plugins/browserpass: Version bump to 2.0.22 |
9 |
|
10 |
Also install for Chrome as well, per bug 656962. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/656962 |
13 |
|
14 |
www-plugins/browserpass/Manifest | 1 + |
15 |
www-plugins/browserpass/browserpass-2.0.22.ebuild | 53 +++++++++++++++++++++++ |
16 |
2 files changed, 54 insertions(+) |
17 |
|
18 |
diff --git a/www-plugins/browserpass/Manifest b/www-plugins/browserpass/Manifest |
19 |
index ddb9a53f288..8264f541cb7 100644 |
20 |
--- a/www-plugins/browserpass/Manifest |
21 |
+++ b/www-plugins/browserpass/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST browserpass-2.0.11.tar.gz 176787 BLAKE2B 271c3cf340ecc78c3358f21bc0e6bbcaf857b4ca39c7b0dcf58b1fcef62ea5df4f48adb4ac0bf7c884853f359fdb9ca00300e2f99efa48a1fdc0ba99ce7bd172 SHA512 baa362b63c1743273f56cb7576f96c29ca365fb217d3016824cdb1ce215e36b7f98fc7c3340a5a34853bde7c25283c84ceda570d149a8119bc54be2f0194034b |
24 |
DIST browserpass-2.0.13.tar.gz 180424 BLAKE2B e2a1796edf3b037553cb9bd33f072cd25953d8262fa584c371c3df638c77fc352953c698963325a5cee9b29c81cc010ded72bb31abac9460603796f4a95267ed SHA512 8d28144aef061770f11d7ba288dfa82f8873a263b8ccff235e26e83c55700e5ed0210dec2c2fb45751f3ad15d1894503407ec901d272783b98c466d74d9156f0 |
25 |
+DIST browserpass-2.0.22.tar.gz 49730 BLAKE2B a37d55a7b2a162a54931a3dde53b16e6c4d067f92dad129e92664dac726c3171938d5da94fe45c64227f4e4a860a12d0cdbb1aa147942f0199c2f4b9bed5fd7a SHA512 f3c19df72afd1387d7142b5e818dfe95a730c906277be0f16522986f387f659eb4a9decaf54eef5b6649ddc618d93b055c99b594fc4b949ce09a38cf2e6d9525 |
26 |
|
27 |
diff --git a/www-plugins/browserpass/browserpass-2.0.22.ebuild b/www-plugins/browserpass/browserpass-2.0.22.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..7107e7c5253 |
30 |
--- /dev/null |
31 |
+++ b/www-plugins/browserpass/browserpass-2.0.22.ebuild |
32 |
@@ -0,0 +1,53 @@ |
33 |
+# Copyright 1999-2018 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+EGO_PN=github.com/dannyvankooten/browserpass |
38 |
+ |
39 |
+if [[ ${PV} == 9999 ]]; then |
40 |
+ inherit golang-vcs |
41 |
+else |
42 |
+ KEYWORDS="~amd64" |
43 |
+ SRC_URI="https://${EGO_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+ inherit golang-vcs-snapshot |
45 |
+fi |
46 |
+inherit golang-build |
47 |
+ |
48 |
+DESCRIPTION="WebExtension host binary for pass, a UNIX password manager" |
49 |
+HOMEPAGE="https://github.com/dannyvankooten/browserpass" |
50 |
+LICENSE="MIT" |
51 |
+SLOT="0" |
52 |
+RDEPEND="app-crypt/gnupg" |
53 |
+DEPEND="${RDEPEND} |
54 |
+ dev-go/fuzzy:= |
55 |
+ dev-go/twofactor:= |
56 |
+ dev-go/zglob:=" |
57 |
+ |
58 |
+DOCS=( CONTRIBUTING.md README.md ) |
59 |
+ |
60 |
+src_compile() { |
61 |
+ EGO_PN="${EGO_PN}/cmd/browserpass" golang-build_src_compile |
62 |
+ |
63 |
+ pushd "src/${EGO_PN}" >/dev/null || die |
64 |
+ sed -e 's|%%replace%%|'${EPREFIX}'/usr/libexec/browserpass|' \ |
65 |
+ -i firefox/host.json chrome/host.json || die |
66 |
+ popd >/dev/null || die |
67 |
+} |
68 |
+ |
69 |
+src_install() { |
70 |
+ exeinto /usr/libexec |
71 |
+ doexe browserpass |
72 |
+ |
73 |
+ pushd "src/${EGO_PN}" >/dev/null || die |
74 |
+ insinto /usr/$(get_libdir)/mozilla/native-messaging-hosts |
75 |
+ newins firefox/host.json com.dannyvankooten.browserpass.json |
76 |
+ |
77 |
+ insinto /etc/chromium/native-messaging-hosts |
78 |
+ newins chrome/host.json com.dannyvankooten.browserpass.json |
79 |
+ |
80 |
+ insinto /etc/opt/chrome/native-messaging-hosts |
81 |
+ newins chrome/host.json com.dannyvankooten.browserpass.json |
82 |
+ |
83 |
+ einstalldocs |
84 |
+ popd >/dev/null || die |
85 |
+} |