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 A1EBC15802F for ; Sat, 11 Mar 2023 16:26:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C46FFE0896; Sat, 11 Mar 2023 16:26:44 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 745E1E0898 for ; Sat, 11 Mar 2023 16:26:44 +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 E6F8E335D45 for ; Sat, 11 Mar 2023 16:26:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 78EFC8E4 for ; Sat, 11 Mar 2023 16:26:40 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1678551846.bd47d0e624c2f2d332ac0af3a3775e488df905af.sam@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.18.1.ebuild X-VCS-Directories: net-p2p/kubo/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: bd47d0e624c2f2d332ac0af3a3775e488df905af X-VCS-Branch: master Date: Sat, 11 Mar 2023 16:26:40 +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: 611e8b78-1755-48b3-a9f7-98e95901f058 X-Archives-Hash: 3df5e5cded9c55e87db1cf8dfe0c1cf5 commit: bd47d0e624c2f2d332ac0af3a3775e488df905af Author: David Roman gmail com> AuthorDate: Thu Feb 16 11:33:35 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sat Mar 11 16:24:06 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd47d0e6 net-p2p/kubo: add 0.18.1 Signed-off-by: David Roman gmail.com> Closes: https://github.com/gentoo/gentoo/pull/29609 Signed-off-by: Sam James gentoo.org> net-p2p/kubo/Manifest | 1 + net-p2p/kubo/kubo-0.18.1.ebuild | 69 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) diff --git a/net-p2p/kubo/Manifest b/net-p2p/kubo/Manifest index 14ab16bd8bf8..02b99cde4fa6 100644 --- a/net-p2p/kubo/Manifest +++ b/net-p2p/kubo/Manifest @@ -1 +1,2 @@ DIST kubo-0.15.0.tar.gz 13318096 BLAKE2B 92a97eea130d24065c5d8a60ee7eb9b2bd3afba94596c0b538b04970277df11bf11f1cfc8399b303cea58cd249a86f956174d6544e6b6a94b34722ecdd20671a SHA512 26c1945c4ce641953e72a8f08802aa5acdd6c39fee3c1306bec0613a36b3d1ad79e23f7531427631848a6952ed950d27cd6a09f18352043bc145669b491843e6 +DIST kubo-0.18.1.tar.gz 13582874 BLAKE2B bc5ae67a476e796d774b47d29a5338cf2d1f1029197177bc69a36be255502bf12b45a8c6f5c4009ea100c749d73addc2195ce308e52883c8a36fecd08df26850 SHA512 eb6245abfef2079980f67f6a2dffad36346d06587df754d8477eeeda96464d9fa1428bb5d9ae628cca3ffa6a52c66c20e980c5a20ade389c1089aba947df6365 diff --git a/net-p2p/kubo/kubo-0.18.1.ebuild b/net-p2p/kubo/kubo-0.18.1.ebuild new file mode 100644 index 000000000000..6cd5d94e6814 --- /dev/null +++ b/net-p2p/kubo/kubo-0.18.1.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' +}