From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 26CA0138350 for ; Mon, 24 Feb 2020 16:30:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2D647E087B; Mon, 24 Feb 2020 16:30:26 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E9B75E087B for ; Mon, 24 Feb 2020 16:30:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A605834F1AB for ; Mon, 24 Feb 2020 16:30:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0125BAF for ; Mon, 24 Feb 2020 16:30:20 +0000 (UTC) From: "Matt Turner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" Message-ID: <1582561809.d72f0a3b9556667c1369a29003c1231993fe9192.mattst88@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-plugins/browserpass/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-plugins/browserpass/browserpass-3.0.6-r2.ebuild X-VCS-Directories: www-plugins/browserpass/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: d72f0a3b9556667c1369a29003c1231993fe9192 X-VCS-Branch: master Date: Mon, 24 Feb 2020 16:30:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e9e55573-71c1-4dde-81a5-7c0e098757f9 X-Archives-Hash: e737c3facaa68acde15dd8a8ae95e905 commit: d72f0a3b9556667c1369a29003c1231993fe9192 Author: Lucian Poston pm me> AuthorDate: Wed Feb 12 17:45:45 2020 +0000 Commit: Matt Turner gentoo org> CommitDate: Mon Feb 24 16:30:09 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d72f0a3b www-plugins/browserpass: Install to both firefox dirs Firefox's directory for native messaging hosts is a compile-time variable. www-client/firefox-bin is set to a directory under /usr/lib/, while www-client/firefox varies. This -r2 bump will install to both locations so that both firefox and firefox-bin are able to locate the plugin. Bug: https://bugs.gentoo.org/687746 Closes: https://github.com/gentoo/gentoo/pull/14643 Signed-off-by: Lucian Poston pm.me> Signed-off-by: Matt Turner gentoo.org> .../browserpass/browserpass-3.0.6-r2.ebuild | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/www-plugins/browserpass/browserpass-3.0.6-r2.ebuild b/www-plugins/browserpass/browserpass-3.0.6-r2.ebuild new file mode 100644 index 00000000000..a931577f7ad --- /dev/null +++ b/www-plugins/browserpass/browserpass-3.0.6-r2.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit go-module + +DESCRIPTION="WebExtension host binary for app-admin/pass, a UNIX password manager" +HOMEPAGE="https://github.com/browserpass/browserpass-native" + +EGO_VENDOR=( + "github.com/mattn/go-zglob a8912a37f9e7" # MIT + "github.com/sirupsen/logrus v1.4.2" # MIT + "golang.org/x/sys 6d18c012aee9febd81bbf9806760c8c4480e870d github.com/golang/sys" # BSD +) + +MY_PN=browserpass-native +SRC_URI="https://github.com/browserpass/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz + $(go-module_vendor_uris)" + +LICENSE="BSD ISC MIT" +SLOT="0" +KEYWORDS="~amd64" +DEPEND="" +RDEPEND="app-crypt/gnupg" + +S="${WORKDIR}"/${MY_PN}-${PV} + +src_compile() { + go build || die + + sed -e 's|%%replace%%|'${EPREFIX}'/usr/libexec/browserpass-native|' \ + -i browser-files/firefox-host.json browser-files/chromium-host.json || die +} + +src_install() { + exeinto /usr/libexec + doexe browserpass-native + + insinto /usr/lib/mozilla/native-messaging-hosts + newins browser-files/firefox-host.json com.github.browserpass.native.json + + insinto /usr/lib64/mozilla/native-messaging-hosts + newins browser-files/firefox-host.json com.github.browserpass.native.json + + insinto /etc/chromium/native-messaging-hosts + newins browser-files/chromium-host.json com.github.browserpass.native.json + + insinto /etc/opt/chrome/native-messaging-hosts + newins browser-files/chromium-host.json com.github.browserpass.native.json +}