summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2019-12-07 16:01:13 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2019-12-07 16:01:13 +0300
commitb64c726393abadb4e9691120346bc3ba17631c0e (patch)
tree984088125eb3e69d7b852df2d49ce3329daa5f46
parentdbe7500e2b1c6d5db40d22d837d36b2bcf1ec32d (diff)
targetcli-fb added
-rw-r--r--packages/sys-block/targetcli-fb/targetcli-fb-scm.exheres-07
-rw-r--r--packages/sys-block/targetcli-fb/targetcli-fb.exlib21
2 files changed, 28 insertions, 0 deletions
diff --git a/packages/sys-block/targetcli-fb/targetcli-fb-scm.exheres-0 b/packages/sys-block/targetcli-fb/targetcli-fb-scm.exheres-0
new file mode 100644
index 0000000..779ce42
--- /dev/null
+++ b/packages/sys-block/targetcli-fb/targetcli-fb-scm.exheres-0
@@ -0,0 +1,7 @@
+# Copyright 2019 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
+# Distributed under the terms of the GNU General Public License v2
+
+require targetcli-fb
+
+PLATFORMS="~amd64 ~x86"
+
diff --git a/packages/sys-block/targetcli-fb/targetcli-fb.exlib b/packages/sys-block/targetcli-fb/targetcli-fb.exlib
new file mode 100644
index 0000000..fdb2606
--- /dev/null
+++ b/packages/sys-block/targetcli-fb/targetcli-fb.exlib
@@ -0,0 +1,21 @@
+# Distributed under the terms of the GNU General Public License v2
+# Copyright 2019 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
+
+require github [ user=open-iscsi tag=v${PV} ] systemd-service
+require setup-py [ import=distutils multibuild=false ]
+export_exlib_phases src_install
+
+SUMMARY="A command shell for managing the Linux LIO kernel target"
+
+SLOT="0"
+LICENCES="Apache-2.0"
+
+DEPENDENCIES="
+"
+
+targetcli-fb_src_install () {
+ setup-py_src_install
+ edo mkdir -p "${IMAGE}/${SYSTEMDSYSTEMUNITDIR}/"
+ edo mv "${IMAGE}"/lib/systemd/system/targetclid.service "${IMAGE}"/lib/systemd/system/targetclid.socket "${IMAGE}/${SYSTEMDSYSTEMUNITDIR}"/
+ edo rm -rf "${IMAGE}"/lib
+}