summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2019-02-17 11:50:55 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2019-02-17 11:50:55 +0300
commitbd3a94b4988a24ed7cf1845f11708ef8a4340347 (patch)
tree34575899b6f18696e0c878e8a22ba5ff797ae7b9
parent36a54d05dd33725011d137eeac3649ca0c254555 (diff)
bees added
-rw-r--r--metadata/categories.conf1
-rw-r--r--packages/sys-fs/bees/bees-scm.exheres-06
-rw-r--r--packages/sys-fs/bees/bees.exlib28
3 files changed, 35 insertions, 0 deletions
diff --git a/metadata/categories.conf b/metadata/categories.conf
index 6897dba..c099df5 100644
--- a/metadata/categories.conf
+++ b/metadata/categories.conf
@@ -16,4 +16,5 @@ net-vpn
sys-apps
sys-block
sys-devel
+sys-fs
sys-power
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"
+}