public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Nicolas Bock" <nicolasbock@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/keybase/
Date: Mon, 18 Jun 2018 04:30:57 +0000 (UTC)	[thread overview]
Message-ID: <1529296200.84916d9ce89402098d4fe9d7385edd3b380ed56b.nicolasbock@gentoo> (raw)

commit:     84916d9ce89402098d4fe9d7385edd3b380ed56b
Author:     Jarek Rymut <jarymut+gentoo.bugs <AT> gmail <DOT> com>
AuthorDate: Mon Jun 18 03:41:11 2018 +0000
Commit:     Nicolas Bock <nicolasbock <AT> gentoo <DOT> org>
CommitDate: Mon Jun 18 04:30:00 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84916d9c

app-crypt/keybase: Fix keybase-9999

This change brings all of the updates from keybase-2.0.0 to the live
ebuild.

Co-Authored-By: Nicolas Bock <nicolasbock <AT> gentoo.org>
Signed-off-by: Nicolas Bock <nicolasbock <AT> gentoo.org>
Closes: https://bugs.gentoo.org/658266
Package-Manager: Portage-2.3.40, Repoman-2.3.9

 app-crypt/keybase/keybase-9999.ebuild | 54 ++++++++++++++---------------------
 1 file changed, 21 insertions(+), 33 deletions(-)

diff --git a/app-crypt/keybase/keybase-9999.ebuild b/app-crypt/keybase/keybase-9999.ebuild
index 181e16cb154..e1c48d66de9 100644
--- a/app-crypt/keybase/keybase-9999.ebuild
+++ b/app-crypt/keybase/keybase-9999.ebuild
@@ -3,9 +3,7 @@
 
 EAPI=6
 
-inherit eutils systemd user versionator git-r3
-
-MY_PV=$(replace_version_separator 3 '-')
+inherit golang-build systemd git-r3
 
 DESCRIPTION="Client for keybase.io"
 HOMEPAGE="https://keybase.io/"
@@ -14,53 +12,43 @@ EGIT_REPO_URI="https://github.com/keybase/client.git"
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS=""
-IUSE="+suid"
+IUSE=""
 
 DEPEND="
-	>=dev-lang/go-1.6:0
-	app-crypt/kbfs"
+	~app-crypt/kbfs-${PV}"
 RDEPEND="
 	app-crypt/gnupg"
 
-S="${WORKDIR}/src/github.com/keybase/client"
-
-pkg_setup() {
-	enewuser keybasehelper
-}
-
 src_unpack() {
 	git-r3_src_unpack
-	mkdir -p "$(dirname "${S}")" || die
-	ln -s "${WORKDIR}/${PN}-${MY_PV}" "${S}" || die
+	ln -vs "client" "${P}" || die
+	mkdir -vp "${S}/src/github.com/keybase" || die
+	ln -vs "${S}" "${S}/src/github.com/keybase/client" || die
 }
 
 src_compile() {
-	GOPATH="${WORKDIR}:${S}/go/vendor" \
-		go build -v -x \
-		-tags production \
-		-o "${T}/keybase" \
-		github.com/keybase/client/go/keybase || die
-	GOPATH="${WORKDIR}" \
-		go build -v -x \
-		-tags production \
-		-o "${T}/keybase-mount-helper" \
-		github.com/keybase/client/go/mounter/keybase-mount-helper || die
+	EGO_PN="github.com/keybase/client/go/keybase" \
+		EGO_BUILD_FLAGS="-tags production -o ${T}/keybase" \
+		golang-build_src_compile
+}
+
+src_test() {
+	EGO_PN="github.com/keybase/client/go/keybase" \
+		golang-build_src_test
 }
 
 src_install() {
 	dobin "${T}/keybase"
-	dodir "/var/lib/keybase"
-	fowners keybasehelper:keybasehelper "/var/lib/keybase"
-	dosym "/tmp/keybase" "/var/lib/keybase/mount1"
-	dobin "${T}/keybase-mount-helper"
-	fowners keybasehelper:keybasehelper "/usr/bin/keybase-mount-helper"
-	use suid && fperms 4755 "/usr/bin/keybase-mount-helper"
 	dobin "${S}/packaging/linux/run_keybase"
 	systemd_douserunit "${S}/packaging/linux/systemd/keybase.service"
+	dodir "/opt/keybase"
+	insinto "/opt/keybase"
+	doins "${S}/packaging/linux/crypto_squirrel.txt"
 }
 
 pkg_postinst() {
-	elog "Run the service: keybase service"
-	elog "Run the client:  keybase login"
-	elog "Restart keybase: run_keybase"
+	elog "Start/Restart keybase: run_keybase"
+	elog "Run the service:       keybase service"
+	elog "Run the client:        keybase login"
+	ewarn "Note that the user keybasehelper is obsolete and can be removed"
 }


             reply	other threads:[~2018-06-18  4:31 UTC|newest]

Thread overview: 68+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-18  4:30 Nicolas Bock [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-01-12 19:13 [gentoo-commits] repo/gentoo:master commit in: app-crypt/keybase/ Nicolas Bock
2024-01-10 18:44 Nicolas Bock
2023-03-22  3:48 Nicolas Bock
2023-02-21 22:04 Nicolas Bock
2023-02-20 18:11 Nicolas Bock
2022-07-23 15:34 David Seifert
2020-01-17 19:06 Nicolas Bock
2019-11-11 12:44 Nicolas Bock
2019-10-21 19:31 Nicolas Bock
2019-10-21 19:30 Nicolas Bock
2019-09-25 15:56 Nicolas Bock
2019-09-25 13:03 Nicolas Bock
2019-09-18  2:26 Nicolas Bock
2019-09-18  2:25 Nicolas Bock
2019-09-16 22:50 Nicolas Bock
2019-02-06 12:49 Nicolas Bock
2019-02-06 11:52 Nicolas Bock
2019-01-16 15:59 Nicolas Bock
2018-12-18 14:05 Nicolas Bock
2018-12-04 12:46 Nicolas Bock
2018-11-24 15:16 Nicolas Bock
2018-11-05 14:45 Nicolas Bock
2018-10-31 10:22 Nicolas Bock
2018-10-08 20:29 Nicolas Bock
2018-09-26 11:41 Nicolas Bock
2018-09-06 19:41 Nicolas Bock
2018-08-20 11:22 Nicolas Bock
2018-08-08 11:01 Nicolas Bock
2018-07-25 15:16 Nicolas Bock
2018-06-21  9:02 Nicolas Bock
2018-06-12 11:48 Nicolas Bock
2018-06-12 11:26 Nicolas Bock
2018-06-12 11:26 Nicolas Bock
2018-06-09  7:41 Nicolas Bock
2018-06-08 16:28 Nicolas Bock
2018-02-26 13:44 Nicolas Bock
2018-02-23 22:07 Nicolas Bock
2018-02-23 22:01 Nicolas Bock
2018-02-21 20:03 Nicolas Bock
2018-02-20 21:50 Nicolas Bock
2018-02-20 21:50 Nicolas Bock
2018-02-20 21:50 Nicolas Bock
2018-02-14 12:40 Nicolas Bock
2018-02-14 12:40 Nicolas Bock
2017-11-28 14:02 Nicolas Bock
2017-10-31 14:26 Nicolas Bock
2017-10-31 14:25 Nicolas Bock
2017-07-24 14:45 Nicolas Bock
2017-07-24 14:29 Nicolas Bock
2017-03-13 12:06 Nicolas Bock
2016-11-08 16:36 Nicolas Bock
2016-09-17 16:40 Nicolas Bock
2016-08-15  7:44 Nicolas Bock
2016-08-15  7:44 Nicolas Bock
2016-06-14 14:55 Nicolas Bock
2016-04-14  6:21 Nicolas Bock
2016-02-21 13:39 Nicolas Bock
2016-01-29  5:32 Nicolas Bock
2016-01-23 16:59 Agostino Sarubbo
2016-01-19 17:27 Nicolas Bock
2015-12-02 13:07 Nicolas Bock
2015-11-25  5:47 Nicolas Bock
2015-11-09 10:31 Agostino Sarubbo
2015-11-04 17:30 Nicolas Bock
2015-10-11 13:04 Nicolas Bock
2015-10-11 12:59 Nicolas Bock
2015-08-19 11:31 Nicolas Bock

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1529296200.84916d9ce89402098d4fe9d7385edd3b380ed56b.nicolasbock@gentoo \
    --to=nicolasbock@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox