app-crypt/keybase: fixing non-working KBFS
authorKalin KOZHUHAROV <me.kalin@gmail.com>
Sun, 22 Apr 2018 18:25:49 +0000 (20:25 +0200)
committerNicolas Bock <nicolasbock@gentoo.org>
Fri, 8 Jun 2018 16:28:42 +0000 (18:28 +0200)
KBFS needs SUID and some other tweaks
Fixing BGO bug #649634 ...
Updating both 1.0.44 and 9999 with the same logic.

This is a rework for https://github.com/gentoo/gentoo/pull/7370/ due to
(my) flowed git workflow... See the comments there.

Closes: https://bugs.gentoo.org/649634
Reported-by: Kalin KOZHUHAROV <kalin@thinrope.net>
app-crypt/keybase/keybase-1.0.44.ebuild
app-crypt/keybase/keybase-9999.ebuild

index afb357189ce5ddab1a3e8e165fe5b96843f0c5f9..505b2ca3eb205156f9bc15cb6691cfb6798fac4f 100644 (file)
@@ -14,7 +14,7 @@ SRC_URI="https://github.com/keybase/client/archive/v${MY_PV}.tar.gz -> ${P}.tar.
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE=""
+IUSE="+suid"
 
 DEPEND="
        >=dev-lang/go-1.6:0
@@ -49,8 +49,12 @@ src_compile() {
 
 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 "${EROOT}/usr/bin/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"
 }
index 05206f40c35b2e044b910a69dd495f72339170c2..181e16cb154b66900ffa9b2c7246cedd6ea15f5e 100644 (file)
@@ -14,7 +14,7 @@ EGIT_REPO_URI="https://github.com/keybase/client.git"
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS=""
-IUSE=""
+IUSE="+suid"
 
 DEPEND="
        >=dev-lang/go-1.6:0
@@ -49,8 +49,12 @@ src_compile() {
 
 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 "${EROOT}/usr/bin/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"
 }