summaryrefslogtreecommitdiff
path: root/packages/sys-fs
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sys-fs')
-rw-r--r--packages/sys-fs/bees/bees-scm.exheres-06
-rw-r--r--packages/sys-fs/bees/bees.exlib28
2 files changed, 34 insertions, 0 deletions
diff --git a/packages/sys-fs/bees/bees-scm.exheres-0 b/packages/sys-fs/bees/bees-scm.exheres-0
new file mode 100644
index 0000000..2bb1804
--- /dev/null
+++ b/packages/sys-fs/bees/bees-scm.exheres-0
@@ -0,0 +1,6 @@
+# Distributed under the terms of the GNU General Public License v2
+# Copyright 2019 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
+
+require bees
+
+PLATFORMS="~amd64 ~x86"
diff --git a/packages/sys-fs/bees/bees.exlib b/packages/sys-fs/bees/bees.exlib
new file mode 100644
index 0000000..9265f2a
--- /dev/null
+++ b/packages/sys-fs/bees/bees.exlib
@@ -0,0 +1,28 @@
+# Distributed under the terms of the GNU General Public License v2
+# Copyright 2019 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
+
+require github [ user=Zygo tag=v${PV} ]
+
+export_exlib_phases src_prepare src_install
+
+SLOT="0"
+LICENCES="GPL-3"
+
+DEPENDENCIES="
+ build+run:
+ sys-fs/btrfs-progs
+ run:
+ sys-apps/util-linux
+"
+bees_src_prepare() {
+ edo sed -e "s/pkg-config/$(exhost --target)-pkg-config/g" -i Makefile
+}
+
+bees_src_install() {
+ default
+ edo mkdir -p "${IMAGE}/usr/$(exhost --target)/bin"
+ edo mv "${IMAGE}/usr/lib/bees/bees" "${IMAGE}/usr/$(exhost --target)/bin/"
+ edo rm -rf "${IMAGE}/usr/lib"
+ edo mv "${IMAGE}/usr/sbin/beesd" "${IMAGE}/usr/$(exhost --target)/bin/"
+ edo rmdir "${IMAGE}/usr/sbin"
+}