diff options
author | 2019-06-02 12:16:12 -0500 | |
---|---|---|
committer | 2019-06-02 12:16:12 -0500 | |
commit | d557b8086aac5e8872115e697a0f316f716b38fd (patch) | |
tree | 5882066afe8f4492584095cf772039f4d59512f8 /sys-block/tgt/tgt-1.0.78.ebuild | |
parent | net-misc/openvswitch: 2.10.2 and 2.11.1 bump (diff) | |
download | gentoo-d557b8086aac5e8872115e697a0f316f716b38fd.tar.gz gentoo-d557b8086aac5e8872115e697a0f316f716b38fd.tar.bz2 gentoo-d557b8086aac5e8872115e697a0f316f716b38fd.zip |
sys-block/tgt: 1.0.77 stable amd64/x86 with bump to 1.0.78
Package-Manager: Portage-2.3.66, Repoman-2.3.13
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
Diffstat (limited to 'sys-block/tgt/tgt-1.0.78.ebuild')
-rw-r--r-- | sys-block/tgt/tgt-1.0.78.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/sys-block/tgt/tgt-1.0.78.ebuild b/sys-block/tgt/tgt-1.0.78.ebuild new file mode 100644 index 000000000000..92920604e245 --- /dev/null +++ b/sys-block/tgt/tgt-1.0.78.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit flag-o-matic toolchain-funcs + +MY_TREE="355a4fa" + +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 ~arm64 ~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 + eapply_user +} + +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 +} |