summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Bock <nicolasbock@gentoo.org>2018-06-21 11:00:47 +0200
committerNicolas Bock <nicolasbock@gentoo.org>2018-06-21 11:00:47 +0200
commit8fa4760bc2ee47932370a1ce52a86e4e0b6d61d9 (patch)
tree1ed6dcce0368204f7108a34848f175c83c2897a0 /app-crypt/kbfs/kbfs-2.1.0.ebuild
parentapp-crypt/kbfs: Add missing product name (diff)
downloadgentoo-8fa4760bc2ee47932370a1ce52a86e4e0b6d61d9.tar.gz
gentoo-8fa4760bc2ee47932370a1ce52a86e4e0b6d61d9.tar.bz2
gentoo-8fa4760bc2ee47932370a1ce52a86e4e0b6d61d9.zip
app-crypt/kbfs: Version bump to kbfs-2.1.0
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'app-crypt/kbfs/kbfs-2.1.0.ebuild')
-rw-r--r--app-crypt/kbfs/kbfs-2.1.0.ebuild51
1 files changed, 51 insertions, 0 deletions
diff --git a/app-crypt/kbfs/kbfs-2.1.0.ebuild b/app-crypt/kbfs/kbfs-2.1.0.ebuild
new file mode 100644
index 000000000000..41a15fe68057
--- /dev/null
+++ b/app-crypt/kbfs/kbfs-2.1.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit golang-build systemd
+
+DESCRIPTION="Keybase Filesystem (KBFS)"
+HOMEPAGE="https://keybase.io/docs/kbfs"
+SRC_URI="https://github.com/keybase/kbfs/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="
+ app-crypt/gnupg
+ sys-fs/fuse
+ "
+
+src_unpack() {
+ unpack "${P}.tar.gz"
+ mkdir -vp "${S}/src/github.com/keybase" || die
+ ln -vs "${S}" "${S}/src/github.com/keybase/kbfs" || die
+}
+
+src_compile() {
+ 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_test() {
+ EGO_PN="github.com/keybase/kbfs/kbfsfuse" \
+ golang-build_src_test
+}
+
+src_install() {
+ dobin "${T}/kbfsfuse"
+ dobin "${T}/git-remote-keybase"
+ dobin "${T}/keybase-redirector"
+ systemd_douserunit "${S}/packaging/linux/systemd/kbfs.service"
+}