From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E9A2D1382C5 for ; Sun, 14 Feb 2021 22:57:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2CBB4E09D6; Sun, 14 Feb 2021 22:57:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0C746E09D6 for ; Sun, 14 Feb 2021 22:57:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B043C340C7C for ; Sun, 14 Feb 2021 22:57:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CA28849 for ; Sun, 14 Feb 2021 22:57:45 +0000 (UTC) From: "Matthew Thode" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matthew Thode" Message-ID: <1613343461.8b174e68afaeabadd837cb4d19d98e1cecbdf68c.prometheanfire@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-block/tgt/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-block/tgt/Manifest sys-block/tgt/tgt-1.0.80.ebuild X-VCS-Directories: sys-block/tgt/ X-VCS-Committer: prometheanfire X-VCS-Committer-Name: Matthew Thode X-VCS-Revision: 8b174e68afaeabadd837cb4d19d98e1cecbdf68c X-VCS-Branch: master Date: Sun, 14 Feb 2021 22:57:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 22c3e396-727e-4d42-abac-257200efa31b X-Archives-Hash: 116342c191cf87afb1055ea589f4dde5 commit: 8b174e68afaeabadd837cb4d19d98e1cecbdf68c Author: Matthew Thode gentoo org> AuthorDate: Sun Feb 14 22:57:27 2021 +0000 Commit: Matthew Thode gentoo org> CommitDate: Sun Feb 14 22:57:41 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b174e68 sys-block/tgt: 1.0.80 bump added systemd unit install as well Closes: https://bugs.gentoo.org/768741 Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Matthew Thode gentoo.org> sys-block/tgt/Manifest | 1 + sys-block/tgt/tgt-1.0.80.ebuild | 64 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/sys-block/tgt/Manifest b/sys-block/tgt/Manifest index 6fce5095468..d0c3b0bc637 100644 --- a/sys-block/tgt/Manifest +++ b/sys-block/tgt/Manifest @@ -1 +1,2 @@ DIST tgt-1.0.79.tar.gz 297898 BLAKE2B d0f18dac863d6983a00eb9513bcbe17b5cbed76fad998af74b65311c1ace6f281bfb1bf639713e10124a520ad3916ef79ca0a81cef97b5ef678c25cfa9a71eaa SHA512 d71b0a08bd1cdc717e22c4dd0a229e84bd19e02e01037231ee80d9ab24848bc7274050e1ffe7d9a3d50149c892ed1e6ea382e54dacc341650f4534629116be07 +DIST tgt-1.0.80.tar.gz 298354 BLAKE2B 5a70cf4901967fe66a351b7f5fd209b11508581ad770dab13965055f3d592c9ae1d7813597f306883bc3f1346a8b8b43916dcddae9e4c38012946d08c252c9ac SHA512 eb32542f652b22cdb28083cc92015ca218c4af0730765ee2a00f6b14dd7da0546fc4017d103f212a684d8e08100e6e565ef52fe403ea407f764aaea3019602b8 diff --git a/sys-block/tgt/tgt-1.0.80.ebuild b/sys-block/tgt/tgt-1.0.80.ebuild new file mode 100644 index 00000000000..180742932ac --- /dev/null +++ b/sys-block/tgt/tgt-1.0.80.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit toolchain-funcs systemd + +MY_TREE="6bd8382" + +DESCRIPTION="Linux SCSI target framework (tgt)" +HOMEPAGE="http://stgt.sourceforge.net" +SRC_URI="https://github.com/fujita/tgt/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc ~x86" +IUSE="fcoe fcp ibmvio infiniband rbd" + +DEPEND=" + app-text/docbook-xsl-stylesheets + dev-libs/libxslt + dev-perl/Config-General + rbd? ( sys-cluster/ceph ) + infiniband? ( + sys-fabric/libibverbs:= + sys-fabric/librdmacm:= + )" +RDEPEND="${DEPEND} + dev-libs/libaio + sys-apps/sg3_utils" + +S=${WORKDIR}/fujita-tgt-${MY_TREE} + +pkg_setup() { + tc-export CC +} + +src_prepare() { + default + 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 + sed -i -e 's|-Werror||g' usr/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 + systemd_dounit "${S}"/scripts/tgtd.service + dodir /etc/tgt + keepdir /etc/tgt +}