From 2f73d8f7fc0809a58dbe71355bd8c6756042c737 Mon Sep 17 00:00:00 2001 From: Aric Belsito Date: Wed, 31 Jan 2018 16:59:04 -0800 Subject: www-plugins/browserpass: new package The Browserpass package provides the host binary necessary for the (Firefox or Chrome) browser extension to read your app-admin/pass password store to authenticate websites. Closes: https://github.com/gentoo/gentoo/pull/5836 --- www-plugins/browserpass/Manifest | 1 + www-plugins/browserpass/browserpass-2.0.11.ebuild | 48 +++++++++++++++++++++++ www-plugins/browserpass/metadata.xml | 12 ++++++ 3 files changed, 61 insertions(+) create mode 100644 www-plugins/browserpass/Manifest create mode 100644 www-plugins/browserpass/browserpass-2.0.11.ebuild create mode 100644 www-plugins/browserpass/metadata.xml diff --git a/www-plugins/browserpass/Manifest b/www-plugins/browserpass/Manifest new file mode 100644 index 000000000000..7bb299c09011 --- /dev/null +++ b/www-plugins/browserpass/Manifest @@ -0,0 +1 @@ +DIST browserpass-2.0.11.tar.gz 176787 BLAKE2B 271c3cf340ecc78c3358f21bc0e6bbcaf857b4ca39c7b0dcf58b1fcef62ea5df4f48adb4ac0bf7c884853f359fdb9ca00300e2f99efa48a1fdc0ba99ce7bd172 SHA512 baa362b63c1743273f56cb7576f96c29ca365fb217d3016824cdb1ce215e36b7f98fc7c3340a5a34853bde7c25283c84ceda570d149a8119bc54be2f0194034b diff --git a/www-plugins/browserpass/browserpass-2.0.11.ebuild b/www-plugins/browserpass/browserpass-2.0.11.ebuild new file mode 100644 index 000000000000..6abafb5c2130 --- /dev/null +++ b/www-plugins/browserpass/browserpass-2.0.11.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +EGO_PN=github.com/dannyvankooten/browserpass + +if [[ ${PV} == 9999 ]]; then + inherit golang-vcs +else + KEYWORDS="~amd64" + SRC_URI="https://${EGO_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + inherit golang-vcs-snapshot +fi +inherit golang-build + +DESCRIPTION="WebExtension host binary for pass, a UNIX password manager" +HOMEPAGE="https://github.com/dannyvankooten/browserpass" +LICENSE="MIT" +SLOT="0" +RDEPEND="app-crypt/gnupg" +DEPEND="${RDEPEND} + dev-go/twofactor:= + dev-go/zglob:=" + +DOCS=( CONTRIBUTING.md README.md ) + +src_compile() { + EGO_PN="${EGO_PN}/cmd/browserpass" golang-build_src_compile + + pushd "src/${EGO_PN}" >/dev/null || die + sed -e 's|%%replace%%|'${EPREFIX}'/usr/bin/browserpass|' \ + -i firefox/host.json chrome/host.json || die + popd >/dev/null || die +} + +src_install() { + dobin browserpass + + pushd "src/${EGO_PN}" >/dev/null || die + insinto /usr/$(get_libdir)/mozilla/native-messaging-hosts + newins firefox/host.json com.dannyvankooten.browserpass.json + + insinto /etc/chromium/native-messaging-hosts + newins chrome/host.json com.dannyvankooten.browserpass.json + + einstalldocs + popd >/dev/null || die +} diff --git a/www-plugins/browserpass/metadata.xml b/www-plugins/browserpass/metadata.xml new file mode 100644 index 000000000000..004ae50f4a5f --- /dev/null +++ b/www-plugins/browserpass/metadata.xml @@ -0,0 +1,12 @@ + + + + + lluixhi@gmail.com + Aric Belsito + + + proxy-maint@gentoo.org + Proxy Maintainers + + -- cgit v1.2.3-65-gdbad