Gentoo Archives: gentoo-commits

From: Tony Olagbaiye <gentoo@××××.io>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-p2p/ipfs-cluster/
Date: Sat, 28 May 2022 03:17:16
Message-Id: 1653707743.0774406b5b1c651a9822a7f6d5a63df5402193a7.gentoo@gentoo
1 commit: 0774406b5b1c651a9822a7f6d5a63df5402193a7
2 Author: Tony Olagbaiye <bqv <AT> fron <DOT> io>
3 AuthorDate: Sat May 28 03:15:34 2022 +0000
4 Commit: Tony Olagbaiye <gentoo <AT> fron <DOT> io>
5 CommitDate: Sat May 28 03:15:43 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0774406b
7
8 net-p2p/ipfs-cluster: new package, add 1.0.1
9
10 Signed-off-by: Tony Olagbaiye <bqv <AT> fron.io>
11
12 net-p2p/ipfs-cluster/Manifest | 2 +
13 net-p2p/ipfs-cluster/ipfs-cluster-1.0.1.ebuild | 60 ++++++++++++++++++++++++++
14 net-p2p/ipfs-cluster/metadata.xml | 12 ++++++
15 3 files changed, 74 insertions(+)
16
17 diff --git a/net-p2p/ipfs-cluster/Manifest b/net-p2p/ipfs-cluster/Manifest
18 new file mode 100644
19 index 000000000..47881fdd6
20 --- /dev/null
21 +++ b/net-p2p/ipfs-cluster/Manifest
22 @@ -0,0 +1,2 @@
23 +DIST ipfs-cluster-1.0.1-vendor.tar.xz 5799076 BLAKE2B 27b31d562d20b3693b959dba0e675c76dcd2643fd7d9321cb6284ce565e530dcf097fa0e6e45e9724cd583e1ca9e44573abae73ab68a6c83a66617c17636e159 SHA512 a1b70f5a8b5adfc34ba9cc04f38aae6083458170c15d34d2b677b0a83294f37968d568263db5c9bc73bcebc837da64a1ad46aace09799334182a1f6f51898b43
24 +DIST ipfs-cluster-1.0.1.tar.gz 463547 BLAKE2B 34d38dbff73626151c2da668e6f4fea983c98742b992132e19c3acd5281d218e3bd70f52d72489d8c89b0554dbf1e807c261b5259ce1f05b7825791701bf87fe SHA512 40a55f8c6f84a6f6c2772eb590dc993c4f18b5d2a001e55abb50b961f376182b3f9e4fa4a48a426b9fc87e9183ae5d6b244e47e5435fadc29a5cbbb8d237ad88
25
26 diff --git a/net-p2p/ipfs-cluster/ipfs-cluster-1.0.1.ebuild b/net-p2p/ipfs-cluster/ipfs-cluster-1.0.1.ebuild
27 new file mode 100644
28 index 000000000..dba391621
29 --- /dev/null
30 +++ b/net-p2p/ipfs-cluster/ipfs-cluster-1.0.1.ebuild
31 @@ -0,0 +1,60 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +inherit bash-completion-r1 go-module systemd
38 +
39 +DESCRIPTION="Pinset orchestration for IPFS"
40 +HOMEPAGE="https://ipfscluster.io/"
41 +SRC_URI="https://github.com/ipfs/ipfs-cluster/archive/v${PV}.tar.gz -> ${P}.tar.gz"
42 +SRC_URI+=" https://ipfs.infura.io/ipfs/QmUGftdXbN815P1GvurGRBa5fYFiGfTDAdBXToadzYAqw3/${P}-vendor.tar.xz"
43 +
44 +LICENSE="Apache-2.0 MIT"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +
48 +RDEPEND="
49 + net-p2p/go-ipfs
50 +"
51 +
52 +DOCS=( CHANGELOG.md CONTRIBUTING.md README.md )
53 +
54 +src_compile() {
55 + default
56 +
57 + pushd cmd/ipfs-cluster-ctl
58 + ego build
59 + mv ipfs-cluster-ctl $OLDPWD
60 + popd
61 +
62 + pushd cmd/ipfs-cluster-follow
63 + ego build
64 + mv ipfs-cluster-follow $OLDPWD
65 + popd
66 +
67 + pushd cmd/ipfs-cluster-service
68 + ego build
69 + mv ipfs-cluster-service $OLDPWD
70 + popd
71 +}
72 +
73 +src_test() {
74 + go test ./cmd/ipfs-cluster-ctl/... ./cmd/ipfs-cluster-follow/... ./cmd/ipfs-cluster-service/... || die
75 +}
76 +
77 +src_install() {
78 + dobin ipfs-cluster-ctl
79 + dobin ipfs-cluster-follow
80 + dobin ipfs-cluster-service
81 + einstalldocs
82 +
83 + #systemd_dounit "${FILESDIR}/ipfs-cluster-service.service"
84 + #systemd_newunit "${FILESDIR}/ipfs-cluster-service.service" "ipfs-cluster-service@.service"
85 +
86 + #newinitd "${FILESDIR}/ipfs-cluster-service.init" ipfs
87 + #newconfd "${FILESDIR}/ipfs-cluster-service.confd" ipfs
88 +
89 + keepdir /var/log/ipfs-cluster
90 + fowners -R ipfs:ipfs /var/log/ipfs-cluster
91 +}
92
93 diff --git a/net-p2p/ipfs-cluster/metadata.xml b/net-p2p/ipfs-cluster/metadata.xml
94 new file mode 100644
95 index 000000000..60be2616e
96 --- /dev/null
97 +++ b/net-p2p/ipfs-cluster/metadata.xml
98 @@ -0,0 +1,12 @@
99 +<?xml version="1.0" encoding="UTF-8"?>
100 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
101 +<pkgmetadata>
102 + <maintainer type="person" proxied="yes">
103 + <email>davidroman96@×××××.com</email>
104 + <name>David Roman</name>
105 + </maintainer>
106 + <maintainer type="person" proxied="yes">
107 + <email>hurikhan77+bgo@×××××.com</email>
108 + <name>Kai Krakow</name>
109 + </maintainer>
110 +</pkgmetadata>