1 |
commit: 4452218a8e073bec89f42248912d5f6b840c4adb |
2 |
Author: Luke Dashjr <luke-jr+git <AT> utopios <DOT> org> |
3 |
AuthorDate: Sun Dec 10 15:07:49 2017 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 31 16:20:21 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4452218a |
7 |
|
8 |
net-p2p/bitcoind: Bump to 0.15.1 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/521366 |
11 |
Closes: https://bugs.gentoo.org/622370 |
12 |
|
13 |
net-p2p/bitcoind/Manifest | 2 + |
14 |
net-p2p/bitcoind/bitcoind-0.15.1.ebuild | 165 ++++++++++++++++++++++++++++++++ |
15 |
net-p2p/bitcoind/metadata.xml | 2 + |
16 |
3 files changed, 169 insertions(+) |
17 |
|
18 |
diff --git a/net-p2p/bitcoind/Manifest b/net-p2p/bitcoind/Manifest |
19 |
index 8ac457f4430..db66e3f7bb1 100644 |
20 |
--- a/net-p2p/bitcoind/Manifest |
21 |
+++ b/net-p2p/bitcoind/Manifest |
22 |
@@ -1,6 +1,8 @@ |
23 |
DIST bitcoin-0.13.0.knots20160814.patches.tar.xz 128520 BLAKE2B f981bc8e1233fb82a22d57c58f39ee0c3c2bf0732c0b5e2055fab18dadb4febaac56b02a9af14bc0cc68f3f62fbf7890d37f502ca044dcd3432f3a27e52f9b0c SHA512 6a02c8bdfbf4373b6e6cff6ebbfe70e71121caae50e39b68e7e73b3dbe83b5717a03710c4a444ed9b5b9d09aee9494affcf52b86f1b05987d16953324d954ca2 |
24 |
DIST bitcoin-0.13.1.knots20161027.patches.tar.xz 386532 BLAKE2B 82ad8c1da3692f2d3789ffae3814791c0c8634c07325b0f4c0943d1d2bdc07937e8728e22923385976e51dca7d111f7d8319a947dd7117388bf15983f41a8f57 SHA512 de4fee50bb6fcf416f4d0d52283ae4b80fd06a544e9312808bec167b471bc1a20d6ded1ebba92cef937b2bd7ebae19c5c1153d6a10dad40cba4fb6c0a98b4fb6 |
25 |
DIST bitcoin-0.13.2.knots20170102.patches.tar.xz 434012 BLAKE2B 917f6a9bf5b38c557960b1ee2ba548d75eb1fef9ef6908364dfaa7ec8b075e157c303a4eec7ad74deb5cf7ab2ea97c4d800c6fe498d0552318e15fce1b3adf3d SHA512 a19b9d469ff03396375c6f97e3e1f7f24243518e4ca46390bc33debbe5c09dffc8ee8fff4d656b385e38ef0c70e46a474170fd377b8cb94d6cdc2ff58114b061 |
26 |
+DIST bitcoin-0.15.1.knots20171111.patches.tar.xz 443024 BLAKE2B 5010c8d0f6a0bc8cd22ca7d7c73d9e4e689e369f0ba39b59f62fa6b6af3dcf938dfc87d33d3fe595a6e54d99734277a34af068dc29a6e984c76d529fbbe2f383 SHA512 455fadeac6ad57be111104680ec6939d6bf235eb49cde89b9716d36f6914c255b1b69cdea459d89b1bbca56099e793be0c8d7aacf592a9d78495068297bb5890 |
27 |
DIST bitcoin-v0.13.0.tgz 5836862 BLAKE2B 3ce77a7e15f2de66e2d5424bb2d686839ce0eb52d61fa37f21065205052428c264080a98e00fea7118c83d0bf92fec57c9bd629a1582a952b9521b5d528bc803 SHA512 ed49df78cab36ba30c83591724f1a21f7d2c49aa9cd5185ac09b52473aebcb7f406885d593cc7d99ffc87e3607bbeb8a7668a15a892fc6c654d31a5cfe3f53c1 |
28 |
DIST bitcoin-v0.13.1.tgz 5955845 BLAKE2B a86d155f44681aa93720c9620d823070224c547dd7c2a6c075f4c8dec5b0e93b28f12ec3fd8c8c97f3eddd20e8f5763df086be473ed155da9f71479c2ed74779 SHA512 396196fa5325b650c61b966820454712d7e6c3e7a61cb95bacab59a0b6257d113c60105393a2ad1c33623ae81026e15c7356433fd7bafe2888e6b961487259c3 |
29 |
DIST bitcoin-v0.13.2.tgz 6088472 BLAKE2B d6b13613d90d0abf33c937ec0cd003756c4984b95bd320f026c5867ba264cb1773d869bfbb170b2b6df6801eca34af71c5dbd3225b9baa5e94ec50ba22da3f54 SHA512 2c053f1f55a426499e50cbadfccfd7c47be25fd10bb8e3d21fb6f408261c5a0c35f2745891e0eeb0fe953428337e40b6dc730499fcd3ba465315d592352833ca |
30 |
+DIST bitcoin-v0.15.1.tar.gz 7550228 BLAKE2B 0cbb7d0e9d0e5e8eb33502a28289c3f9c86b7c531ed179f7e3e8b601a69a423fa736238a2caae890fd8850eb505533995e578e676860a4014922fbc238185ebb SHA512 a09b6cb64a1649d11e3fd6deeb13a07b1bf4bed504a2fc1c585919459ca8ac1af8e5ecc89dee487359e831a8f12625d54f408f95bb341033d6380b82c290c0d9 |
31 |
|
32 |
diff --git a/net-p2p/bitcoind/bitcoind-0.15.1.ebuild b/net-p2p/bitcoind/bitcoind-0.15.1.ebuild |
33 |
new file mode 100644 |
34 |
index 00000000000..3ada285926e |
35 |
--- /dev/null |
36 |
+++ b/net-p2p/bitcoind/bitcoind-0.15.1.ebuild |
37 |
@@ -0,0 +1,165 @@ |
38 |
+# Copyright 2010-2017 Gentoo Foundation |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+ |
41 |
+EAPI=6 |
42 |
+ |
43 |
+DB_VER="4.8" |
44 |
+inherit autotools bash-completion-r1 db-use systemd user |
45 |
+ |
46 |
+MyPV="${PV/_/}" |
47 |
+MyPN="bitcoin" |
48 |
+MyP="${MyPN}-${MyPV}" |
49 |
+BITCOINCORE_COMMITHASH="7b57bc998f334775b50ebc8ca5e78ca728db4c58" |
50 |
+KNOTS_PV="${PV}.knots20171111" |
51 |
+KNOTS_P="${MyPN}-${KNOTS_PV}" |
52 |
+ |
53 |
+IUSE="+asm +bitcoin_policy_rbf examples knots libressl test upnp +wallet zeromq" |
54 |
+ |
55 |
+DESCRIPTION="Original Bitcoin crypto-currency wallet for automated services" |
56 |
+HOMEPAGE="http://bitcoincore.org/ http://bitcoinknots.org/" |
57 |
+LICENSE="MIT" |
58 |
+SLOT="0" |
59 |
+KEYWORDS="~amd64 ~amd64-linux ~arm ~arm64 ~mips ~ppc ~x86 ~x86-linux" |
60 |
+ |
61 |
+SRC_URI=" |
62 |
+ https://github.com/${MyPN}/${MyPN}/archive/${BITCOINCORE_COMMITHASH}.tar.gz -> ${MyPN}-v${PV}.tar.gz |
63 |
+ http://bitcoinknots.org/files/0.15.x/${KNOTS_PV}/${KNOTS_P}.patches.txz -> ${KNOTS_P}.patches.tar.xz |
64 |
+" |
65 |
+CORE_DESC="https://bitcoincore.org/en/2017/11/11/release-${PV}/" |
66 |
+KNOTS_DESC="http://bitcoinknots.org/files/0.15.x/${KNOTS_PV}/${KNOTS_P}.desc.html" |
67 |
+ |
68 |
+RDEPEND=" |
69 |
+ !libressl? ( dev-libs/openssl:0=[-bindist] ) |
70 |
+ libressl? ( dev-libs/libressl:0= ) |
71 |
+ dev-libs/libevent |
72 |
+ >=dev-libs/libsecp256k1-0.0.0_pre20151118[recovery] |
73 |
+ dev-libs/univalue |
74 |
+ >=dev-libs/boost-1.52.0:=[threads(+)] |
75 |
+ upnp? ( >=net-libs/miniupnpc-1.9.20150916 ) |
76 |
+ wallet? ( sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx] ) |
77 |
+ zeromq? ( net-libs/zeromq ) |
78 |
+ virtual/bitcoin-leveldb |
79 |
+" |
80 |
+DEPEND="${RDEPEND}" |
81 |
+ |
82 |
+DOCS=( doc/bips.md doc/files.md doc/reduce-traffic.md doc/release-notes.md ) |
83 |
+ |
84 |
+S="${WORKDIR}/${MyPN}-${BITCOINCORE_COMMITHASH}" |
85 |
+ |
86 |
+pkg_pretend() { |
87 |
+ if use knots; then |
88 |
+ einfo "You are building ${PN} from Bitcoin Knots." |
89 |
+ einfo "For more information, see ${KNOTS_DESC}" |
90 |
+ else |
91 |
+ einfo "You are building ${PN} from Bitcoin Core." |
92 |
+ einfo "For more information, see ${CORE_DESC}" |
93 |
+ fi |
94 |
+ if use bitcoin_policy_rbf; then |
95 |
+ einfo "Replace By Fee policy is enabled: Your node will preferentially mine and relay transactions paying the highest fee, regardless of receive order." |
96 |
+ else |
97 |
+ einfo "Replace By Fee policy is disabled: Your node will only accept the first transaction seen consuming a conflicting input, regardless of fee offered by later ones." |
98 |
+ fi |
99 |
+} |
100 |
+ |
101 |
+pkg_setup() { |
102 |
+ enewgroup bitcoin |
103 |
+ enewuser bitcoin -1 -1 /var/lib/bitcoin bitcoin |
104 |
+} |
105 |
+ |
106 |
+KNOTS_PATCH() { echo "${WORKDIR}/${KNOTS_P}.patches/${KNOTS_P}.$@.patch"; } |
107 |
+ |
108 |
+src_prepare() { |
109 |
+ sed -i 's/runscript/openrc-run/' contrib/init/${PN}.openrc || die |
110 |
+ |
111 |
+ sed -i 's/^\(complete -F _bitcoind bitcoind\) bitcoin-qt$/\1/' contrib/${PN}.bash-completion || die |
112 |
+ |
113 |
+ eapply "$(KNOTS_PATCH syslibs)" |
114 |
+ |
115 |
+ if use knots; then |
116 |
+ eapply "$(KNOTS_PATCH f)" |
117 |
+ eapply "$(KNOTS_PATCH branding)" |
118 |
+ eapply "$(KNOTS_PATCH ts)" |
119 |
+ fi |
120 |
+ |
121 |
+ eapply_user |
122 |
+ |
123 |
+ if ! use bitcoin_policy_rbf; then |
124 |
+ sed -i 's/\(DEFAULT_ENABLE_REPLACEMENT = \)true/\1false/' src/validation.h || die |
125 |
+ fi |
126 |
+ |
127 |
+ echo '#!/bin/true' >share/genbuild.sh || die |
128 |
+ mkdir -p src/obj || die |
129 |
+ echo "#define BUILD_SUFFIX gentoo${PVR#${PV}}" >src/obj/build.h || die |
130 |
+ |
131 |
+ eautoreconf |
132 |
+ rm -r src/leveldb src/secp256k1 || die |
133 |
+} |
134 |
+ |
135 |
+src_configure() { |
136 |
+ local my_econf=( |
137 |
+ $(use_enable asm experimental-asm) |
138 |
+ --without-qtdbus |
139 |
+ --with-libevent |
140 |
+ --without-qrencode |
141 |
+ $(use_with upnp miniupnpc) |
142 |
+ $(use_enable upnp upnp-default) |
143 |
+ $(use_enable test tests) |
144 |
+ $(use_enable wallet) |
145 |
+ $(use_enable zeromq zmq) |
146 |
+ --with-daemon |
147 |
+ --disable-util-cli |
148 |
+ --disable-util-tx |
149 |
+ --disable-bench |
150 |
+ --without-libs |
151 |
+ --without-gui |
152 |
+ --disable-ccache |
153 |
+ --disable-static |
154 |
+ --with-system-leveldb |
155 |
+ --with-system-libsecp256k1 |
156 |
+ --with-system-univalue |
157 |
+ ) |
158 |
+ econf "${my_econf[@]}" |
159 |
+} |
160 |
+ |
161 |
+src_install() { |
162 |
+ default |
163 |
+ |
164 |
+ rm -f "${ED%/}/usr/bin/test_bitcoin" || die |
165 |
+ |
166 |
+ insinto /etc/bitcoin |
167 |
+ newins "${FILESDIR}/bitcoin.conf" bitcoin.conf |
168 |
+ fowners bitcoin:bitcoin /etc/bitcoin/bitcoin.conf |
169 |
+ fperms 600 /etc/bitcoin/bitcoin.conf |
170 |
+ |
171 |
+ newconfd "contrib/init/bitcoind.openrcconf" ${PN} |
172 |
+ newinitd "contrib/init/bitcoind.openrc" ${PN} |
173 |
+ systemd_newunit "${FILESDIR}/bitcoind.service-r1" "bitcoind.service" |
174 |
+ |
175 |
+ keepdir /var/lib/bitcoin/.bitcoin |
176 |
+ fperms 700 /var/lib/bitcoin |
177 |
+ fowners bitcoin:bitcoin /var/lib/bitcoin/ |
178 |
+ fowners bitcoin:bitcoin /var/lib/bitcoin/.bitcoin |
179 |
+ dosym ../../../../etc/bitcoin/bitcoin.conf /var/lib/bitcoin/.bitcoin/bitcoin.conf |
180 |
+ |
181 |
+ dodoc doc/REST-interface.md doc/tor.md |
182 |
+ doman "${FILESDIR}/bitcoin.conf.5" |
183 |
+ |
184 |
+ use zeromq && dodoc doc/zmq.md |
185 |
+ |
186 |
+ newbashcomp contrib/${PN}.bash-completion ${PN} |
187 |
+ |
188 |
+ if use examples; then |
189 |
+ docinto examples |
190 |
+ dodoc -r contrib/{linearize,qos,tidy_datadir.sh} |
191 |
+ use zeromq && dodoc -r contrib/zmq |
192 |
+ fi |
193 |
+ |
194 |
+ insinto /etc/logrotate.d |
195 |
+ newins "${FILESDIR}/bitcoind.logrotate-r1" bitcoind |
196 |
+} |
197 |
+ |
198 |
+pkg_postinst() { |
199 |
+ einfo "To have ${PN} automatically use Tor when it's running, be sure your 'torrc' config file has 'ControlPort' and 'CookieAuthentication' setup correctly, and:" |
200 |
+ einfo "- if using the init script: add the 'bitcoin' user to the 'tor' user group" |
201 |
+ einfo" - if running bitcoind directly: add that user to the 'tor' user group" |
202 |
+} |
203 |
|
204 |
diff --git a/net-p2p/bitcoind/metadata.xml b/net-p2p/bitcoind/metadata.xml |
205 |
index 57acfffa65e..45a60634af6 100644 |
206 |
--- a/net-p2p/bitcoind/metadata.xml |
207 |
+++ b/net-p2p/bitcoind/metadata.xml |
208 |
@@ -10,6 +10,7 @@ |
209 |
<name>Proxy Maintainers</name> |
210 |
</maintainer> |
211 |
<use> |
212 |
+ <flag name="asm">Enable assembly for optimization</flag> |
213 |
<flag name="bitcoin_policy_rbf">Replace By Fee policy: Your node will preferentially mine and relay transactions paying the highest fee, regardless of receive order</flag> |
214 |
<flag name="bitcoin_policy_spamfilter">Enhanced spam filter policy: Notorious spammers will not be assisted by your node</flag> |
215 |
<flag name="knots">Build enhanced Bitcoin Knots version, rather than Bitcoin Core</flag> |
216 |
@@ -20,5 +21,6 @@ |
217 |
</use> |
218 |
<upstream> |
219 |
<remote-id type="github">bitcoin/bitcoin</remote-id> |
220 |
+ <remote-id type="github">bitcoinknots/bitcoin</remote-id> |
221 |
</upstream> |
222 |
</pkgmetadata> |