diff options
author | Aric Belsito <lluixhi@gmail.com> | 2018-01-31 16:59:04 -0800 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-02-07 21:14:45 +0100 |
commit | 2f73d8f7fc0809a58dbe71355bd8c6756042c737 (patch) | |
tree | 8b9a27bb4890b2ebe8cceb2ab73f47dcbd2d1290 /www-plugins | |
parent | dev-go/zglob: new package (diff) | |
download | gentoo-2f73d8f7fc0809a58dbe71355bd8c6756042c737.tar.gz gentoo-2f73d8f7fc0809a58dbe71355bd8c6756042c737.tar.bz2 gentoo-2f73d8f7fc0809a58dbe71355bd8c6756042c737.zip |
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
Diffstat (limited to 'www-plugins')
-rw-r--r-- | www-plugins/browserpass/Manifest | 1 | ||||
-rw-r--r-- | www-plugins/browserpass/browserpass-2.0.11.ebuild | 48 | ||||
-rw-r--r-- | www-plugins/browserpass/metadata.xml | 12 |
3 files changed, 61 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" > + <email>lluixhi@gmail.com</email> + <name>Aric Belsito</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> +</pkgmetadata> |