summaryrefslogtreecommitdiff
path: root/packages/sys-block/targetcli-fb/targetcli-fb.exlib
blob: 993d276d7e897fbea0352f540e84410e91d51ee9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 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="
    run:
        dev-python/configshell-fb
        dev-python/pyudev
        dev-python/rtslib-fb
        dev-python/urwid
"

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
    doman "${WORK}"/targetcli.8
    doman "${WORK}"/targetclid.8
}