# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit flag-o-matic linux-info DESCRIPTION="Linux SCSI target framework (tgt)" HOMEPAGE="http://stgt.berlios.de/" SRC_URI="http://stgt.berlios.de/releases/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="ibmvio iscsi rdma fcp fcoe" RDEPEND="rdma? ( sys-cluster/openib-userspace )" DEPEND="${RDEPEND}" src_compile() { local myconf if use ibmvio; then myconf="${myconf} IBMVIO=1" fi if use iscsi; then myconf="${myconf} ISCSI=1" fi if use rdma ; then myconf="${myconf} ISCSI_RDMA=1" fi if use fcp; then myconf="${myconf} FCP=1" fi if use fcoe; then myconf="${myconf} FCOE=1" fi emake -C usr/ KERNELSRC="${KERNEL_DIR}" ISCSI=1 ${myconf} } src_install() { emake -C usr/ install DESTDIR=${D} || die "install failed" doinitd ${FILESDIR}/tgtd dodoc doc/README.* doc/targets.conf.example doc/tmf.txt }