Skip to content

Commit

Permalink
app-crypt/kbfs: Fix live ebuild
Browse files Browse the repository at this point in the history
This change adds all of the features of kbfs-2.0.0 to the live ebuild.

Signed-off-by: Nicolas Bock <[email protected]>
Package-Manager: Portage-2.3.40, Repoman-2.3.9
  • Loading branch information
nicolasbock committed Jun 18, 2018
1 parent 84916d9 commit 22fc382
Showing 1 changed file with 15 additions and 19 deletions.
34 changes: 15 additions & 19 deletions app-crypt/kbfs/kbfs-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

EAPI=6

inherit git-r3 systemd
inherit git-r3 golang-build systemd

DESCRIPTION="Keybase Filesystem (KBFS)"
HOMEPAGE="https://keybase.io/docs/kbfs"
Expand All @@ -14,37 +14,33 @@ SLOT="0"
KEYWORDS=""
IUSE="git"

DEPEND=">=dev-lang/go-1.6:0"
DEPEND=""
RDEPEND="
app-crypt/gnupg
sys-fs/fuse
"

S="${WORKDIR}/src/github.com/keybase/kbfs"

src_unpack() {
git-r3_src_unpack
mkdir -p "$(dirname "${S}")" || die
ln -s "${WORKDIR}/${P}" "${S}" || die
mkdir -vp "${S}/src/github.com/keybase" || die
ln -vs "${S}" "${S}/src/github.com/keybase/kbfs" || die
}

src_compile() {
GOPATH="${WORKDIR}" \
go build -v -x \
-tags production \
-o "${T}/kbfsfuse" \
github.com/keybase/kbfs/kbfsfuse
use git && \
GOPATH="${WORKDIR}" \
go build -v -x \
-tags production \
-o "${T}/git-remote-keybase" \
github.com/keybase/kbfs/kbfsgit/git-remote-keybase
EGO_PN="github.com/keybase/kbfs/kbfsfuse" \
EGO_BUILD_FLAGS="-tags production -o ${T}/kbfsfuse" \
golang-build_src_compile
EGO_PN="github.com/keybase/kbfs/kbfsgit/git-remote-keybase" \
EGO_BUILD_FLAGS="-tags production -o ${T}/git-remote-keybase" \
golang-build_src_compile
EGO_PN="github.com/keybase/kbfs/redirector" \
EGO_BUILD_FLAGS="-tags production -o ${T}/keybase-redirector" \
golang-build_src_compile
}

src_install() {
dobin "${T}/kbfsfuse"
use git && \
dobin "${T}/git-remote-keybase"
dobin "${T}/git-remote-keybase"
dobin "${T}/keybase-redirector"
systemd_douserunit "${S}/packaging/linux/systemd/kbfs.service"
}

0 comments on commit 22fc382

Please sign in to comment.