blob: ea54e75523b9688e58368b6ef57b896cc33b466d (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
SUMMARY = "lio-utils"
DESCRIPTION = "a simple low-level configuration tool set for the Target+iSCSI (LIO)"
HOMEPAGE = "http://linux-iscsi.org/index.php/Lio-utils"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://debian/copyright;md5=c3ea231a32635cbb5debedf3e88aa3df"
PV = "4.1+git${SRCPV}"
SRC_URI = "git://github.com/Datera/lio-utils.git \
file://0001-Makefiles-Respect-environment-variables-and-add-LDFL.patch \
"
SRCREV = "0ac9091c1ff7a52d5435a4f4449e82637142e06e"
S = "${WORKDIR}/git"
inherit distutils
EXTRA_OEMAKE += "DESTDIR=${D}"
do_compile() {
cd ${S}/tcm-py
distutils_do_compile
cd ${S}/lio-py
distutils_do_compile
if test -d ${S}/tools; then
oe_runmake -C ${S}/tools
fi
}
do_install() {
cd ${S}/tcm-py
distutils_do_install
cd ${S}/lio-py
distutils_do_install
SITE_PACKAGES=${D}/${PYTHON_SITEPACKAGES_DIR}
install -d ${D}/${sbindir}
for var in tcm_node tcm_dump tcm_loop tcm_fabric lio_dump lio_node; do
if [ ! -h ${D}/${sbindir}/${var} ];then
chmod a+x ${SITE_PACKAGES}/${var}.py
ln -s ${PYTHON_SITEPACKAGES_DIR}/${var}.py ${D}/${sbindir}/${var}
fi
done
if test -d ${S}/tools; then
oe_runmake -C ${S}/tools install
fi
install -d ${D}/etc/target/
install -d ${D}/etc/init.d/
install -m 755 ${S}/scripts/rc.target ${D}/etc/init.d/
install -m 755 ${S}/conf/tcm_start.default ${D}/etc/target/tcm_start.sh
install -m 755 ${S}/conf/lio_start.default ${D}/etc/target/lio_start.sh
}
RDEPENDS_${PN} += "python-stringold python-subprocess python-shell \
python-datetime python-textutils python-crypt python-netclient python-email \
bash"
FILES_${PN} += "${sbindir}/* /etc/init.d/* /etc/target/*"
# http://errors.yoctoproject.org/Errors/Details/184712/
# python-native/python: can't open file 'setup.py': [Errno 2] No such file or directory
CLEANBROKEN = "1"
|