Gentoo Archives: gentoo-commits

From: Nicolas Bock <nicolasbock@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/keybase/
Date: Fri, 23 Feb 2018 22:01:35
Message-Id: 1519423280.1303d32d0e940363dbb1ca6b8291cf5cb59dd674.nicolasbock@gentoo
1 commit: 1303d32d0e940363dbb1ca6b8291cf5cb59dd674
2 Author: Nicolas Bock <nicolasbock <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 23 22:01:01 2018 +0000
4 Commit: Nicolas Bock <nicolasbock <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 23 22:01:20 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1303d32d
7
8 app-crypt/keybase: Update live ebuild
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 app-crypt/keybase/keybase-9999.ebuild | 21 ++++++++++++++++++---
13 1 file changed, 18 insertions(+), 3 deletions(-)
14
15 diff --git a/app-crypt/keybase/keybase-9999.ebuild b/app-crypt/keybase/keybase-9999.ebuild
16 index 09718d4794c..05206f40c35 100644
17 --- a/app-crypt/keybase/keybase-9999.ebuild
18 +++ b/app-crypt/keybase/keybase-9999.ebuild
19 @@ -1,9 +1,9 @@
20 -# Copyright 1999-2017 Gentoo Foundation
21 +# Copyright 1999-2018 Gentoo Foundation
22 # Distributed under the terms of the GNU General Public License v2
23
24 EAPI=6
25
26 -inherit eutils versionator git-r3
27 +inherit eutils systemd user versionator git-r3
28
29 MY_PV=$(replace_version_separator 3 '-')
30
31 @@ -17,12 +17,17 @@ KEYWORDS=""
32 IUSE=""
33
34 DEPEND="
35 - >=dev-lang/go-1.6:0"
36 + >=dev-lang/go-1.6:0
37 + app-crypt/kbfs"
38 RDEPEND="
39 app-crypt/gnupg"
40
41 S="${WORKDIR}/src/github.com/keybase/client"
42
43 +pkg_setup() {
44 + enewuser keybasehelper
45 +}
46 +
47 src_unpack() {
48 git-r3_src_unpack
49 mkdir -p "$(dirname "${S}")" || die
50 @@ -35,13 +40,23 @@ src_compile() {
51 -tags production \
52 -o "${T}/keybase" \
53 github.com/keybase/client/go/keybase || die
54 + GOPATH="${WORKDIR}" \
55 + go build -v -x \
56 + -tags production \
57 + -o "${T}/keybase-mount-helper" \
58 + github.com/keybase/client/go/mounter/keybase-mount-helper || die
59 }
60
61 src_install() {
62 dobin "${T}/keybase"
63 + dobin "${T}/keybase-mount-helper"
64 + fowners keybasehelper:keybasehelper "${EROOT}/usr/bin/keybase-mount-helper"
65 + dobin "${S}/packaging/linux/run_keybase"
66 + systemd_douserunit "${S}/packaging/linux/systemd/keybase.service"
67 }
68
69 pkg_postinst() {
70 elog "Run the service: keybase service"
71 elog "Run the client: keybase login"
72 + elog "Restart keybase: run_keybase"
73 }