lio-utils: initial add 4.1
PATCH 1/1 lio-utils: initial add 4.1
From: Ting Liu <[email protected]>
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.
--- meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb | 59 ++++++++++++++++++++ 1 files changed, 59 insertions(+), 0 deletions(-) create mode 100644 meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb
meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb new file +59 -0
@@ -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/*"
Signature · 1 line
1.7.3.4
Martin Jansa
AppliedQuoted 4 lines · On Wed, Mar 13, 2013 at 03:49:42PM +0800, [email protected] wrote:
From: Ting Liu <[email protected]>
lio-utils (lio-utils.git) provide a simple low-level configuration tool set for the Target+iSCSI (LIO).
Applied, thanks!
Quoted 85 lines
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 <[email protected]>--- meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb | 59 ++++++++++++++++++++ 1 files changed, 59 insertions(+), 0 deletions(-) create mode 100644 meta-oe/recipes-support/lio-utils/lio-utils_4.1.bbmeta-oe/recipes-support/lio-utils/lio-utils_4.1.bb new file +59
-0@@ -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/*"Signature · 8 lines
1.7.3.4 _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 8 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Friday, March 22, 2013 5:25 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] lio-utils: initial add 4.1
Quoted 8 lines
Quoted 4 lines · On Wed, Mar 13, 2013 at 03:49:42PM +0800, [email protected] wrote:
From: Ting Liu <[email protected]>
lio-utils (lio-utils.git) provide a simple low-level configuration tool set for the Target+iSCSI (LIO).
Applied, thanks!
Not see it on the git tree yet :-)
Quoted 96 lines
Quoted 8 lines
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 <[email protected]>--- meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb | 59++++++++++++++++++++
meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb line 2
Quoted 12 lines
1 files changed, 59 insertions(+), 0 deletions(-) create mode 100644meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb
meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb new file +2
-0@@ -0,0 +1,59 @@ +SUMMARY = "lio-utils" +DESCRIPTION = "a simple low-level configuration tool set for theTarget+iSCSI (LIO)"
meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb
Quoted 3 lines
meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb new file +3
-0+HOMEPAGE = "http://linux-iscsi.org/index.php/Lio-utils" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM ="file://debian/copyright;md5=c3ea231a32635cbb5debedf3e88aa3df"
Quoted 23 lines
meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb new file +23
-0+ +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 +} +meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb
Quoted 10 lines
meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb new file +10
-0+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
meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb
Quoted 3 lines
meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb new file +3
-0+ if [ ! -h ${D}/${sbindir}/${var} ];then + chmod a+x ${SITE_PACKAGES}/${var}.py + ln -s ${PYTHON_SITEPACKAGES_DIR}/${var}.py${D}/${sbindir}/${var}
meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb
Quoted 11 lines
meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb new file +11
-0+ 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.shmeta-oe/recipes-support/lio-utils/lio-utils_4.1.bb line 57
Quoted 5 lines
meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb new file +5
-0+ 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-netclientpython-email"
Quoted 11 lines
meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb new file +2
-1+ +FILES_${PN} += "${sbindir}/* /etc/init.d/* /etc/target/*" --1.7.3.4
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel--
Martin 'JaMa' Jansa jabber: [email protected]