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 5C6A415801B for ; Mon, 24 Jul 2023 11:06:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A276EE0866; Mon, 24 Jul 2023 11:06:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8B947E0866 for ; Mon, 24 Jul 2023 11:06:26 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CE7323413DE for ; Mon, 24 Jul 2023 11:06:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6C5A8BF9 for ; Mon, 24 Jul 2023 11:06:24 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1690196671.965956f9c78a218a4bb290d3f9d2e345db021887.flow@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/kubo/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-p2p/kubo/Manifest net-p2p/kubo/kubo-0.21.0.ebuild X-VCS-Directories: net-p2p/kubo/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: 965956f9c78a218a4bb290d3f9d2e345db021887 X-VCS-Branch: master Date: Mon, 24 Jul 2023 11:06:24 +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: c5a1028e-81e0-4841-8a00-957800bc60d2 X-Archives-Hash: 0205bbefa87fba3e50d11a2379fb3720 commit: 965956f9c78a218a4bb290d3f9d2e345db021887 Author: David Roman gmail com> AuthorDate: Tue Jul 11 09:05:01 2023 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Mon Jul 24 11:04:31 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=965956f9 net-p2p/kubo: add 0.21.0 Signed-off-by: David Roman gmail.com> Closes: https://github.com/gentoo/gentoo/pull/31830 Signed-off-by: Florian Schmaus gentoo.org> net-p2p/kubo/Manifest | 1 + net-p2p/kubo/kubo-0.21.0.ebuild | 69 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) diff --git a/net-p2p/kubo/Manifest b/net-p2p/kubo/Manifest index 929ca4077b9b..9feb263dd025 100644 --- a/net-p2p/kubo/Manifest +++ b/net-p2p/kubo/Manifest @@ -1 +1,2 @@ DIST kubo-0.20.0.tar.gz 15476743 BLAKE2B 8b7e58f18c1342981f575545c6e11a167df240bb0d6d0712bcb3fd6a0aa7f84a6737af06d2ae89fe998ee715be5c0e0c39f4ce83685ae238008c46f48c6cf7a1 SHA512 5231efce18dbb6491fa6665db8d1522efcb2d7278203259714b77d655060765922e9076addb1de3e10950c2c7aa3c9e24e2114879c3e4ce1fceef69755b12eaf +DIST kubo-0.21.0.tar.gz 15523789 BLAKE2B 3db5e59ade1b121a7403b4188e90305dc1689922494114a7729ae23d3e3c8d89c244dc8ebb5a2563c79c6f591b4840d79c935cf6fbb7004e1f869c165308eeca SHA512 16b1462f4f2811f6188d6e6ca9c466bb8071dd45ca66d40e3f4c7d37d31b16bb3fb6d2408c61dfc5d3120847c25da735db0f89661d29493684a81a6f94251278 diff --git a/net-p2p/kubo/kubo-0.21.0.ebuild b/net-p2p/kubo/kubo-0.21.0.ebuild new file mode 100644 index 000000000000..6cd5d94e6814 --- /dev/null +++ b/net-p2p/kubo/kubo-0.21.0.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit bash-completion-r1 go-module systemd + +DESCRIPTION="Main implementation of IPFS" +HOMEPAGE="https://ipfs.io/ https://github.com/ipfs/kubo/" +SRC_URI="https://github.com/ipfs/${PN}/releases/download/v${PV}/kubo-source.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=" + acct-group/ipfs + acct-user/ipfs + sys-fs/fuse:0 +" +RDEPEND="${DEPEND}" +BDEPEND="dev-lang/go" + +DOCS=( CHANGELOG.md CONTRIBUTING.md README.md docs/ ) + +S="${WORKDIR}" + +src_compile() { + local mygoargs + mygoargs=( + -tags release + ) + + ego build "${mygoargs[@]}" -o ipfs ./cmd/ipfs + ego build "${mygoargs[@]}" -o ipfswatch ./cmd/ipfswatch + + IPFS_PATH="" ./ipfs commands completion bash > ipfs-completion.bash || die +} + +src_test() { + ego test ./cmd/ipfs/... ./cmd/ipfswatch/... +} + +src_install() { + dobin ipfs + dobin ipfswatch + newbashcomp ipfs-completion.bash ipfs + einstalldocs + + systemd_dounit "${FILESDIR}/ipfs.service" + systemd_newunit "${FILESDIR}/ipfs-at.service" "ipfs@.service" + + newinitd "${FILESDIR}/ipfs.init" ipfs + newconfd "${FILESDIR}/ipfs.confd" ipfs + + keepdir /var/log/ipfs + fowners -R ipfs:ipfs /var/log/ipfs +} + +pkg_postinst() { + elog 'To be able to use the ipfs service you will need to create the ipfs repository' + elog '(eg: su -s /bin/sh -c "ipfs init -e" ipfs)' + elog 'or change IPFS_PATH of /etc/conf.d/ipfs with another with proper permissions.' + + # See https://bugs.gentoo.org/838238 + ewarn 'In case kubo CPU usage is too high run the next workaround' + ewarn 'su -s /bin/sh -c "ipfs config profile apply lowpower" ipfs' + ewarn 'Be aware that this will make your node less visible to other peers' +}