Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-p2p/bitcoind: bitcoind-0.7.1.ebuild bitcoind-0.6.0.10_rc4.ebuild bitcoind-0.5.7_rc4.ebuild bitcoind-0.4.8_rc4.ebuild bitcoind-0.6.4_rc4.ebuild ChangeLog
Date: Mon, 29 Oct 2012 01:31:19
Message-Id: 20121029013105.CC6DA21600@flycatcher.gentoo.org
1 blueness 12/10/29 01:31:05
2
3 Modified: ChangeLog
4 Added: bitcoind-0.7.1.ebuild bitcoind-0.6.0.10_rc4.ebuild
5 bitcoind-0.5.7_rc4.ebuild bitcoind-0.4.8_rc4.ebuild
6 bitcoind-0.6.4_rc4.ebuild
7 Log:
8 Version bumps, bug #435216
9
10 (Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 0xD0455535)
11
12 Revision Changes Path
13 1.48 net-p2p/bitcoind/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoind/ChangeLog?rev=1.48&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoind/ChangeLog?rev=1.48&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoind/ChangeLog?r1=1.47&r2=1.48
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/net-p2p/bitcoind/ChangeLog,v
22 retrieving revision 1.47
23 retrieving revision 1.48
24 diff -u -r1.47 -r1.48
25 --- ChangeLog 21 Oct 2012 00:03:53 -0000 1.47
26 +++ ChangeLog 29 Oct 2012 01:31:05 -0000 1.48
27 @@ -1,6 +1,18 @@
28 # ChangeLog for net-p2p/bitcoind
29 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoind/ChangeLog,v 1.47 2012/10/21 00:03:53 blueness Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoind/ChangeLog,v 1.48 2012/10/29 01:31:05 blueness Exp $
32 +
33 +*bitcoind-0.4.8_rc4 (29 Oct 2012)
34 +*bitcoind-0.5.7_rc4 (29 Oct 2012)
35 +*bitcoind-0.7.1 (29 Oct 2012)
36 +*bitcoind-0.6.4_rc4 (29 Oct 2012)
37 +*bitcoind-0.6.0.10_rc4 (29 Oct 2012)
38 +
39 + 29 Oct 2012; Anthony G. Basile <blueness@g.o>
40 + +bitcoind-0.4.8_rc4.ebuild, +bitcoind-0.5.7_rc4.ebuild,
41 + +bitcoind-0.6.0.10_rc4.ebuild, +bitcoind-0.6.4_rc4.ebuild,
42 + +bitcoind-0.7.1.ebuild:
43 + Version bumps, bug #435216
44
45 21 Oct 2012; Anthony G. Basile <blueness@g.o> bitcoind-0.6.3.ebuild:
46 stable arm, bug #429188
47
48
49
50 1.1 net-p2p/bitcoind/bitcoind-0.7.1.ebuild
51
52 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoind/bitcoind-0.7.1.ebuild?rev=1.1&view=markup
53 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoind/bitcoind-0.7.1.ebuild?rev=1.1&content-type=text/plain
54
55 Index: bitcoind-0.7.1.ebuild
56 ===================================================================
57 # Copyright 2010-2012 Gentoo Foundation
58 # Distributed under the terms of the GNU General Public License v2
59 # $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoind/bitcoind-0.7.1.ebuild,v 1.1 2012/10/29 01:31:05 blueness Exp $
60
61 EAPI="4"
62
63 DB_VER="4.8"
64
65 inherit db-use eutils versionator toolchain-funcs
66
67 DESCRIPTION="Original Bitcoin crypto-currency wallet for automated services"
68 HOMEPAGE="http://bitcoin.org/"
69 SRC_URI="https://nodeload.github.com/bitcoin/bitcoin/tarball/v${PV/_/} -> bitcoin-v${PV}.tgz
70 eligius? ( http://luke.dashjr.org/programs/bitcoin/files/bitcoind/eligius/sendfee/0.7.1-eligius_sendfee.patch.xz )
71 "
72
73 LICENSE="MIT ISC GPL-2"
74 SLOT="0"
75 KEYWORDS="~amd64 ~arm ~x86"
76 IUSE="+eligius examples ipv6 logrotate upnp"
77
78 RDEPEND="
79 >=dev-libs/boost-1.41.0
80 dev-libs/openssl[-bindist]
81 logrotate? (
82 app-admin/logrotate
83 )
84 upnp? (
85 net-libs/miniupnpc
86 )
87 sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
88 "
89 DEPEND="${RDEPEND}
90 >=app-shells/bash-4.1
91 "
92
93 S="${WORKDIR}/bitcoin-bitcoin-d082365"
94
95 pkg_setup() {
96 local UG='bitcoin'
97 enewgroup "${UG}"
98 enewuser "${UG}" -1 -1 /var/lib/bitcoin "${UG}"
99 }
100
101 src_prepare() {
102 cd src || die
103 use eligius && epatch "${WORKDIR}/0.7.1-eligius_sendfee.patch"
104 }
105
106 src_compile() {
107 OPTS=()
108 local BOOST_PKG BOOST_VER BOOST_INC
109
110 OPTS+=("DEBUGFLAGS=")
111 OPTS+=("CXXFLAGS=${CXXFLAGS}")
112 OPTS+=("LDFLAGS=${LDFLAGS}")
113
114 OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")")
115 OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}")
116
117 BOOST_PKG="$(best_version 'dev-libs/boost')"
118 BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")"
119 BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")"
120 BOOST_INC="/usr/include/boost-${BOOST_VER}"
121 OPTS+=("BOOST_INCLUDE_PATH=${BOOST_INC}")
122 OPTS+=("BOOST_LIB_SUFFIX=-${BOOST_VER}")
123
124 if use upnp; then
125 OPTS+=(USE_UPNP=1)
126 else
127 OPTS+=(USE_UPNP=)
128 fi
129 use ipv6 || OPTS+=("USE_IPV6=-")
130
131 # Workaround for bug #440034
132 share/genbuild.sh src/obj/build.h
133
134 cd src || die
135 emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -f makefile.unix "${OPTS[@]}" ${PN}
136 }
137
138 src_test() {
139 cd src || die
140 emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -f makefile.unix "${OPTS[@]}" test_bitcoin
141 ./test_bitcoin || die 'Tests failed'
142 }
143
144 src_install() {
145 dobin src/${PN}
146
147 insinto /etc/bitcoin
148 newins "${FILESDIR}/bitcoin.conf" bitcoin.conf
149 fowners bitcoin:bitcoin /etc/bitcoin/bitcoin.conf
150 fperms 600 /etc/bitcoin/bitcoin.conf
151
152 newconfd "${FILESDIR}/bitcoin.confd" ${PN}
153 newinitd "${FILESDIR}/bitcoin.initd" ${PN}
154
155 keepdir /var/lib/bitcoin/.bitcoin
156 fperms 700 /var/lib/bitcoin
157 fowners bitcoin:bitcoin /var/lib/bitcoin/
158 fowners bitcoin:bitcoin /var/lib/bitcoin/.bitcoin
159 dosym /etc/bitcoin/bitcoin.conf /var/lib/bitcoin/.bitcoin/bitcoin.conf
160
161 dodoc doc/README
162
163 if use examples; then
164 docinto examples
165 dodoc -r contrib/{bitrpc,pyminer,wallettools}
166 fi
167
168 if use logrotate; then
169 insinto /etc/logrotate.d
170 newins "${FILESDIR}/bitcoind.logrotate" bitcoind
171 fi
172 }
173
174
175
176 1.1 net-p2p/bitcoind/bitcoind-0.6.0.10_rc4.ebuild
177
178 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoind/bitcoind-0.6.0.10_rc4.ebuild?rev=1.1&view=markup
179 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoind/bitcoind-0.6.0.10_rc4.ebuild?rev=1.1&content-type=text/plain
180
181 Index: bitcoind-0.6.0.10_rc4.ebuild
182 ===================================================================
183 # Copyright 2010-2012 Gentoo Foundation
184 # Distributed under the terms of the GNU General Public License v2
185 # $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoind/bitcoind-0.6.0.10_rc4.ebuild,v 1.1 2012/10/29 01:31:05 blueness Exp $
186
187 EAPI="4"
188
189 DB_VER="4.8"
190
191 inherit db-use eutils versionator toolchain-funcs
192
193 DESCRIPTION="Original Bitcoin crypto-currency wallet for automated services"
194 HOMEPAGE="http://bitcoin.org/"
195 SRC_URI="http://gitorious.org/bitcoin/bitcoind-stable/archive-tarball/v${PV/_/} -> bitcoin-v${PV}.tgz
196 eligius? ( http://luke.dashjr.org/programs/bitcoin/files/eligius_sendfee/0.6.0-eligius_sendfee.patch.xz )
197 "
198
199 LICENSE="MIT ISC GPL-2"
200 SLOT="0"
201 KEYWORDS="~amd64 ~arm ~x86"
202 IUSE="+eligius examples logrotate ssl upnp"
203
204 RDEPEND="
205 >=dev-libs/boost-1.41.0
206 dev-libs/openssl[-bindist]
207 logrotate? (
208 app-admin/logrotate
209 )
210 upnp? (
211 net-libs/miniupnpc
212 )
213 sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
214 "
215 DEPEND="${RDEPEND}
216 >=app-shells/bash-4.1
217 "
218
219 S="${WORKDIR}/bitcoin-bitcoind-stable"
220
221 pkg_setup() {
222 local UG='bitcoin'
223 enewgroup "${UG}"
224 enewuser "${UG}" -1 -1 /var/lib/bitcoin "${UG}"
225 }
226
227 src_prepare() {
228 cd src || die
229 use eligius && epatch "${WORKDIR}/0.6.0-eligius_sendfee.patch"
230 use logrotate && epatch "${FILESDIR}/0.6.0.8-reopen_log_file.patch"
231 }
232
233 src_compile() {
234 OPTS=()
235 local BOOST_PKG BOOST_VER BOOST_INC
236
237 OPTS+=("DEBUGFLAGS=")
238 OPTS+=("CXXFLAGS=${CXXFLAGS}")
239 OPTS+=("LDFLAGS=${LDFLAGS}")
240
241 OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")")
242 OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}")
243
244 BOOST_PKG="$(best_version 'dev-libs/boost')"
245 BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")"
246 BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")"
247 BOOST_INC="/usr/include/boost-${BOOST_VER}"
248 OPTS+=("BOOST_INCLUDE_PATH=${BOOST_INC}")
249 OPTS+=("BOOST_LIB_SUFFIX=-${BOOST_VER}")
250
251 use ssl && OPTS+=(USE_SSL=1)
252 if use upnp; then
253 OPTS+=(USE_UPNP=1)
254 else
255 OPTS+=(USE_UPNP=)
256 fi
257
258 cd src || die
259 emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -f makefile.unix "${OPTS[@]}" ${PN}
260 }
261
262 src_test() {
263 cd src || die
264 emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -f makefile.unix "${OPTS[@]}" test_bitcoin
265 ./test_bitcoin || die 'Tests failed'
266 }
267
268 src_install() {
269 dobin src/${PN}
270
271 insinto /etc/bitcoin
272 newins "${FILESDIR}/bitcoin.conf" bitcoin.conf
273 fowners bitcoin:bitcoin /etc/bitcoin/bitcoin.conf
274 fperms 600 /etc/bitcoin/bitcoin.conf
275
276 newconfd "${FILESDIR}/bitcoin.confd" ${PN}
277 newinitd "${FILESDIR}/bitcoin.initd" ${PN}
278
279 keepdir /var/lib/bitcoin/.bitcoin
280 fperms 700 /var/lib/bitcoin
281 fowners bitcoin:bitcoin /var/lib/bitcoin/
282 fowners bitcoin:bitcoin /var/lib/bitcoin/.bitcoin
283 dosym /etc/bitcoin/bitcoin.conf /var/lib/bitcoin/.bitcoin/bitcoin.conf
284
285 dodoc doc/README
286
287 if use examples; then
288 docinto examples
289 dodoc -r contrib/{bitrpc,pyminer,wallettools}
290 fi
291
292 if use logrotate; then
293 insinto /etc/logrotate.d
294 newins "${FILESDIR}/bitcoind.logrotate" bitcoind
295 fi
296 }
297
298
299
300 1.1 net-p2p/bitcoind/bitcoind-0.5.7_rc4.ebuild
301
302 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoind/bitcoind-0.5.7_rc4.ebuild?rev=1.1&view=markup
303 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoind/bitcoind-0.5.7_rc4.ebuild?rev=1.1&content-type=text/plain
304
305 Index: bitcoind-0.5.7_rc4.ebuild
306 ===================================================================
307 # Copyright 2010-2012 Gentoo Foundation
308 # Distributed under the terms of the GNU General Public License v2
309 # $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoind/bitcoind-0.5.7_rc4.ebuild,v 1.1 2012/10/29 01:31:05 blueness Exp $
310
311 EAPI="4"
312
313 DB_VER="4.8"
314
315 inherit db-use eutils versionator toolchain-funcs
316
317 DESCRIPTION="Original Bitcoin crypto-currency wallet for automated services"
318 HOMEPAGE="http://bitcoin.org/"
319 SRC_URI="http://gitorious.org/bitcoin/bitcoind-stable/archive-tarball/v${PV/_/} -> bitcoin-v${PV}.tgz
320 bip16? ( http://luke.dashjr.org/programs/bitcoin/files/bip16/0.5.6-Minimal-support-for-mining-BIP16-pay-to-script-hash-.patch.xz )
321 eligius? (
322 !bip16? ( http://luke.dashjr.org/programs/bitcoin/files/eligius_sendfee/0.5.0.6rc1-eligius_sendfee.patch.xz )
323 )
324 "
325
326 LICENSE="MIT ISC GPL-2"
327 SLOT="0"
328 KEYWORDS="~amd64 ~arm ~x86"
329 IUSE="+bip16 +eligius examples logrotate ssl upnp"
330
331 RDEPEND="
332 >=dev-libs/boost-1.41.0
333 dev-libs/openssl[-bindist]
334 logrotate? (
335 app-admin/logrotate
336 )
337 upnp? (
338 net-libs/miniupnpc
339 )
340 sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
341 "
342 DEPEND="${RDEPEND}
343 >=app-shells/bash-4.1
344 "
345
346 S="${WORKDIR}/bitcoin-bitcoind-stable"
347
348 pkg_setup() {
349 local UG='bitcoin'
350 enewgroup "${UG}"
351 enewuser "${UG}" -1 -1 /var/lib/bitcoin "${UG}"
352 }
353
354 src_prepare() {
355 cd src || die
356 if use bip16; then
357 epatch "${WORKDIR}/0.5.6-Minimal-support-for-mining-BIP16-pay-to-script-hash-.patch"
358 use eligius && epatch "${FILESDIR}/0.5.0.5+bip16-eligius_sendfee.patch"
359 else
360 use eligius && epatch "${WORKDIR}/0.5.0.6rc1-eligius_sendfee.patch"
361 fi
362 use logrotate && epatch "${FILESDIR}/0.4.7-reopen_log_file.patch"
363 }
364
365 src_compile() {
366 OPTS=()
367 local BOOST_PKG BOOST_VER BOOST_INC
368
369 OPTS+=("DEBUGFLAGS=")
370 OPTS+=("CXXFLAGS=${CXXFLAGS}")
371 OPTS+=("LDFLAGS=${LDFLAGS}")
372
373 OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")")
374 OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}")
375
376 BOOST_PKG="$(best_version 'dev-libs/boost')"
377 BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")"
378 BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")"
379 BOOST_INC="/usr/include/boost-${BOOST_VER}"
380 OPTS+=("BOOST_INCLUDE_PATH=${BOOST_INC}")
381 OPTS+=("BOOST_LIB_SUFFIX=-${BOOST_VER}")
382
383 use ssl && OPTS+=(USE_SSL=1)
384 if use upnp; then
385 OPTS+=(USE_UPNP=1)
386 else
387 OPTS+=(USE_UPNP=)
388 fi
389
390 cd src || die
391 emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -f makefile.unix "${OPTS[@]}" ${PN}
392 }
393
394 src_test() {
395 cd src || die
396 emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -f makefile.unix "${OPTS[@]}" test_bitcoin
397 ./test_bitcoin || die 'Tests failed'
398 }
399
400 src_install() {
401 dobin src/${PN}
402
403 insinto /etc/bitcoin
404 newins "${FILESDIR}/bitcoin.conf" bitcoin.conf
405 fowners bitcoin:bitcoin /etc/bitcoin/bitcoin.conf
406 fperms 600 /etc/bitcoin/bitcoin.conf
407
408 newconfd "${FILESDIR}/bitcoin.confd" ${PN}
409 newinitd "${FILESDIR}/bitcoin.initd" ${PN}
410
411 keepdir /var/lib/bitcoin/.bitcoin
412 fperms 700 /var/lib/bitcoin
413 fowners bitcoin:bitcoin /var/lib/bitcoin/
414 fowners bitcoin:bitcoin /var/lib/bitcoin/.bitcoin
415 dosym /etc/bitcoin/bitcoin.conf /var/lib/bitcoin/.bitcoin/bitcoin.conf
416
417 dodoc doc/README
418
419 if use examples; then
420 docinto examples
421 dodoc -r contrib/{bitrpc,pyminer,wallettools}
422 fi
423
424 if use logrotate; then
425 insinto /etc/logrotate.d
426 newins "${FILESDIR}/bitcoind.logrotate" bitcoind
427 fi
428 }
429
430
431
432 1.1 net-p2p/bitcoind/bitcoind-0.4.8_rc4.ebuild
433
434 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoind/bitcoind-0.4.8_rc4.ebuild?rev=1.1&view=markup
435 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoind/bitcoind-0.4.8_rc4.ebuild?rev=1.1&content-type=text/plain
436
437 Index: bitcoind-0.4.8_rc4.ebuild
438 ===================================================================
439 # Copyright 2010-2012 Gentoo Foundation
440 # Distributed under the terms of the GNU General Public License v2
441 # $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoind/bitcoind-0.4.8_rc4.ebuild,v 1.1 2012/10/29 01:31:05 blueness Exp $
442
443 EAPI=4
444
445 DB_VER="4.8"
446
447 inherit db-use eutils versionator
448
449 DESCRIPTION="Original Bitcoin crypto-currency wallet for automated services"
450 HOMEPAGE="http://bitcoin.org/"
451 SRC_URI="http://gitorious.org/bitcoin/${PN}-stable/archive-tarball/v${PV/_/} -> bitcoin-v${PV}.tgz
452 bip16? ( http://luke.dashjr.org/programs/bitcoin/files/bip16/0.4.7-Minimal-support-for-mining-BIP16-pay-to-script-hash-.patch.xz )
453 eligius? (
454 !bip16? ( http://luke.dashjr.org/programs/bitcoin/files/eligius_sendfee/0.4.5rc1-eligius_sendfee.patch.xz )
455 )
456 "
457
458 LICENSE="MIT ISC GPL-2"
459 SLOT="0"
460 KEYWORDS="~amd64 ~x86"
461 IUSE="+bip16 +eligius logrotate ssl upnp"
462
463 RDEPEND="
464 >=dev-libs/boost-1.41.0
465 dev-libs/crypto++
466 dev-libs/openssl[-bindist]
467 logrotate? (
468 app-admin/logrotate
469 )
470 upnp? (
471 net-libs/miniupnpc
472 )
473 sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
474 "
475 DEPEND="${RDEPEND}
476 >=app-shells/bash-4.1
477 "
478
479 S="${WORKDIR}/bitcoin-${PN}-stable"
480
481 pkg_setup() {
482 local UG='bitcoin'
483 enewgroup "${UG}"
484 enewuser "${UG}" -1 -1 /var/lib/bitcoin "${UG}"
485 }
486
487 src_prepare() {
488 cd src || die
489 cp "${FILESDIR}/0.4.2-Makefile.gentoo" "Makefile" || die
490 if use bip16; then
491 epatch "${WORKDIR}/0.4.7-Minimal-support-for-mining-BIP16-pay-to-script-hash-.patch"
492 use eligius && epatch "${FILESDIR}/0.4.4+bip16-eligius_sendfee.patch"
493 else
494 use eligius && epatch "${WORKDIR}/0.4.5rc1-eligius_sendfee.patch"
495 fi
496 use logrotate && epatch "${FILESDIR}/0.4.7-reopen_log_file.patch"
497 }
498
499 src_compile() {
500 local OPTS=()
501 local BOOST_PKG BOOST_VER BOOST_INC
502
503 OPTS+=("CXXFLAGS=${CXXFLAGS}")
504 OPTS+=( "LDFLAGS=${LDFLAGS}")
505
506 OPTS+=("DB_CXXFLAGS=-I$(db_includedir "${DB_VER}")")
507 OPTS+=("DB_LDFLAGS=-ldb_cxx-${DB_VER}")
508
509 BOOST_PKG="$(best_version 'dev-libs/boost')"
510 BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")"
511 BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")"
512 BOOST_INC="/usr/include/boost-${BOOST_VER}"
513 OPTS+=("BOOST_CXXFLAGS=-I${BOOST_INC}")
514 OPTS+=("BOOST_LIB_SUFFIX=-${BOOST_VER}")
515
516 use ssl && OPTS+=(USE_SSL=1)
517 use upnp && OPTS+=(USE_UPNP=1)
518
519 cd src || die
520 emake "${OPTS[@]}" ${PN}
521 }
522
523 src_install() {
524 dobin src/${PN}
525
526 insinto /etc/bitcoin
527 newins "${FILESDIR}/bitcoin.conf" bitcoin.conf
528 fowners bitcoin:bitcoin /etc/bitcoin/bitcoin.conf
529 fperms 600 /etc/bitcoin/bitcoin.conf
530
531 newconfd "${FILESDIR}/bitcoin.confd" ${PN}
532 newinitd "${FILESDIR}/bitcoin.initd" ${PN}
533
534 keepdir /var/lib/bitcoin/.bitcoin
535 fperms 700 /var/lib/bitcoin
536 fowners bitcoin:bitcoin /var/lib/bitcoin/
537 fowners bitcoin:bitcoin /var/lib/bitcoin/.bitcoin
538 dosym /etc/bitcoin/bitcoin.conf /var/lib/bitcoin/.bitcoin/bitcoin.conf
539
540 dodoc doc/README
541
542 if use logrotate; then
543 insinto /etc/logrotate.d
544 newins "${FILESDIR}/bitcoind.logrotate" bitcoind
545 fi
546 }
547
548
549
550 1.1 net-p2p/bitcoind/bitcoind-0.6.4_rc4.ebuild
551
552 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoind/bitcoind-0.6.4_rc4.ebuild?rev=1.1&view=markup
553 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoind/bitcoind-0.6.4_rc4.ebuild?rev=1.1&content-type=text/plain
554
555 Index: bitcoind-0.6.4_rc4.ebuild
556 ===================================================================
557 # Copyright 2010-2012 Gentoo Foundation
558 # Distributed under the terms of the GNU General Public License v2
559 # $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoind/bitcoind-0.6.4_rc4.ebuild,v 1.1 2012/10/29 01:31:05 blueness Exp $
560
561 EAPI="4"
562
563 DB_VER="4.8"
564
565 inherit db-use eutils versionator toolchain-funcs
566
567 DESCRIPTION="Original Bitcoin crypto-currency wallet for automated services"
568 HOMEPAGE="http://bitcoin.org/"
569 SRC_URI="http://gitorious.org/bitcoin/bitcoind-stable/archive-tarball/392d30f0 -> bitcoin-v${PV}.tgz
570 eligius? ( http://luke.dashjr.org/programs/bitcoin/files/bitcoind/eligius/sendfee/0.6.1-eligius_sendfee.patch.xz )
571 logrotate? ( https://github.com/bitcoin/bitcoin/commit/9af080c351c40a4f56d37174253d33a9f4ffdb69.diff -> 0.6.3-reopen_log_file.patch )
572 "
573
574 LICENSE="MIT ISC GPL-2"
575 SLOT="0"
576 KEYWORDS="~amd64 ~arm ~x86"
577 IUSE="+eligius examples logrotate upnp"
578
579 RDEPEND="
580 >=dev-libs/boost-1.41.0
581 dev-libs/openssl[-bindist]
582 logrotate? (
583 app-admin/logrotate
584 )
585 upnp? (
586 net-libs/miniupnpc
587 )
588 sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
589 "
590 DEPEND="${RDEPEND}
591 >=app-shells/bash-4.1
592 "
593
594 S="${WORKDIR}/bitcoin-bitcoind-stable"
595
596 pkg_setup() {
597 local UG='bitcoin'
598 enewgroup "${UG}"
599 enewuser "${UG}" -1 -1 /var/lib/bitcoin "${UG}"
600 }
601
602 src_prepare() {
603 cd src || die
604 use eligius && epatch "${WORKDIR}/0.6.1-eligius_sendfee.patch"
605 use logrotate && epatch "${DISTDIR}/0.6.3-reopen_log_file.patch"
606 }
607
608 src_compile() {
609 OPTS=()
610 local BOOST_PKG BOOST_VER BOOST_INC
611
612 OPTS+=("DEBUGFLAGS=")
613 OPTS+=("CXXFLAGS=${CXXFLAGS}")
614 OPTS+=("LDFLAGS=${LDFLAGS}")
615
616 OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")")
617 OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}")
618
619 BOOST_PKG="$(best_version 'dev-libs/boost')"
620 BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")"
621 BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")"
622 BOOST_INC="/usr/include/boost-${BOOST_VER}"
623 OPTS+=("BOOST_INCLUDE_PATH=${BOOST_INC}")
624 OPTS+=("BOOST_LIB_SUFFIX=-${BOOST_VER}")
625
626 if use upnp; then
627 OPTS+=(USE_UPNP=1)
628 else
629 OPTS+=(USE_UPNP=)
630 fi
631
632 # Workaround for bug #440034
633 share/genbuild.sh src/obj/build.h
634
635 cd src || die
636 emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -f makefile.unix "${OPTS[@]}" ${PN}
637 }
638
639 src_test() {
640 cd src || die
641 emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -f makefile.unix "${OPTS[@]}" test_bitcoin
642 ./test_bitcoin || die 'Tests failed'
643 }
644
645 src_install() {
646 dobin src/${PN}
647
648 insinto /etc/bitcoin
649 newins "${FILESDIR}/bitcoin.conf" bitcoin.conf
650 fowners bitcoin:bitcoin /etc/bitcoin/bitcoin.conf
651 fperms 600 /etc/bitcoin/bitcoin.conf
652
653 newconfd "${FILESDIR}/bitcoin.confd" ${PN}
654 newinitd "${FILESDIR}/bitcoin.initd" ${PN}
655
656 keepdir /var/lib/bitcoin/.bitcoin
657 fperms 700 /var/lib/bitcoin
658 fowners bitcoin:bitcoin /var/lib/bitcoin/
659 fowners bitcoin:bitcoin /var/lib/bitcoin/.bitcoin
660 dosym /etc/bitcoin/bitcoin.conf /var/lib/bitcoin/.bitcoin/bitcoin.conf
661
662 dodoc doc/README
663
664 if use examples; then
665 docinto examples
666 dodoc -r contrib/{bitrpc,pyminer,wallettools}
667 fi
668
669 if use logrotate; then
670 insinto /etc/logrotate.d
671 newins "${FILESDIR}/bitcoind.logrotate" bitcoind
672 fi
673 }