1 |
commit: 25939d21a0e6b09631fc59ad2118c06ea9801e80 |
2 |
Author: Tony Olagbaiye <bqv <AT> fron <DOT> io> |
3 |
AuthorDate: Fri Aug 26 13:31:08 2022 +0000 |
4 |
Commit: Tony Olagbaiye <gentoo <AT> fron <DOT> io> |
5 |
CommitDate: Fri Aug 26 13:31:27 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=25939d21 |
7 |
|
8 |
net-p2p/ipfs-cluster: add 1.0.2 |
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.2.ebuild | 63 ++++++++++++++++++++++++++ |
14 |
2 files changed, 65 insertions(+) |
15 |
|
16 |
diff --git a/net-p2p/ipfs-cluster/Manifest b/net-p2p/ipfs-cluster/Manifest |
17 |
index 47881fdd6..a469f8837 100644 |
18 |
--- a/net-p2p/ipfs-cluster/Manifest |
19 |
+++ b/net-p2p/ipfs-cluster/Manifest |
20 |
@@ -1,2 +1,4 @@ |
21 |
DIST ipfs-cluster-1.0.1-vendor.tar.xz 5799076 BLAKE2B 27b31d562d20b3693b959dba0e675c76dcd2643fd7d9321cb6284ce565e530dcf097fa0e6e45e9724cd583e1ca9e44573abae73ab68a6c83a66617c17636e159 SHA512 a1b70f5a8b5adfc34ba9cc04f38aae6083458170c15d34d2b677b0a83294f37968d568263db5c9bc73bcebc837da64a1ad46aace09799334182a1f6f51898b43 |
22 |
DIST ipfs-cluster-1.0.1.tar.gz 463547 BLAKE2B 34d38dbff73626151c2da668e6f4fea983c98742b992132e19c3acd5281d218e3bd70f52d72489d8c89b0554dbf1e807c261b5259ce1f05b7825791701bf87fe SHA512 40a55f8c6f84a6f6c2772eb590dc993c4f18b5d2a001e55abb50b961f376182b3f9e4fa4a48a426b9fc87e9183ae5d6b244e47e5435fadc29a5cbbb8d237ad88 |
23 |
+DIST ipfs-cluster-1.0.2-vendor.tar.xz 5599580 BLAKE2B f2b8503b8f550dfd8f0ee2c0ca0b9384e68f86fbd2b4a75934a404623e224d66217a922424142e6c040e20f701fb55aec994441ddafdaed5bb7d267f9aff52d4 SHA512 488dc8479069f0f525ab88ac8f34aa300ced9ee26d2fff728e8b73aeb37261f899b2cfd2185265142be3b0cc7ecaaf7374c9f93fc4832bd931aead1924a506b5 |
24 |
+DIST ipfs-cluster-1.0.2.tar.gz 471909 BLAKE2B cc44ae20df697704d1e0daf7a912773f1be4275f0ab48cfa6760e1d8ea153fbe1c859b56d4fd81fc1dae182424ec0b33511de06556efc7edf05d9adbbc78df4b SHA512 7cc6f9547f8953719d0576db20a1a1d0157b78462e9a999d9dd62accfac1886625800313ce31b6dd7e63c32b1b5324d87ac29fb02177ce25b51d818afb77b3a3 |
25 |
|
26 |
diff --git a/net-p2p/ipfs-cluster/ipfs-cluster-1.0.2.ebuild b/net-p2p/ipfs-cluster/ipfs-cluster-1.0.2.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000..9433e6436 |
29 |
--- /dev/null |
30 |
+++ b/net-p2p/ipfs-cluster/ipfs-cluster-1.0.2.ebuild |
31 |
@@ -0,0 +1,63 @@ |
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 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/QmSTbDLMCFKKKXmEBFgGMZDYV9EfngKsFnws8PZoKhAk38/${P}-vendor.tar.xz" |
43 |
+ |
44 |
+LICENSE="Apache-2.0 MIT" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~x86" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ net-p2p/kubo |
50 |
+" |
51 |
+ |
52 |
+DOCS=( CHANGELOG.md CONTRIBUTING.md README.md ) |
53 |
+ |
54 |
+src_compile() { |
55 |
+ pushd cmd/ipfs-cluster-ctl |
56 |
+ ego build |
57 |
+ mv ipfs-cluster-ctl $OLDPWD |
58 |
+ popd |
59 |
+ |
60 |
+ pushd cmd/ipfs-cluster-follow |
61 |
+ ego build |
62 |
+ mv ipfs-cluster-follow $OLDPWD |
63 |
+ popd |
64 |
+ |
65 |
+ pushd cmd/ipfs-cluster-service |
66 |
+ ego build |
67 |
+ mv ipfs-cluster-service $OLDPWD |
68 |
+ popd |
69 |
+} |
70 |
+ |
71 |
+src_test() { |
72 |
+ go test ./cmd/ipfs-cluster-ctl/... ./cmd/ipfs-cluster-follow/... ./cmd/ipfs-cluster-service/... || die |
73 |
+} |
74 |
+ |
75 |
+src_install() { |
76 |
+ dobin ipfs-cluster-ctl |
77 |
+ dobin ipfs-cluster-follow |
78 |
+ dobin ipfs-cluster-service |
79 |
+ einstalldocs |
80 |
+ |
81 |
+ systemd_dounit "${FILESDIR}/ipfs-cluster.service" |
82 |
+ systemd_newunit "${FILESDIR}/ipfs-cluster.service" "ipfs-cluster@.service" |
83 |
+ |
84 |
+ newinitd "${FILESDIR}/ipfs-cluster.init" ipfs-cluster |
85 |
+ newconfd /dev/null ipfs-cluster |
86 |
+ |
87 |
+ keepdir /var/log/ipfs-cluster |
88 |
+ fowners -R ipfs:ipfs /var/log/ipfs-cluster |
89 |
+} |
90 |
+ |
91 |
+pkg_postinst() { |
92 |
+ elog 'To be able to use the ipfs-cluster service you will need to setup the configuration' |
93 |
+ elog '(eg: su -s /bin/sh -c "ipfs-cluster init" ipfs)' |
94 |
+} |