summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2013-07-27 07:26:44 +0000
committerPacho Ramos <pacho@gentoo.org>2013-07-27 07:26:44 +0000
commita3e0bfc522cb76037899938892ffbedcf112ca8f (patch)
tree9156ca3dac51bf6b557caa9ee6e0b6f1a66d71b7 /net-p2p
parentInstall unit file #403317 (diff)
downloadhistorical-a3e0bfc522cb76037899938892ffbedcf112ca8f.tar.gz
historical-a3e0bfc522cb76037899938892ffbedcf112ca8f.tar.bz2
historical-a3e0bfc522cb76037899938892ffbedcf112ca8f.zip
Install unit file #469670
Package-Manager: portage-2.1.13.1/cvs/Linux x86_64 Manifest-Sign-Key: 0xA188FBD4
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/bitcoind/ChangeLog8
-rw-r--r--net-p2p/bitcoind/Manifest20
-rw-r--r--net-p2p/bitcoind/bitcoind-0.8.3-r1.ebuild123
-rw-r--r--net-p2p/bitcoind/files/bitcoind.service30
4 files changed, 166 insertions, 15 deletions
diff --git a/net-p2p/bitcoind/ChangeLog b/net-p2p/bitcoind/ChangeLog
index 6b0c52ff4d54..ecbbcdaf20ae 100644
--- a/net-p2p/bitcoind/ChangeLog
+++ b/net-p2p/bitcoind/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-p2p/bitcoind
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoind/ChangeLog,v 1.67 2013/07/16 10:18:50 blueness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoind/ChangeLog,v 1.68 2013/07/27 07:26:40 pacho Exp $
+
+*bitcoind-0.8.3-r1 (27 Jul 2013)
+
+ 27 Jul 2013; Pacho Ramos <pacho@gentoo.org> +bitcoind-0.8.3-r1.ebuild,
+ +files/bitcoind.service:
+ Install unit file #469670
*bitcoind-0.8.3 (16 Jul 2013)
diff --git a/net-p2p/bitcoind/Manifest b/net-p2p/bitcoind/Manifest
index 21885732e05a..fdbc93fef4e7 100644
--- a/net-p2p/bitcoind/Manifest
+++ b/net-p2p/bitcoind/Manifest
@@ -12,6 +12,7 @@ AUX bitcoin.conf 80 SHA256 541ae10cc2246b620de3e7efa97eee59efacf83d28ea5f1297a12
AUX bitcoin.confd 238 SHA256 72300b41d57325de5a5f2ddea449d5f414f278549fb665d60746707ee5de2549 SHA512 2b010d8c773a76868a11626ba0552f122cd51293cb39e06b7ed7e17be47f9e3790cc090f8311b32d441d3ff1eb4db266a4b2cd08693f7edbe2dde178254838d1 WHIRLPOOL f51d97b828b4b096d1ca924cb7256f648b94ae098a4f10dcfbac7d6045cf84da0c203b1e2d5569f3b304ba193501c9b9239c5ee1a1c11fbdb62bb9909c384358
AUX bitcoin.initd 2481 SHA256 5dace582c4bf05d893166794ce620ca13b794b695376030f7d319bb22a0c956a SHA512 3e360bf8310f7d2acf9189f9baf87068a6764996cbfe1a0e3ca17fbebd0b6b8cb68212401db15c59c94a0e7ad2f933f90a765a2d653eface74e4ae8f495fda06 WHIRLPOOL 321a903dd85743cb23909614d1d1fe248d30374f0ea5d68c4f25d95b55ad2ec3f2164f5255a428ae79cd1e9b5e7efc10b09204b0bd68c5a557313b47124d0f16
AUX bitcoind.logrotate 110 SHA256 9b469c67e7af914199d699ac76279f194010f154be91f8136eddeeddf623a475 SHA512 b0e0634fc33979695fc0f37057f76b264ff3eb2655a8828d505a38621a5bba9fd4eafe47b012e5cb3863d607146b5a2d1a995787ed55cb6d5e6147ab795e1949 WHIRLPOOL 5ebd73178d3228b9477b5eae51ee783857d3a88a765c6802923f2a1d682c00cd4cefbf39e1f2d5192704ff2c72e8b91a38755cece6e139371ea2e75cab461e32
+AUX bitcoind.service 869 SHA256 c24332570f8ac155847372a4f9019a47a2e3c8c15435584dac4153b8eb300bc7 SHA512 d0e23b98bc9109e7e4d8a6459f73d1f9a06a3da71593613e22c5d0f31a8ad7473242b07690c6f22f35358ed869ffa7160d0daa65937462442bfc9028794321ea WHIRLPOOL 7992f776ac36277ce83898920ed5a8abc6b031f1d88214150c362c6f5befc869eb9901bd346da74da9fb56bda500fe9d3d9ff8dd46f1b3f257691cb106754a93
DIST 0.4.7-Minimal-support-for-mining-BIP16-pay-to-script-hash-.patch.xz 4864 SHA256 04fe50d2c8f9ed474e2f3e5bf9334d17d399d20bda2bf20e1dc5ed9a04a02df4 SHA512 1aa6ae91be0d80048c997226399230e673833b8e389e67888baff92f02ad3d681cf7bc317f827a82455edf178d123b47792aeb316bcc13f17b65a34d764deb0c WHIRLPOOL af03e9794e79e5639c7a27962f2e6e45f6aa83305ee95de9f82da22afc66d8a96c225ef6a63a312a29c0336fd1908d98eb8b273ffe78ddda559e433ee5370da2
DIST 0.5.6-Minimal-support-for-mining-BIP16-pay-to-script-hash-.patch.xz 4876 SHA256 96e00f51a3daa62e85eb1f47eb841f793e9114dcb59101327df1209a93283e08 SHA512 b5171f08dc79b34591ac686d9302aa985070e01d01b710ea3b866f21554a1ee4dcb7c37f6d6672495eb4ae2fa851d41fb74fe8f18431c4d25813e444f1267822 WHIRLPOOL cd6ddd8e9929b4b1ece54de0e5a786e45730c4e0676e2c329177bb62fb0124db4ec61221c5f740200b950af5c3df8c60efd198c7329043a4fd988e4ff0ef40ed
DIST 0.6.1-eligius_sendfee.patch.xz 1988 SHA256 18c3d8ba7bdf26cff2f32cae9a72edecad56fa584e0b5c690c2c1b14b27f78d1 SHA512 c42dfcf66974288ddc7f944eb27a71d6305f07909ab1a074ee59b6ad15bb02f70ba856c369d61a7f1838558a84b044d28a01c436e8e7e40185a1001a369ab355 WHIRLPOOL 5eddcc408550147669d9b4bd444feec34f090593d2cd8f98f75bcca41138297885ce1b079d07bcc222526470131b71a6a8ab54872ccc125a17c6790a6e16049f
@@ -31,23 +32,14 @@ EBUILD bitcoind-0.6.5_rc2.ebuild 2567 SHA256 934f82c9868cf3cd86af20ab2f696c0433e
EBUILD bitcoind-0.7.3_rc2.ebuild 2368 SHA256 19d0c943a24605eae4d8cfdbab36a0ee965b0dfda81ebb99535899ccd099fcbf SHA512 ae6e104dd3b809cc0d6266c633deeee64c99d4a51358f5ee6b857eddeaf1808b1eb5671d40d339f7311f555f97d67483a6a46a064f072baeb9cd0d5482b66bd4 WHIRLPOOL 2186fb8dcbfe3a056856641bdd0e159fbfee43363ade60cf737b900fcc3c58ff8378596e91ccfa18988877cbb5303f7f7b63314a223d82ae16096d31ed06bfdb
EBUILD bitcoind-0.8.1.ebuild 2498 SHA256 f446d5523fffde32545f2473c3275de6345c05c94792c21e28d6d312263a0c31 SHA512 3d434f3b5c3e34446f8bd9f0186450963a8895506d49bd1b870e08ce6385e72f6338c75b6ac2886984b774018fbb1b0b7049571def0a2517c75907747ef603aa WHIRLPOOL 82efbf66081657f888fdbfff63b54039704565258190a96d13503e908a0b89d88afad07c40d73988acbc7caa1307f307f034bfcac7424af865a4accf4434877d
EBUILD bitcoind-0.8.2.ebuild 2674 SHA256 7c3a4342e6afc9697738b54452751dd4719e62e0dd010f8baef0ec43f7baf559 SHA512 72fda9351d72946e30928cd97d5b184ae05ad70cccb832cdef9a869026b3c48fb91b9dc3fd86575228ddbf1efd49772a8879567b4260740183436c7a168f2541 WHIRLPOOL 5cf52551324bab50f504a6f4e5babd00e32279cea0f9b8014ec2bafcebec82b9f625eecd483bd41bf1881a55387be3917eee9e8a04f481a427998144853736a5
+EBUILD bitcoind-0.8.3-r1.ebuild 2927 SHA256 82cdbbb613106b4b36ee0f3a3ab87b49aa928a26331f0158b2798ac70b6fb77c SHA512 59444f23741048310223d91c023f9fe86bbdbd36c31c679fc85251c7d3b68c10f2be228c8c782ee827aff878a5e28869aad31701d16e00558142a344fb48f096 WHIRLPOOL abe0c0e0ad3bfeaabdae4f04e2fcd5595422e747436663a83072b63fb18c54361f3945a55c6fdb4aa3e34737531fca588f399b0638b98f8af7318489dcbb4613
EBUILD bitcoind-0.8.3.ebuild 2872 SHA256 142306dc35b87fef0af823d9dce1af7f0acb01dc3e2736e4eddba92db915d37c SHA512 4c9a250682a36cf20bfabcc261e0a41b2921f75607022e60107c91eef30cb77ede698c55879e746ceca866470cbe4860a5da83e54627ebf4f677c07800bcb8ef WHIRLPOOL 7583b5d7b2affffb96eb8f57bf91bb69d08b32a2817c3a4847cd368d5be07c46b9419f98722793fa7754816efec7341d48f3c91e37a6223140ec1d6e6249ced7
-MISC ChangeLog 16944 SHA256 960d41b7a8ee1364261f953dbd866f93883bba803e06072f873521bb0e624fec SHA512 f9856dd5fdc9550f8e52db86b7bde26e20ad3c6da21407a79db0716424e32cd5005e8660748a99c85a575ee44a8a32aa246d752d3cc589225ad9b6ed8b43e2cd WHIRLPOOL 3864de911873d039c86b30cd975d8f23df18ca538677c41eaf6110a031b6ee9db212982d03e8fd8a7fc1b1037c134099f0177131a0010fb4fcb964d08c732df7
+MISC ChangeLog 17104 SHA256 ecf654cd4d58d5026c2abb6a94bf9c6fbe3acab6e92ada6b28a68f57b2140303 SHA512 f0111ddc74a17dd0ea81aef6fd56b320f81d61f22fdfa1cec3d33bd2a97cded14ed850d07f3bc97cfe590b15583e47d74d019f9d7e799b205c2f3e0f225148bd WHIRLPOOL fd80f6ee1b6d3624769093fc2e8ec368fee3b7a73ea7248c360b20f42fffa6aa9837b203d0e4508c5967a6f95958a23e350dcca9bbec42942e33dd03bd178543
MISC metadata.xml 657 SHA256 b6f8689a4a2e12bf1c9ae814e2fe388595e335da9f90bea4dc3ced777bcfe083 SHA512 61e60028b85ac4237c85ce2a4ee3b79f4199f28c0a6fb3858214d30600681f893f47ce8a9150195cfe7f1fbf17fde3bb1fcda815ce5bbcc2a72b21c9b026e664 WHIRLPOOL 876219233a7b36604a98c712fd703eaba0ec4fef77a93d0d35fe1af4c3ea295ffb8ecde3fd15a8107dafef07aa36b72607e0e992c7b9b2efe775c4374a70dd4a
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
-iQIcBAEBCAAGBQJR5R6XAAoJEJOE+m71LUu6LTkQAJolAO+v9DCGsrw+p4Q+Fs0B
-RUoRSOEmZIMc2T0w7WMu+z6WDnS+LoC5VI52HGKHVTqJyZBP0BhjolTAupAb4QW8
-noXTxRuTSRQELNNyTGUDJqM21YXcaiYaHhnij/Jj4V9W4w5QghL4+M64bRxrBM1u
-l4D1yTS++/sgTU/cgHDjKBuP+Ix2XBvo3/u4aw7q4sreavgDYjoSHGfCkraquoDf
-0HH5o7BbYtVyFad1IpWv6eez6EtKXjyR5gjy4Ajk0RsaYnV0CSRjsL7hETJbwmjb
-B6GINA1koYZHEnRUgNxY7m4H75Xu1fnerYKHxoED3SSOiN6bY9oRMeIvi0sH9QAJ
-3q8tvh9L/xi8oBUnXpAovvOUawU8xQgCf7ohBrv1D0l+Rn9EkkRkKFKH2iKBu/xL
-QBY7p7huhSLkkDJ0JXusfGCP5RJrlLCGTNkyQUfVt42LzQS1ld/mV61eFYkD6htv
-6lkkuyRN11ZEGBfans1JzYHOiqeBUSNI/veRMQhG/VSABY/VT+5Xref15CQTRHjY
-Vnc1aGq4+GE2x2qrm7fOrWKGtf8/mLN0T5/Aesm/G81+x6zld8HiynF4/XCck98Q
-nAMMlg9z+lY680SSYuMAbmYWgMnMBvGvJQNuRBpHxdLLZUU6MN51nQsOQ8tiYPsl
-6xJM2UERClKavHaGRR3c
-=C81a
+iEYEAREIAAYFAlHzdjEACgkQCaWpQKGI+9R9IQCfYIxEvDFqEk7xA4TZsqXBtSzY
+GdsAniq4ELMoOBwSv+gcnsDUohw+4tix
+=4F5U
-----END PGP SIGNATURE-----
diff --git a/net-p2p/bitcoind/bitcoind-0.8.3-r1.ebuild b/net-p2p/bitcoind/bitcoind-0.8.3-r1.ebuild
new file mode 100644
index 000000000000..e88955ca66b1
--- /dev/null
+++ b/net-p2p/bitcoind/bitcoind-0.8.3-r1.ebuild
@@ -0,0 +1,123 @@
+# Copyright 2010-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoind/bitcoind-0.8.3-r1.ebuild,v 1.1 2013/07/27 07:26:40 pacho Exp $
+
+EAPI="4"
+
+DB_VER="4.8"
+
+inherit db-use eutils versionator systemd toolchain-funcs
+
+MyPV="${PV/_/}"
+MyPN="bitcoin"
+MyP="${MyPN}-${MyPV}"
+
+DESCRIPTION="Original Bitcoin crypto-currency wallet for automated services"
+HOMEPAGE="http://bitcoin.org/"
+SRC_URI="https://github.com/${MyPN}/${MyPN}/archive/v${MyPV}.tar.gz -> ${MyPN}-v${PV}.tgz
+"
+
+LICENSE="MIT ISC GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="bash-completion examples ipv6 logrotate upnp"
+
+RDEPEND="
+ >=dev-libs/boost-1.41.0[threads(+)]
+ dev-libs/openssl:0[-bindist]
+ logrotate? (
+ app-admin/logrotate
+ )
+ upnp? (
+ net-libs/miniupnpc
+ )
+ sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
+ =dev-libs/leveldb-1.9.0*[-snappy]
+"
+DEPEND="${RDEPEND}
+ >=app-shells/bash-4.1
+ sys-apps/sed
+"
+
+S="${WORKDIR}/${MyP}"
+
+pkg_setup() {
+ local UG='bitcoin'
+ enewgroup "${UG}"
+ enewuser "${UG}" -1 -1 /var/lib/bitcoin "${UG}"
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/0.8.2-sys_leveldb.patch"
+ rm -r src/leveldb
+
+ if has_version '>=dev-libs/boost-1.52'; then
+ sed -i 's/\(-l db_cxx\)/-l boost_chrono$(BOOST_LIB_SUFFIX) \1/' src/makefile.unix
+ fi
+}
+
+src_compile() {
+ OPTS=()
+
+ OPTS+=("DEBUGFLAGS=")
+ OPTS+=("CXXFLAGS=${CXXFLAGS}")
+ OPTS+=("LDFLAGS=${LDFLAGS}")
+
+ OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")")
+ OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}")
+
+ if use upnp; then
+ OPTS+=(USE_UPNP=1)
+ else
+ OPTS+=(USE_UPNP=)
+ fi
+ use ipv6 || OPTS+=("USE_IPV6=-")
+
+ OPTS+=("USE_SYSTEM_LEVELDB=1")
+
+ cd src || die
+ emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -f makefile.unix "${OPTS[@]}" ${PN}
+}
+
+src_test() {
+ cd src || die
+ emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -f makefile.unix "${OPTS[@]}" test_bitcoin
+ ./test_bitcoin || die 'Tests failed'
+}
+
+src_install() {
+ dobin src/${PN}
+
+ insinto /etc/bitcoin
+ newins "${FILESDIR}/bitcoin.conf" bitcoin.conf
+ fowners bitcoin:bitcoin /etc/bitcoin/bitcoin.conf
+ fperms 600 /etc/bitcoin/bitcoin.conf
+
+ newconfd "${FILESDIR}/bitcoin.confd" ${PN}
+ newinitd "${FILESDIR}/bitcoin.initd" ${PN}
+ systemd_dounit "${FILESDIR}/bitcoind.service"
+
+ keepdir /var/lib/bitcoin/.bitcoin
+ fperms 700 /var/lib/bitcoin
+ fowners bitcoin:bitcoin /var/lib/bitcoin/
+ fowners bitcoin:bitcoin /var/lib/bitcoin/.bitcoin
+ dosym /etc/bitcoin/bitcoin.conf /var/lib/bitcoin/.bitcoin/bitcoin.conf
+
+ dodoc doc/README.md doc/release-notes.md
+ doman contrib/debian/manpages/{bitcoind.1,bitcoin.conf.5}
+
+ if use bash-completion; then
+ insinto /usr/share/bash-completion
+ newins contrib/bitcoind.bash-completion bitcoind
+ fi
+
+ if use examples; then
+ docinto examples
+ dodoc -r contrib/{bitrpc,pyminer,spendfrom,tidy_datadir.sh,wallettools}
+ fi
+
+ if use logrotate; then
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/bitcoind.logrotate" bitcoind
+ fi
+}
diff --git a/net-p2p/bitcoind/files/bitcoind.service b/net-p2p/bitcoind/files/bitcoind.service
new file mode 100644
index 000000000000..97747009294d
--- /dev/null
+++ b/net-p2p/bitcoind/files/bitcoind.service
@@ -0,0 +1,30 @@
+# It's not recommended to modify this file in-place, because it will be
+# overwritten during package upgrades. If you want to customize, the
+# best way is to create file
+# "/etc/systemd/system/bitcoind.service.d/*.conf"
+# containing your changes
+
+# For example, if you want to change some daemon and/or unit options,
+# create a file named
+# "/etc/systemd/system/bitcoind.service.d/myopts.conf"
+# containing:
+# [Service]
+# Environment="BITCOIN_OPTS=-debug -logtimestamps"
+# Nice=10
+# This will override the setting appearing below.
+
+# Note that almost all daemon options could be specified in
+# /etc/bitcoin/bitcoin.conf
+
+[Unit]
+Description=Bitcoin Daemon
+After=network.target
+
+[Service]
+User=bitcoin
+Environment=BITCOIN_OPTS=
+ExecStart=/usr/bin/bitcoind -daemon=0 $BITCOIN_OPTS
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target