Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/go-ipfs-bin/files/, net-p2p/go-ipfs-bin/
Date: Sat, 28 Sep 2019 06:46:34
Message-Id: 1569653174.f02a3bf0a1f4c5d58fc553d9a85fe44229e1be76.juippis@gentoo
1 commit: f02a3bf0a1f4c5d58fc553d9a85fe44229e1be76
2 Author: Kai Krakow <kai <AT> kaishome <DOT> de>
3 AuthorDate: Thu Sep 19 21:38:43 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 28 06:46:14 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f02a3bf0
7
8 net-p2p/go-ipfs-bin: Bump to 0.4.22
9
10 Bump to 0.4.22 and fix systemd unit files on that way. This
11 revision installs both variants, a user instance unit and a unit
12 mirroring what the openrc version does (using the "ipfs" user).
13
14 Closes: https://bugs.gentoo.org/643634
15 Package-Manager: Portage-2.3.69, Repoman-2.3.16
16 Signed-off-by: Kai Krakow <kai <AT> kaishome.de>
17 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
18
19 net-p2p/go-ipfs-bin/Manifest | 4 ++
20 .../files/{ipfs.service => ipfs-at.service} | 8 +++-
21 net-p2p/go-ipfs-bin/files/ipfs.service | 11 +++--
22 net-p2p/go-ipfs-bin/go-ipfs-bin-0.4.22.ebuild | 51 ++++++++++++++++++++++
23 net-p2p/go-ipfs-bin/metadata.xml | 8 +++-
24 5 files changed, 75 insertions(+), 7 deletions(-)
25
26 diff --git a/net-p2p/go-ipfs-bin/Manifest b/net-p2p/go-ipfs-bin/Manifest
27 index d9f57fb27c2..fa04e26d3c7 100644
28 --- a/net-p2p/go-ipfs-bin/Manifest
29 +++ b/net-p2p/go-ipfs-bin/Manifest
30 @@ -1,6 +1,7 @@
31 DIST go-ipfs-bin-0.4.18.bash 20753 BLAKE2B c34d29a48cf249b7a646a8a7b6015b9c4a4a5d8656187ec5984b0dfb741a8ca7b2f2d0a10bc0288aa862679c6d52145936b46497936565ba7cdb2ba847fda5b8 SHA512 acd3bdb689964aa5e15965bfea3cd1267f54a2014c05f49f4e536902cbdab3e22038f4f5db5ecc273c147135b265fcb82a41db22bfc3fd8f6ddc8ae43fd053ea
32 DIST go-ipfs-bin-0.4.19.bash 20753 BLAKE2B c34d29a48cf249b7a646a8a7b6015b9c4a4a5d8656187ec5984b0dfb741a8ca7b2f2d0a10bc0288aa862679c6d52145936b46497936565ba7cdb2ba847fda5b8 SHA512 acd3bdb689964aa5e15965bfea3cd1267f54a2014c05f49f4e536902cbdab3e22038f4f5db5ecc273c147135b265fcb82a41db22bfc3fd8f6ddc8ae43fd053ea
33 DIST go-ipfs-bin-0.4.20.bash 20753 BLAKE2B c34d29a48cf249b7a646a8a7b6015b9c4a4a5d8656187ec5984b0dfb741a8ca7b2f2d0a10bc0288aa862679c6d52145936b46497936565ba7cdb2ba847fda5b8 SHA512 acd3bdb689964aa5e15965bfea3cd1267f54a2014c05f49f4e536902cbdab3e22038f4f5db5ecc273c147135b265fcb82a41db22bfc3fd8f6ddc8ae43fd053ea
34 +DIST go-ipfs-bin-0.4.22.bash 20753 BLAKE2B c34d29a48cf249b7a646a8a7b6015b9c4a4a5d8656187ec5984b0dfb741a8ca7b2f2d0a10bc0288aa862679c6d52145936b46497936565ba7cdb2ba847fda5b8 SHA512 acd3bdb689964aa5e15965bfea3cd1267f54a2014c05f49f4e536902cbdab3e22038f4f5db5ecc273c147135b265fcb82a41db22bfc3fd8f6ddc8ae43fd053ea
35 DIST go-ipfs_v0.4.18_linux-386.tar.gz 11128726 BLAKE2B 2f1289bb0aa93d0d03585bb90f577f91c8db922ba7905aab90c6e6b7804b7fab5c52b861aa0cdd927de8ea0b6e20f22f1c42c390628cd2e660fbaecd55b04d24 SHA512 7fff0da87827dcef7c84f959f4cfdc0b5e43e82c636b77fd600d4f62d7b78b8f1660ea346caa5eaf2d791ab275f41c0f83d606e4b36f29f3284a1851a82fbce5
36 DIST go-ipfs_v0.4.18_linux-amd64.tar.gz 13791729 BLAKE2B 777d20792d089216010574798245e0eac0a5ec46549aef3ec4162c289d1d4fec1b381d8fba39ad2a57d88fcbeee5cdd1bd8509fa8883dd946fb452c4266f95de SHA512 ef5b44a0aaed604890c83322ca02228061204085b87b20dd173edfe6b6631fc7a54724d2e00202488c86886992a0d409f43e09f022cdf8b1138f8419cf7614b0
37 DIST go-ipfs_v0.4.18_linux-arm.tar.gz 10933477 BLAKE2B b846926b33c78a6d089717689993c6a9c9b6ae03b32f184c2a74ecc1a9c290e7b29a9e35f2e7691e504e86c6f6229d86bbf956d90d939decb91a22fe04f74504 SHA512 c60cf427109c9c08a73a8270fe9d2792932894cfd68c1a90ec159733d121c5c12647e4b8ab2ed24865c9a4b7f8cb94db9dbe47667e48b5525b39f0c3a0acf085
38 @@ -10,3 +11,6 @@ DIST go-ipfs_v0.4.19_linux-arm.tar.gz 11118746 BLAKE2B 08ea24e8367d22577798636fa
39 DIST go-ipfs_v0.4.20_linux-386.tar.gz 18312554 BLAKE2B 0da4c23635f4451f4a4156f492fb380a538108b1dd834bbfb35ae1d77543e3d2fb9823431228c5cf6fe6aa6318062dcc4c22e4e3c8775c16ac2b5e876ecfafe3 SHA512 675ab88affa3871ea6ca9cf14150f6ad262ca1c7120ab2dbf15259693754f5372de3958ae9265ac800b21e53f495356dc45f1a67fb01548468dabb6e5d8befd4
40 DIST go-ipfs_v0.4.20_linux-amd64.tar.gz 20120151 BLAKE2B 3e363fbf244d4d848dbf5e0e13a78804401ea1b3b205683e8ea6d8b2409557b0575bb23149013ebac231523bb7f6278220715f8e20032d0bbb7a420f94e664b5 SHA512 a8a2ec9c04a7aec576f8b86997d5310b77eca2b78df9c269ac9ef478d786277550f09e410e392ede333eb652e8ed136bb58a22f2b3198c94a61649c7a5525b68
41 DIST go-ipfs_v0.4.20_linux-arm.tar.gz 17668228 BLAKE2B f900ecdbc580e86a476d1d5d64fa54be7856429a33b9fc98d8d8141431be0df2776726c64d81218903c51f648f1ab5256d23daf82e260f4e714c7e4bb169380f SHA512 feb608db7fc9750ca155d008992a93bb5e9e1f53504d224aeb474465c5811ada182770c4a5465331f9d6b2c3472201bb53a1243c0de844f94db4751569db3021
42 +DIST go-ipfs_v0.4.22_linux-386.tar.gz 18865892 BLAKE2B 4ff67301ce6eec8cb38015f6dba16e10ee1fa3efffb47b2c3a9fe76fba875907ccd53ec011abe5b496de4dd2dff0a30f4e526e232f47c174b83004efdcc30764 SHA512 a6d16217412d1be0cdc0a2df604740054758b767994bbcb7ffc745abd90c64c28031b543bcb5589c715fa7115effc9a3b898ada8ad96c604507b428ed2538378
43 +DIST go-ipfs_v0.4.22_linux-amd64.tar.gz 20900056 BLAKE2B f068c367fb454a62c76f9828927aae0870f54853d0aeddfe6ca774490107c26df88ce41efa016732dffaf269d3dc2d16e1744f9cc35d4f86e355744eb3172a10 SHA512 49b99fec741d67f7bad8fb6fbbd984967f06dfc3de846d10dca34b166f621a182d12f13cf5ccf4e4f33747b67cede6f4205b4cd9b57ce5244128d1385ec82c85
44 +DIST go-ipfs_v0.4.22_linux-arm.tar.gz 18199193 BLAKE2B 25316649add6256c4f12efb9bb43848e2049cc7bcbe89dbe77309e1cf793e2ebd28559a05d0974af53488c414a26c28499d80f2f13f80454d4217019c58edc65 SHA512 c803964828ccbac40797e58dc82d10bdf899db26ef71ddd2443882bd4f84ff4a5aee4995a04135cb31b8f991381ce8004c51b06501aaef4d58dbcac239519822
45
46 diff --git a/net-p2p/go-ipfs-bin/files/ipfs.service b/net-p2p/go-ipfs-bin/files/ipfs-at.service
47 similarity index 62%
48 copy from net-p2p/go-ipfs-bin/files/ipfs.service
49 copy to net-p2p/go-ipfs-bin/files/ipfs-at.service
50 index 189ace2fd76..1ad99bd61bc 100644
51 --- a/net-p2p/go-ipfs-bin/files/ipfs.service
52 +++ b/net-p2p/go-ipfs-bin/files/ipfs-at.service
53 @@ -3,10 +3,14 @@ Description=InterPlanetary File System
54 After=network.target
55
56 [Service]
57 +CPUSchedulingPolicy=batch
58 +EnvironmentFile=-/etc/conf.d/ipfs.%i
59 ExecStart=/usr/bin/ipfs daemon --enable-gc --migrate
60 ExecStop=/usr/bin/ipfs shutdown
61 -Group=%i
62 -Restart=always
63 +LimitNOFILE=8192
64 +PrivateTmp=yes
65 +ProtectSystem=full
66 +Restart=on-failure
67 Type=simple
68 User=%i
69
70
71 diff --git a/net-p2p/go-ipfs-bin/files/ipfs.service b/net-p2p/go-ipfs-bin/files/ipfs.service
72 index 189ace2fd76..d942d5697b6 100644
73 --- a/net-p2p/go-ipfs-bin/files/ipfs.service
74 +++ b/net-p2p/go-ipfs-bin/files/ipfs.service
75 @@ -3,12 +3,17 @@ Description=InterPlanetary File System
76 After=network.target
77
78 [Service]
79 +CPUSchedulingPolicy=batch
80 +EnvironmentFile=-/etc/conf.d/ipfs
81 ExecStart=/usr/bin/ipfs daemon --enable-gc --migrate
82 ExecStop=/usr/bin/ipfs shutdown
83 -Group=%i
84 -Restart=always
85 +Group=ipfs
86 +LimitNOFILE=8192
87 +PrivateTmp=yes
88 +ProtectSystem=full
89 +Restart=on-failure
90 Type=simple
91 -User=%i
92 +User=ipfs
93
94 [Install]
95 WantedBy=multi-user.target
96
97 diff --git a/net-p2p/go-ipfs-bin/go-ipfs-bin-0.4.22.ebuild b/net-p2p/go-ipfs-bin/go-ipfs-bin-0.4.22.ebuild
98 new file mode 100644
99 index 00000000000..c4af0136eb9
100 --- /dev/null
101 +++ b/net-p2p/go-ipfs-bin/go-ipfs-bin-0.4.22.ebuild
102 @@ -0,0 +1,51 @@
103 +# Copyright 1999-2019 Gentoo Authors
104 +# Distributed under the terms of the GNU General Public License v2
105 +
106 +EAPI=7
107 +
108 +inherit bash-completion-r1 systemd
109 +
110 +DESCRIPTION="Main implementation of IPFS"
111 +HOMEPAGE="https://ipfs.io/"
112 +SRC_URI="amd64? ( https://dist.ipfs.io/go-ipfs/v${PV}/go-ipfs_v${PV}_linux-amd64.tar.gz )
113 + x86? ( https://dist.ipfs.io/go-ipfs/v${PV}/go-ipfs_v${PV}_linux-386.tar.gz )
114 + arm? ( https://dist.ipfs.io/go-ipfs/v${PV}/go-ipfs_v${PV}_linux-arm.tar.gz )
115 +
116 + https://raw.githubusercontent.com/ipfs/go-ipfs/v${PV}/misc/completion/ipfs-completion.bash -> ${P}.bash"
117 +
118 +LICENSE="MIT"
119 +SLOT="0"
120 +KEYWORDS="-* ~amd64 ~arm ~x86"
121 +
122 +RDEPEND="
123 + acct-group/ipfs
124 + acct-user/ipfs
125 + sys-fs/fuse:0
126 +"
127 +
128 +S="${WORKDIR}/go-ipfs"
129 +
130 +QA_PREBUILT="/usr/bin/ipfs"
131 +
132 +src_install() {
133 + dobin ipfs
134 +
135 + systemd_dounit "${FILESDIR}/ipfs.service"
136 + systemd_newunit "${FILESDIR}/ipfs-at.service" "ipfs@.service"
137 +
138 + newinitd "${FILESDIR}/ipfs.init" ipfs
139 + newconfd "${FILESDIR}/ipfs.confd" ipfs
140 +
141 + newbashcomp "${DISTDIR}/${P}.bash" "ipfs"
142 + keepdir /var/log/ipfs
143 +}
144 +
145 +pkg_preinst() {
146 + fowners -R ipfs:ipfs /var/log/ipfs
147 +}
148 +
149 +pkg_postinst() {
150 + elog 'To be able to use the ipfs service you will need to create the ipfs repository'
151 + elog '(eg: su -s /bin/sh -c "ipfs init -e" ipfs)'
152 + elog 'or change IPFS_PATH of /etc/conf.d/ipfs with another with proper permissions.'
153 +}
154
155 diff --git a/net-p2p/go-ipfs-bin/metadata.xml b/net-p2p/go-ipfs-bin/metadata.xml
156 index 463ccefc2c0..ee40761b5e1 100644
157 --- a/net-p2p/go-ipfs-bin/metadata.xml
158 +++ b/net-p2p/go-ipfs-bin/metadata.xml
159 @@ -5,12 +5,16 @@
160 <email>davidroman96@×××××.com</email>
161 <name>David Roman</name>
162 </maintainer>
163 + <maintainer type="person">
164 + <email>hurikhan77+bgo@×××××.com</email>
165 + <name>Kai Krakow</name>
166 + </maintainer>
167 <maintainer type="project">
168 <email>proxy-maint@g.o</email>
169 <name>Proxy Maintainers</name>
170 </maintainer>
171 <longdescription lang="en">
172 - IPFS is a decentralized torrent-like networking system with transparent
173 - file adding/downloading.
174 + IPFS is a decentralized torrent-like networking system with transparent
175 + file adding/downloading.
176 </longdescription>
177 </pkgmetadata>