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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 65F8B15817D for ; Mon, 17 Jun 2024 20:10:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 86785E2A41; Mon, 17 Jun 2024 20:10:12 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5DFB1E2A41 for ; Mon, 17 Jun 2024 20:10:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 56C42335D0F for ; Mon, 17 Jun 2024 20:10:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 96BCE158 for ; Mon, 17 Jun 2024 20:10:09 +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: <1718655004.5961006a720e03ca59f016da37bab5faac2a4fa1.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.92.ebuild X-VCS-Directories: sys-block/tgt/ X-VCS-Committer: prometheanfire X-VCS-Committer-Name: Matthew Thode X-VCS-Revision: 5961006a720e03ca59f016da37bab5faac2a4fa1 X-VCS-Branch: master Date: Mon, 17 Jun 2024 20:10:09 +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: feffd2d7-03ec-4ebb-b215-f0c13025ddf1 X-Archives-Hash: b686a6ce3c08c5147db10d47e191e959 commit: 5961006a720e03ca59f016da37bab5faac2a4fa1 Author: Stijn Tintel linux-ipv6 be> AuthorDate: Tue Jun 4 17:04:57 2024 +0000 Commit: Matthew Thode gentoo org> CommitDate: Mon Jun 17 20:10:04 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5961006a sys-block/tgt: add 1.0.92 Bug: https://bugs.gentoo.org/713490 Bug: https://bugs.gentoo.org/934448 Signed-off-by: Stijn Tintel linux-ipv6.be> Signed-off-by: Matthew Thode gentoo.org> sys-block/tgt/Manifest | 1 + sys-block/tgt/tgt-1.0.92.ebuild | 58 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) diff --git a/sys-block/tgt/Manifest b/sys-block/tgt/Manifest index aa413c25af67..1b8c248e227a 100644 --- a/sys-block/tgt/Manifest +++ b/sys-block/tgt/Manifest @@ -1 +1,2 @@ DIST tgt-1.0.91.tar.gz 305813 BLAKE2B 8ab714ff6ce29ead7800a2538241ed93e3c363881c0d37009bf7074063ff88daa25969cb5ebcac2ac55ec475cd02756656c82bfaa855da88569f0b577034a8c0 SHA512 ea3a2d82c2533267a58b52d8db7cd8576447f1713ce5431955d2871272976b0e1c155c27c28e0bbf29b75b3e3a9fcf608e1fc1ce9ebeb558ae0219b0be2b5ad5 +DIST tgt-1.0.92.tar.gz 305797 BLAKE2B 144773460e5ab4241e9cf7e35f4b84b347da8a48dfbb2dfba4b0c02f7d346746a80f1f3c65cdbb0fa1c1dc25a19b0cbd951e6b9c38a9022f2136ffc95b67d00d SHA512 a865a61bae3c4503ad4a67192fc7d0f16f0dbf767d067f2a65ddc24f674ec33413a130b4861b7ab33324243489e45259644f84b7f2d8162005d23f0eb2476bd2 diff --git a/sys-block/tgt/tgt-1.0.92.ebuild b/sys-block/tgt/tgt-1.0.92.ebuild new file mode 100644 index 000000000000..5488b8178802 --- /dev/null +++ b/sys-block/tgt/tgt-1.0.92.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit toolchain-funcs systemd + +DESCRIPTION="Linux SCSI target framework (tgt)" +HOMEPAGE="https://github.com/fujita/tgt" +SRC_URI="https://github.com/fujita/tgt/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="infiniband rbd selinux" + +DEPEND=" + app-text/docbook-xsl-stylesheets + dev-libs/libxslt + dev-perl/Config-General + rbd? ( sys-cluster/ceph ) + infiniband? ( sys-cluster/rdma-core ) +" +RDEPEND=" + ${DEPEND} + dev-libs/libaio + sys-apps/sg3_utils + selinux? ( sec-policy/selinux-tgtd ) +" + +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 infiniband && myconf="${myconf} ISCSI_RDMA=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-new tgtd + newconfd "${FILESDIR}"/tgtd.confd-new tgtd + systemd_dounit "${S}"/scripts/tgtd.service + dodir /etc/tgt + keepdir /etc/tgt +}