aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb
diff options
context:
space:
mode:
authorTing Liu <b28495@freescale.com>2013-03-13 07:49:42 +0000
committerMartin Jansa <Martin.Jansa@gmail.com>2013-03-25 12:56:06 +0100
commit7c27c81a1bfc7b11ae7d7747b5c669776cbc328f (patch)
tree541144f8daaa246bc0dc73cb0e96c619b3402d90 /meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb
parent6cbd81ed18465affba841311ec1cdf3eb6800dba (diff)
downloadmeta-openembedded-7c27c81a1bfc7b11ae7d7747b5c669776cbc328f.tar.gz
meta-openembedded-7c27c81a1bfc7b11ae7d7747b5c669776cbc328f.tar.bz2
meta-openembedded-7c27c81a1bfc7b11ae7d7747b5c669776cbc328f.zip
lio-utils: initial add 4.1
lio-utils (lio-utils.git) provide a simple low-level configuration tool set for the Target+iSCSI (LIO). lio-utils use the configFS kernel API that is available with LIO, which provides a clean interface for controlling the kernel level Target engine and its fabric module subsystems. Signed-off-by: Ting Liu <b28495@freescale.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb')
-rw-r--r--meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb59
1 files changed, 59 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb b/meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb
new file mode 100644
index 000000000..bbedb784a
--- /dev/null
+++ b/meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb
@@ -0,0 +1,59 @@
+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://risingtidesystems.com/lio-utils.git"
+SRCREV = "28bd928655bdc7bd3cf380f0196630690c51e05f"
+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"
+
+FILES_${PN} += "${sbindir}/* /etc/init.d/* /etc/target/*"