diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2016-08-02 10:59:04 -0500 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2016-08-02 10:59:04 -0500 |
commit | 75b14090189a776183e9fa857a132552a1573af0 (patch) | |
tree | d5efbb5e547162f30014f1c18d4ee8140f364b02 /sys-block/tgt/tgt-1.0.66.ebuild | |
parent | d62976296edf0dcf95b00aa33ab26e75e84240a6 (diff) | |
download | gentoo-75b14090189a776183e9fa857a132552a1573af0.tar.gz gentoo-75b14090189a776183e9fa857a132552a1573af0.tar.xz |
sys-block/tgt: bup
Package-Manager: portage-2.2.28
Diffstat (limited to 'sys-block/tgt/tgt-1.0.66.ebuild')
-rw-r--r-- | sys-block/tgt/tgt-1.0.66.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/sys-block/tgt/tgt-1.0.66.ebuild b/sys-block/tgt/tgt-1.0.66.ebuild new file mode 100644 index 00000000000..b7829a7cff5 --- /dev/null +++ b/sys-block/tgt/tgt-1.0.66.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit flag-o-matic toolchain-funcs + +MY_TREE="33cad04" + +DESCRIPTION="Linux SCSI target framework (tgt)" +HOMEPAGE="http://stgt.sourceforge.net" +SRC_URI="https://github.com/fujita/tgt/tarball/v${PV} -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="fcoe fcp ibmvio infiniband rbd" + +CDEPEND="dev-perl/Config-General + dev-libs/libxslt + rbd? ( sys-cluster/ceph ) + infiniband? ( + sys-fabric/libibverbs:= + sys-fabric/librdmacm:= + )" +DEPEND="${CDEPEND} + app-text/docbook-xsl-stylesheets" +RDEPEND="${DEPEND} + dev-libs/libaio + sys-apps/sg3_utils" + +S=${WORKDIR}/fujita-tgt-${MY_TREE} + +pkg_setup() { + tc-export CC +} + +src_prepare() { + sed -i -e 's:\($(CC)\) $^:\1 $(LDFLAGS) $^:' usr/Makefile || die + + # make sure xml docs are generated before trying to install them + sed -i -e "s@install: @& all @g" doc/Makefile || die +} + +src_compile() { + local myconf + use ibmvio && myconf="${myconf} IBMVIO=1" + use infiniband && myconf="${myconf} ISCSI_RDMA=1" + use fcp && myconf="${myconf} FCP=1" + use fcoe && myconf="${myconf} FCOE=1" + use rbd && myconf="${myconf} CEPH_RBD=1" + + emake -C usr/ KERNELSRC="${KERNEL_DIR}" ISCSI=1 ${myconf} + emake -C doc +} + +src_install() { + emake install-programs install-scripts install-doc DESTDIR="${D}" docdir=/usr/share/doc/${PF} + newinitd "${FILESDIR}"/tgtd.initd tgtd + newconfd "${FILESDIR}"/tgtd.confd tgtd + dodir /etc/tgt + keepdir /etc/tgt +} |