diff options
-rw-r--r-- | packages/sys-block/targetcli-fb/targetcli-fb-scm.exheres-0 | 7 | ||||
-rw-r--r-- | packages/sys-block/targetcli-fb/targetcli-fb.exlib | 21 |
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 +} |