1 |
blueness 11/12/23 19:19:38 |
2 |
|
3 |
Added: bitcoind-0.4.2.ebuild ChangeLog metadata.xml |
4 |
bitcoind-0.5.1.ebuild |
5 |
Log: |
6 |
Initial commit, proxy maintaining for Luke Dashjr, bug #328391 |
7 |
|
8 |
(Portage version: 2.1.10.41/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 net-p2p/bitcoind/bitcoind-0.4.2.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoind/bitcoind-0.4.2.ebuild?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoind/bitcoind-0.4.2.ebuild?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: bitcoind-0.4.2.ebuild |
17 |
=================================================================== |
18 |
# Copyright 1999-2011 Gentoo Foundation |
19 |
# Distributed under the terms of the GNU General Public License v2 |
20 |
# $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoind/bitcoind-0.4.2.ebuild,v 1.1 2011/12/23 19:19:38 blueness Exp $ |
21 |
|
22 |
EAPI=4 |
23 |
|
24 |
DB_VER="4.8" |
25 |
|
26 |
inherit db-use eutils versionator |
27 |
|
28 |
DESCRIPTION="Original Bitcoin crypto-currency wallet for automated services" |
29 |
HOMEPAGE="http://bitcoin.org/" |
30 |
SRC_URI="http://gitorious.org/bitcoin/${PN}-stable/archive-tarball/v${PV/_/} -> bitcoin-v${PV}.tgz |
31 |
eligius? ( http://luke.dashjr.org/programs/bitcoin/files/0.5-eligius_sendfee.patch ) |
32 |
" |
33 |
|
34 |
LICENSE="MIT ISC" |
35 |
SLOT="0" |
36 |
KEYWORDS="~amd64 ~x86" |
37 |
IUSE="+eligius ssl upnp" |
38 |
|
39 |
RDEPEND=" |
40 |
>=dev-libs/boost-1.41.0 |
41 |
dev-libs/crypto++ |
42 |
dev-libs/openssl[-bindist] |
43 |
upnp? ( |
44 |
net-libs/miniupnpc |
45 |
) |
46 |
sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx] |
47 |
" |
48 |
DEPEND="${RDEPEND} |
49 |
>=app-shells/bash-4.1 |
50 |
" |
51 |
|
52 |
S="${WORKDIR}/bitcoin-${PN}-stable" |
53 |
|
54 |
pkg_setup() { |
55 |
local UG='bitcoin' |
56 |
enewgroup "${UG}" |
57 |
enewuser "${UG}" -1 -1 /var/lib/bitcoin "${UG}" |
58 |
} |
59 |
|
60 |
src_prepare() { |
61 |
cd src || die |
62 |
cp "${FILESDIR}/0.4.2-Makefile.gentoo" "Makefile" || die |
63 |
use eligius && epatch "${DISTDIR}/0.5-eligius_sendfee.patch" |
64 |
} |
65 |
|
66 |
src_compile() { |
67 |
local OPTS=() |
68 |
local BOOST_PKG BOOST_VER BOOST_INC |
69 |
|
70 |
OPTS+=("CXXFLAGS=${CXXFLAGS}") |
71 |
OPTS+=( "LDFLAGS=${LDFLAGS}") |
72 |
|
73 |
OPTS+=("DB_CXXFLAGS=-I$(db_includedir "${DB_VER}")") |
74 |
OPTS+=("DB_LDFLAGS=-ldb_cxx-${DB_VER}") |
75 |
|
76 |
BOOST_PKG="$(best_version 'dev-libs/boost')" |
77 |
BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")" |
78 |
BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")" |
79 |
BOOST_INC="/usr/include/boost-${BOOST_VER}" |
80 |
OPTS+=("BOOST_CXXFLAGS=-I${BOOST_INC}") |
81 |
OPTS+=("BOOST_LIB_SUFFIX=-${BOOST_VER}") |
82 |
|
83 |
use ssl && OPTS+=(USE_SSL=1) |
84 |
use upnp && OPTS+=(USE_UPNP=1) |
85 |
|
86 |
cd src || die |
87 |
emake "${OPTS[@]}" ${PN} |
88 |
} |
89 |
|
90 |
src_install() { |
91 |
dobin src/${PN} |
92 |
|
93 |
insinto /etc/bitcoin |
94 |
newins "${FILESDIR}/bitcoin.conf" bitcoin.conf |
95 |
fowners bitcoin:bitcoin /etc/bitcoin/bitcoin.conf |
96 |
fperms 600 /etc/bitcoin/bitcoin.conf |
97 |
|
98 |
newconfd "${FILESDIR}/bitcoin.confd" ${PN} |
99 |
newinitd "${FILESDIR}/bitcoin.initd" ${PN} |
100 |
|
101 |
keepdir /var/lib/bitcoin/.bitcoin |
102 |
fperms 700 /var/lib/bitcoin |
103 |
fowners bitcoin:bitcoin /var/lib/bitcoin/ |
104 |
fowners bitcoin:bitcoin /var/lib/bitcoin/.bitcoin |
105 |
dosym /etc/bitcoin/bitcoin.conf /var/lib/bitcoin/.bitcoin/bitcoin.conf |
106 |
|
107 |
dodoc doc/README |
108 |
} |
109 |
|
110 |
|
111 |
|
112 |
1.1 net-p2p/bitcoind/ChangeLog |
113 |
|
114 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoind/ChangeLog?rev=1.1&view=markup |
115 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoind/ChangeLog?rev=1.1&content-type=text/plain |
116 |
|
117 |
Index: ChangeLog |
118 |
=================================================================== |
119 |
|
120 |
|
121 |
*bitcoind-0.5.1 (23 Dec 2011) |
122 |
*bitcoind-0.4.2 (23 Dec 2011) |
123 |
|
124 |
23 Dec 2011; Anthony G. Basile <blueness@g.o> |
125 |
+files/0.4.2-Makefile.gentoo, +bitcoind-0.4.2.ebuild, +bitcoind-0.5.1.ebuild, |
126 |
+files/bitcoin.conf, +files/bitcoin.confd, +files/bitcoin.initd, |
127 |
+metadata.xml: |
128 |
Initial commit, proxy maintaining for Luke Dashjr, bug #328391 |
129 |
|
130 |
|
131 |
|
132 |
|
133 |
1.1 net-p2p/bitcoind/metadata.xml |
134 |
|
135 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoind/metadata.xml?rev=1.1&view=markup |
136 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoind/metadata.xml?rev=1.1&content-type=text/plain |
137 |
|
138 |
Index: metadata.xml |
139 |
=================================================================== |
140 |
<?xml version="1.0" encoding="UTF-8"?> |
141 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
142 |
<pkgmetadata> |
143 |
<maintainer> |
144 |
<email>blueness@g.o</email> |
145 |
<name>Anthony G. Basile</name> |
146 |
</maintainer> |
147 |
<maintainer> |
148 |
<email>luke_gentoo_bitcoin@××××××.org</email> |
149 |
<name>Luke Dashjr</name> |
150 |
</maintainer> |
151 |
<use> |
152 |
<flag name='eligius'>Enable using lower fees accepted by Eligius</flag> |
153 |
<flag name='upnp'>Enable Universal Plug and Play</flag> |
154 |
</use> |
155 |
</pkgmetadata> |
156 |
|
157 |
|
158 |
|
159 |
1.1 net-p2p/bitcoind/bitcoind-0.5.1.ebuild |
160 |
|
161 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoind/bitcoind-0.5.1.ebuild?rev=1.1&view=markup |
162 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoind/bitcoind-0.5.1.ebuild?rev=1.1&content-type=text/plain |
163 |
|
164 |
Index: bitcoind-0.5.1.ebuild |
165 |
=================================================================== |
166 |
# Copyright 1999-2011 Gentoo Foundation |
167 |
# Distributed under the terms of the GNU General Public License v2 |
168 |
# $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoind/bitcoind-0.5.1.ebuild,v 1.1 2011/12/23 19:19:38 blueness Exp $ |
169 |
|
170 |
EAPI=4 |
171 |
|
172 |
DB_VER="4.8" |
173 |
|
174 |
inherit db-use eutils versionator |
175 |
|
176 |
DESCRIPTION="Original Bitcoin crypto-currency wallet for automated services" |
177 |
HOMEPAGE="http://bitcoin.org/" |
178 |
SRC_URI="https://github.com/bitcoin/bitcoin/tarball/v${PV/_/} -> bitcoin-v${PV}.tgz |
179 |
eligius? ( http://luke.dashjr.org/programs/bitcoin/files/0.5-eligius_sendfee.patch ) |
180 |
" |
181 |
|
182 |
LICENSE="MIT ISC" |
183 |
SLOT="0" |
184 |
KEYWORDS="~amd64 ~arm ~x86" |
185 |
IUSE="+eligius examples ssl upnp" |
186 |
|
187 |
RDEPEND=" |
188 |
>=dev-libs/boost-1.41.0 |
189 |
dev-libs/openssl[-bindist] |
190 |
upnp? ( |
191 |
net-libs/miniupnpc |
192 |
) |
193 |
sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx] |
194 |
" |
195 |
DEPEND="${RDEPEND} |
196 |
>=app-shells/bash-4.1 |
197 |
" |
198 |
|
199 |
S="${WORKDIR}/bitcoin-bitcoin-5623ee7" |
200 |
|
201 |
pkg_setup() { |
202 |
local UG='bitcoin' |
203 |
enewgroup "${UG}" |
204 |
enewuser "${UG}" -1 -1 /var/lib/bitcoin "${UG}" |
205 |
} |
206 |
|
207 |
src_prepare() { |
208 |
cd src || die |
209 |
use eligius && epatch "${DISTDIR}/0.5-eligius_sendfee.patch" |
210 |
} |
211 |
|
212 |
src_compile() { |
213 |
local OPTS=() |
214 |
local BOOST_PKG BOOST_VER BOOST_INC |
215 |
|
216 |
OPTS+=("CXXFLAGS=${CXXFLAGS}") |
217 |
OPTS+=("LDFLAGS=${LDFLAGS}") |
218 |
|
219 |
OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")") |
220 |
OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}") |
221 |
|
222 |
BOOST_PKG="$(best_version 'dev-libs/boost')" |
223 |
BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")" |
224 |
BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")" |
225 |
BOOST_INC="/usr/include/boost-${BOOST_VER}" |
226 |
OPTS+=("BOOST_INCLUDE_PATH=${BOOST_INC}") |
227 |
OPTS+=("BOOST_LIB_SUFFIX=-${BOOST_VER}") |
228 |
|
229 |
use ssl && OPTS+=(USE_SSL=1) |
230 |
if use upnp; then |
231 |
OPTS+=(USE_UPNP=1) |
232 |
else |
233 |
OPTS+=(USE_UPNP=) |
234 |
fi |
235 |
|
236 |
cd src || die |
237 |
emake -f makefile.unix "${OPTS[@]}" ${PN} |
238 |
} |
239 |
|
240 |
src_install() { |
241 |
dobin src/${PN} |
242 |
|
243 |
insinto /etc/bitcoin |
244 |
newins "${FILESDIR}/bitcoin.conf" bitcoin.conf |
245 |
fowners bitcoin:bitcoin /etc/bitcoin/bitcoin.conf |
246 |
fperms 600 /etc/bitcoin/bitcoin.conf |
247 |
|
248 |
newconfd "${FILESDIR}/bitcoin.confd" ${PN} |
249 |
newinitd "${FILESDIR}/bitcoin.initd" ${PN} |
250 |
|
251 |
keepdir /var/lib/bitcoin/.bitcoin |
252 |
fperms 700 /var/lib/bitcoin |
253 |
fowners bitcoin:bitcoin /var/lib/bitcoin/ |
254 |
fowners bitcoin:bitcoin /var/lib/bitcoin/.bitcoin |
255 |
dosym /etc/bitcoin/bitcoin.conf /var/lib/bitcoin/.bitcoin/bitcoin.conf |
256 |
|
257 |
dodoc doc/README |
258 |
|
259 |
if use examples; then |
260 |
docinto examples |
261 |
dodoc -r contrib/{bitrpc,pyminer,wallettools} |
262 |
fi |
263 |
} |