1 |
commit: 2f73d8f7fc0809a58dbe71355bd8c6756042c737 |
2 |
Author: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Feb 1 00:59:04 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 7 20:14:45 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f73d8f7 |
7 |
|
8 |
www-plugins/browserpass: new package |
9 |
|
10 |
The Browserpass package provides the host binary necessary for the |
11 |
(Firefox or Chrome) browser extension to read your app-admin/pass |
12 |
password store to authenticate websites. |
13 |
|
14 |
Closes: https://github.com/gentoo/gentoo/pull/5836 |
15 |
|
16 |
www-plugins/browserpass/Manifest | 1 + |
17 |
www-plugins/browserpass/browserpass-2.0.11.ebuild | 48 +++++++++++++++++++++++ |
18 |
www-plugins/browserpass/metadata.xml | 12 ++++++ |
19 |
3 files changed, 61 insertions(+) |
20 |
|
21 |
diff --git a/www-plugins/browserpass/Manifest b/www-plugins/browserpass/Manifest |
22 |
new file mode 100644 |
23 |
index 00000000000..7bb299c0901 |
24 |
--- /dev/null |
25 |
+++ b/www-plugins/browserpass/Manifest |
26 |
@@ -0,0 +1 @@ |
27 |
+DIST browserpass-2.0.11.tar.gz 176787 BLAKE2B 271c3cf340ecc78c3358f21bc0e6bbcaf857b4ca39c7b0dcf58b1fcef62ea5df4f48adb4ac0bf7c884853f359fdb9ca00300e2f99efa48a1fdc0ba99ce7bd172 SHA512 baa362b63c1743273f56cb7576f96c29ca365fb217d3016824cdb1ce215e36b7f98fc7c3340a5a34853bde7c25283c84ceda570d149a8119bc54be2f0194034b |
28 |
|
29 |
diff --git a/www-plugins/browserpass/browserpass-2.0.11.ebuild b/www-plugins/browserpass/browserpass-2.0.11.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..6abafb5c213 |
32 |
--- /dev/null |
33 |
+++ b/www-plugins/browserpass/browserpass-2.0.11.ebuild |
34 |
@@ -0,0 +1,48 @@ |
35 |
+# Copyright 1999-2018 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=6 |
39 |
+EGO_PN=github.com/dannyvankooten/browserpass |
40 |
+ |
41 |
+if [[ ${PV} == 9999 ]]; then |
42 |
+ inherit golang-vcs |
43 |
+else |
44 |
+ KEYWORDS="~amd64" |
45 |
+ SRC_URI="https://${EGO_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
46 |
+ inherit golang-vcs-snapshot |
47 |
+fi |
48 |
+inherit golang-build |
49 |
+ |
50 |
+DESCRIPTION="WebExtension host binary for pass, a UNIX password manager" |
51 |
+HOMEPAGE="https://github.com/dannyvankooten/browserpass" |
52 |
+LICENSE="MIT" |
53 |
+SLOT="0" |
54 |
+RDEPEND="app-crypt/gnupg" |
55 |
+DEPEND="${RDEPEND} |
56 |
+ dev-go/twofactor:= |
57 |
+ dev-go/zglob:=" |
58 |
+ |
59 |
+DOCS=( CONTRIBUTING.md README.md ) |
60 |
+ |
61 |
+src_compile() { |
62 |
+ EGO_PN="${EGO_PN}/cmd/browserpass" golang-build_src_compile |
63 |
+ |
64 |
+ pushd "src/${EGO_PN}" >/dev/null || die |
65 |
+ sed -e 's|%%replace%%|'${EPREFIX}'/usr/bin/browserpass|' \ |
66 |
+ -i firefox/host.json chrome/host.json || die |
67 |
+ popd >/dev/null || die |
68 |
+} |
69 |
+ |
70 |
+src_install() { |
71 |
+ dobin 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 |
+ einstalldocs |
81 |
+ popd >/dev/null || die |
82 |
+} |
83 |
|
84 |
diff --git a/www-plugins/browserpass/metadata.xml b/www-plugins/browserpass/metadata.xml |
85 |
new file mode 100644 |
86 |
index 00000000000..004ae50f4a5 |
87 |
--- /dev/null |
88 |
+++ b/www-plugins/browserpass/metadata.xml |
89 |
@@ -0,0 +1,12 @@ |
90 |
+<?xml version="1.0" encoding="UTF-8"?> |
91 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
92 |
+<pkgmetadata> |
93 |
+ <maintainer type="person" > |
94 |
+ <email>lluixhi@×××××.com</email> |
95 |
+ <name>Aric Belsito</name> |
96 |
+ </maintainer> |
97 |
+ <maintainer type="project"> |
98 |
+ <email>proxy-maint@g.o</email> |
99 |
+ <name>Proxy Maintainers</name> |
100 |
+ </maintainer> |
101 |
+</pkgmetadata> |