commit:     cd8ad476f1a270569b2b84830afdb7370643c647
Author:     Sviatoslav Sydorenko <wk <AT> sydorenko <DOT> org <DOT> ua>
AuthorDate: Sun Jun 10 13:52:38 2018 +0000
Commit:     Nicolas Bock <nicolasbock <AT> gentoo <DOT> org>
CommitDate: Tue Jun 12 11:24:04 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd8ad476

app-crypt/keybase: Version bump to keybase-1.0.48

Package-Manager: Portage-2.3.40, Repoman-2.3.9
Signed-off-by: Nicolas Bock <nicolasbock <AT> gentoo.org>

 app-crypt/keybase/Manifest              |  1 +
 app-crypt/keybase/keybase-1.0.48.ebuild | 61 +++++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)

diff --git a/app-crypt/keybase/Manifest b/app-crypt/keybase/Manifest
index b6807579224..7214a748b7b 100644
--- a/app-crypt/keybase/Manifest
+++ b/app-crypt/keybase/Manifest
@@ -1,2 +1,3 @@
 DIST keybase-1.0.41.tar.gz 31643095 BLAKE2B 
72fe94c8996b0dfad3d75f487545d5cb96ffa09c46276104171f103f2fcbb29199013ad8075fdddf3655f63f55cbd2f0d0768b5f0e697b7339262736d9c29ca5
 SHA512 
1382f008089d8704167842960aec9e4007ac32db589bad45944428ad92ac90b1802338ff6ccc0c570d40b9c9115170a2e15c590f875cdc8261d203c01402385c
 DIST keybase-1.0.44.tar.gz 31729876 BLAKE2B 
945700824e630591f7b79dd5e8253156ee8e3ab1349f9ad584311d781cd9c98a5176884aa2fa34ac164af2194941822e56e96d7783843f649a97058edf015670
 SHA512 
a50c33548745e3c946099105c6926e4b4cd37a96c57d86ca7259b7b864f92a9e2b8823b992d7e367ee93a5832481360d66e170ba59a5cf99296dde20c1538c41
+DIST keybase-1.0.48.tar.gz 34026876 BLAKE2B 
c620a664b47f66932d1b49c22509aac73a6c82d77399019284f2887cdbf5166477ca824fcb2c2099d175fe4a38436c84c15b96a1c4faa4cdda62a9044b95e1c4
 SHA512 
fac72b7827dff350589e28e0d602b024130bc6bee8dd282dc141db773e493fcd4043aef6ce5382f92e1841619245c5819adf23d6dcf32b409939c275f40a03f1

diff --git a/app-crypt/keybase/keybase-1.0.48.ebuild 
b/app-crypt/keybase/keybase-1.0.48.ebuild
new file mode 100644
index 00000000000..4f5335a3e2a
--- /dev/null
+++ b/app-crypt/keybase/keybase-1.0.48.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit golang-build systemd
+
+DESCRIPTION="Client for keybase.io"
+HOMEPAGE="https://keybase.io/";
+SRC_URI="https://github.com/keybase/client/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+       ~app-crypt/kbfs-${PV}"
+RDEPEND="
+       app-crypt/gnupg"
+
+src_prepare() {
+       # if grep --quiet keybasehelper /etc/passwd; then
+       #       ewarn "Removing obsolete user keybasehelper"
+       #       userdel --remove keybasehelper || die
+       # fi
+       eapply_user
+}
+
+src_unpack() {
+       unpack "${P}.tar.gz"
+       ln -vs "client-${PV}" "${P}" || die
+       mkdir -vp "${S}/src/github.com/keybase" || die
+       ln -vs "${S}" "${S}/src/github.com/keybase/client" || die
+}
+
+src_compile() {
+       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"
+       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 "Start/Restart keybase: run_keybase"
+       elog "Run the service:       keybase service"
+       elog "Run the client:        keybase login"
+}

Reply via email to