netbase: fix non working wpa_supplicant detection in network restarts. Push PR.
[openembedded.git] / recipes / iscsi-target / iscsi-target_svn.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 = "r13"
5
6 DEFAULT_PREFERENCE = "-1"
7
8 SRC_URI = "svn://svn.berlios.de/iscsitarget/;module=trunk;rev=HEAD \
9            file://libs.patch;patch=1 \
10            file://init \
11            file://ietd.conf \
12                 "
13
14 DEPENDS = " openssl"
15 RRECOMMENDS = "kernel-module-crc32c kernel-module-libcrc32c"
16
17 S = "${WORKDIR}/trunk"
18
19 inherit module
20
21 do_configure() {
22 }
23
24 CFLAGS  = "-isystem${STAGING_KERNEL_DIR}/include -I${STAGING_INCDIR} -L${STAGING_LIBDIR}"
25 LDFLAGS = "-L${STAGING_LIBDIR}"
26 FILES_${PN} += " ${base_sbindir}"
27
28 do_compile() {
29         oe_runmake KSRC=${STAGING_KERNEL_DIR} CFLAGS='${CFLAGS}' LDFLAGS='${LDFLAGS}'
30 }
31
32 do_install() {
33         # Module
34         install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/iscsi
35         install -m 0644 kernel/iscsi_trgt.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/iscsi/iscsi_trgt.ko
36
37         # Userspace utilities
38         install -d ${D}${base_sbindir}
39         install -m 0755 usr/ietd ${D}${base_sbindir}/ietd
40         install -m 0755 usr/ietadm ${D}${base_sbindir}/ietadm
41
42         # Config files, init scripts
43         mkdir -p ${D}${sysconfdir}/init.d
44         install -m 0755 ../init ${D}${sysconfdir}/init.d/iscsi-target
45         install -m 0644 ${WORKDIR}/ietd.conf ${D}${sysconfdir}/
46         install -m 0644 etc/initiators.allow ${D}${sysconfdir}/
47         install -m 0644 etc/initiators.deny ${D}${sysconfdir}/
48 }