netbase: fix non working wpa_supplicant detection in network restarts. Push PR.
[openembedded.git] / recipes / iscsi-target / iscsi-target_0.4.17.bb
1 DESCRIPTION = "iSCSI Enterprise Target is for building an iSCSI storage system on Linux"
2 HOMEPAGE = "http://iscsitarget.sourceforge.net/"
3 LICENSE = "GPL"
4 PR = "r2"
5
6 SRC_URI = "${SOURCEFORGE_MIRROR}/iscsitarget/iscsitarget-${PV}.tar.gz \
7            file://libs.patch;patch=1 \
8            file://2.6.29.patch;patch=1 \
9            file://ietd.conf \
10            file://init"
11 S = "${WORKDIR}/iscsitarget-${PV}"
12
13 DEPENDS = "openssl"
14 RRECOMMENDS = "kernel-module-crc32c kernel-module-libcrc32c"
15
16 inherit module
17
18 do_configure() {
19 }
20
21 CFLAGS  = "-isystem${STAGING_KERNEL_DIR}/include -I${STAGING_INCDIR} -L${STAGING_LIBDIR}"
22 LDFLAGS = "-L${STAGING_LIBDIR}"
23 FILES_${PN} += " ${base_sbindir}"
24
25 do_compile() {
26         oe_runmake KSRC=${STAGING_KERNEL_DIR} CFLAGS='${CFLAGS}' LDFLAGS='${LDFLAGS}'
27 }
28
29 do_install() {
30         # Module
31         install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/iscsi
32         install -m 0644 kernel/iscsi_trgt.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/iscsi/iscsi_trgt.ko
33
34         # Userspace utilities
35         install -d ${D}${base_sbindir}
36         install -m 0755 usr/ietd ${D}${base_sbindir}/ietd
37         install -m 0755 usr/ietadm ${D}${base_sbindir}/ietadm
38
39         # Config files, init scripts
40         mkdir -p ${D}${sysconfdir}/init.d
41         install -m 0755 ../init ${D}${sysconfdir}/init.d/iscsi-target
42         install -m 0644 ${WORKDIR}/ietd.conf ${D}${sysconfdir}/
43         install -m 0644 etc/initiators.allow ${D}${sysconfdir}/
44         install -m 0644 etc/initiators.deny ${D}${sysconfdir}/
45 }