# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit flag-o-matic 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="rdma" DEPEND="rdma? ( sys-cluster/openib-userspace )" RDEPEND="${DEPEND}" src_compile() { cd "${S}"/usr if use rdma ; then make -j1 ISCSI=1 ISCSI_RDMA=1 else make -j1 ISCSI=1 fi } src_install() { cd "${S}"/usr dosbin tgtd dosbin tgtadm doinitd ${FILESDIR}/tgtd }