diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2016-05-09 20:04:02 -0500 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2016-05-09 20:04:34 -0500 |
commit | e63745d9b667d4b21ec6f2f0084f1cf5164e14f2 (patch) | |
tree | beb77a99fdde8e24a073c09106ab9ef55c47f23f /sys-block | |
parent | games-emulation/sdlmame: testkeys was removed (bug #582578) (diff) | |
download | gentoo-e63745d9b667d4b21ec6f2f0084f1cf5164e14f2.tar.gz gentoo-e63745d9b667d4b21ec6f2f0084f1cf5164e14f2.tar.bz2 gentoo-e63745d9b667d4b21ec6f2f0084f1cf5164e14f2.zip |
sys-block/tgt: bup
Package-Manager: portage-2.2.28
Diffstat (limited to 'sys-block')
-rw-r--r-- | sys-block/tgt/Manifest | 1 | ||||
-rw-r--r-- | sys-block/tgt/tgt-1.0.64.ebuild | 64 |
2 files changed, 65 insertions, 0 deletions
diff --git a/sys-block/tgt/Manifest b/sys-block/tgt/Manifest index d3def750ccd5..bc5d05a2ef9a 100644 --- a/sys-block/tgt/Manifest +++ b/sys-block/tgt/Manifest @@ -1,2 +1,3 @@ DIST tgt-1.0.60.tar.gz 295304 SHA256 619b5250e4bc63971a26c05a3eea353beb4009ed0ffa06aab5f8ee25346cfb0a SHA512 4abca297e89dd92d1d1480f26af39a80f1cb7cd67e54911f4bdf29db8531b1df51fe214af05e685270e439bf702d4805542773c29baecc7a94ef271b2a0b97fb WHIRLPOOL 26119b14f741f6094fc816f48a58f1694b47505e7a0963e10e2efdffd49782886735c9b2463850d7ad03c149293f4b31512ee1b994607a5bbd30f0cee56f68fd DIST tgt-1.0.63.tar.gz 295305 SHA256 18aa8ad63edae7f3705577580cdbd35e312371155a2cf2059bbe96ed46efef21 SHA512 d68509c2384f969794c3d26d8cdf2994f33cf70f20e207eea25031ad310ecdeea6883d74c4589d85bd168e4abfa293bdefaa35ae603732f187e127f8d0c7b037 WHIRLPOOL 440d2f7adac630f1f1a6a7262269835d47c1f1f2346703f84a813dc03a12dc57d6458e506c513d3a8cf3594b924246868b2772b11f0ab5eb109dbd4b3f15fdee +DIST tgt-1.0.64.tar.gz 295356 SHA256 2b9294a5c6a9072d3805835d35e3c3401961c3008ee2e96b46491997f199ca27 SHA512 f7c3569d8243c866d149a6722b6fafab947e25361da5ed4f97510de6549c1b7aa1ec21e3b5c6007c6654281fb4689847ca3d6206c8473b3aebfaf5ba961364ea WHIRLPOOL 80b27a3a063337edd0cd1001a76985cecf816e3c1fbadb739aa6a5bc13a7b47115c6febafff17291424d2e6cd96854449682ea9a2656b664731c29599334ad60 diff --git a/sys-block/tgt/tgt-1.0.64.ebuild b/sys-block/tgt/tgt-1.0.64.ebuild new file mode 100644 index 000000000000..2fb5edb1350b --- /dev/null +++ b/sys-block/tgt/tgt-1.0.64.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="eca74a7" + +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-infiniband/libibverbs:= + sys-infiniband/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 +} |