summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2012-04-27 09:21:32 +0000
committerAnthony G. Basile <blueness@gentoo.org>2012-04-27 09:21:32 +0000
commit3d73a8abf6932e09116ab071ed15f3e32ae51944 (patch)
tree8a392fa83f56a0ee0ea91ae7a2fd516bf49f9bac /net-p2p
parentInitial import, ebuild written by me (diff)
downloadhistorical-3d73a8abf6932e09116ab071ed15f3e32ae51944.tar.gz
historical-3d73a8abf6932e09116ab071ed15f3e32ae51944.tar.bz2
historical-3d73a8abf6932e09116ab071ed15f3e32ae51944.zip
Version bump rc3's and add log rotation
Package-Manager: portage-2.1.10.49/cvs/Linux x86_64
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/bitcoind/ChangeLog18
-rw-r--r--net-p2p/bitcoind/Manifest25
-rw-r--r--net-p2p/bitcoind/bitcoind-0.4.5.ebuild (renamed from net-p2p/bitcoind/bitcoind-0.4.5_rc3.ebuild)13
-rw-r--r--net-p2p/bitcoind/bitcoind-0.5.0.6.ebuild (renamed from net-p2p/bitcoind/bitcoind-0.5.0.6_rc3.ebuild)2
-rw-r--r--net-p2p/bitcoind/bitcoind-0.5.4.ebuild (renamed from net-p2p/bitcoind/bitcoind-0.5.4_rc3.ebuild)13
-rw-r--r--net-p2p/bitcoind/files/0.4.5-reopen_log_file.patch119
-rw-r--r--net-p2p/bitcoind/files/0.6.0-reopen_log_file.patch119
-rw-r--r--net-p2p/bitcoind/files/bitcoind.logrotate7
-rw-r--r--net-p2p/bitcoind/metadata.xml1
9 files changed, 296 insertions, 21 deletions
diff --git a/net-p2p/bitcoind/ChangeLog b/net-p2p/bitcoind/ChangeLog
index c4bd3a241282..081d60b7d7da 100644
--- a/net-p2p/bitcoind/ChangeLog
+++ b/net-p2p/bitcoind/ChangeLog
@@ -1,10 +1,18 @@
# ChangeLog for net-p2p/bitcoind
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoind/ChangeLog,v 1.24 2012/04/07 01:03:09 blueness Exp $
-
-*bitcoind-0.5.4_rc3 (07 Apr 2012)
-*bitcoind-0.5.0.6_rc3 (07 Apr 2012)
-*bitcoind-0.4.5_rc3 (07 Apr 2012)
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoind/ChangeLog,v 1.25 2012/04/27 09:21:32 blueness Exp $
+
+ 27 Apr 2012; Anthony G. Basile <blueness@gentoo.org>
+ +files/0.4.5-reopen_log_file.patch, -bitcoind-0.4.5_rc3.ebuild,
+ +bitcoind-0.4.5.ebuild, -bitcoind-0.5.0.6_rc3.ebuild,
+ +bitcoind-0.5.0.6.ebuild, -bitcoind-0.5.4_rc3.ebuild,
+ +files/0.6.0-reopen_log_file.patch, +bitcoind-0.5.4.ebuild,
+ +files/bitcoind.logrotate, metadata.xml:
+ Version bump rc3's and add log rotation
+
+*bitcoind-0.5.4 (27 Apr 2012)
+*bitcoind-0.5.0.6 (27 Apr 2012)
+*bitcoind-0.4.5 (27 Apr 2012)
07 Apr 2012; Anthony G. Basile <blueness@gentoo.org>
-bitcoind-0.4.5_rc2.ebuild, +bitcoind-0.4.5_rc3.ebuild,
diff --git a/net-p2p/bitcoind/Manifest b/net-p2p/bitcoind/Manifest
index 4958d1d4b099..d2a76412406d 100644
--- a/net-p2p/bitcoind/Manifest
+++ b/net-p2p/bitcoind/Manifest
@@ -3,11 +3,14 @@ Hash: SHA256
AUX 0.4.2-Makefile.gentoo 1845 RMD160 d08abd86b0c17d7b4ba20552fe04146c025fa0d4 SHA1 13017e850bd8e94864bc665a33bc7b959f92f3d5 SHA256 7ab3bf195862802f527c2016b126f7fba7d63a8b3e2048634011cdfa761cb750
AUX 0.4.4+bip16-eligius_sendfee.patch 7210 RMD160 0279ef9dc89044efb17aaf0693b66ce04b0c007b SHA1 68fa40b2f8b0dba3c39e870a7508008d528e04b0 SHA256 5b7db8d1f55e2b9db5b6fca65b252f0eefefd3f248b57a0f8c927a0262f2e6eb
+AUX 0.4.5-reopen_log_file.patch 3140 RMD160 b6c535817ce3146af3e2a737e9defcf34ccf2458 SHA1 9a61bf4f1aeeb227610847584bb137cdfb5d174a SHA256 17d95c2492f5f860fd2ce01fe6bfa646afcc649b1e6c1af9b0a0fb7220b256de
AUX 0.5.0.5+bip16-eligius_sendfee.patch 6739 RMD160 45dc281379c25b7406b2cb612e8e653e3898ced0 SHA1 01e56629ee138ad61ae4c51a2dc9fb7eb689a624 SHA256 2e16bca9106bcb8056efc5a60791226119ca011cd007e4b547de4c23f0d8e9a4
+AUX 0.6.0-reopen_log_file.patch 3154 RMD160 fa37aca9f389f77e6d07fae58cf97fb6f0223f8e SHA1 9063eb45d012bac0646b0a4a581f62d0d14642f8 SHA256 5adf72cb28f5769f8c515822d1c88fa6cb7d70a632683fdffbcdb6d5a0f66f5a
AUX bitcoin.conf 80 RMD160 d55c1ac48956c33cf4bf231f21ea81a7b1adc244 SHA1 12406dc38cd00a8160cb4246b7a167f4319c6715 SHA256 541ae10cc2246b620de3e7efa97eee59efacf83d28ea5f1297a121d0708226d2
AUX bitcoin.confd 238 RMD160 1f84716f3ac81da9b06b925913550acfe542f4b5 SHA1 138fefcfa996f62bd9113633bd8505df002f545c SHA256 72300b41d57325de5a5f2ddea449d5f414f278549fb665d60746707ee5de2549
AUX bitcoin.initd 2481 RMD160 ea5398f2775eea17ab9a337650eef30e7912244d SHA1 356a3a0509c465bcc0ce67cfcc22aca745346e4e SHA256 5dace582c4bf05d893166794ce620ca13b794b695376030f7d319bb22a0c956a
AUX bitcoind-remove-debug.patch 547 RMD160 b61cdfaf2aa55512b75ef856b3f0049ed1d43e1d SHA1 428f699f22d90eaeb7acbd667fe9fd370b99aac5 SHA256 5a939bd2e59338fefc26c7c0802732a9e42f6470c09c47fc32f3ffbebfbc328c
+AUX bitcoind.logrotate 110 RMD160 c253af0b4627017e35162b84c2b0cd9a2c88bbc5 SHA1 7a227f625231eacedd611c6b2cdddff508030a87 SHA256 9b469c67e7af914199d699ac76279f194010f154be91f8136eddeeddf623a475
DIST 0.4.4-Minimal-support-for-mining-BIP16-pay-to-script-hash-.patch.xz 5100 RMD160 5ce6ffbb48f93fe71c029106c345ebe9608624b7 SHA1 7e209280caa7e00d3d6bd7ecc38598915e170328 SHA256 54d8661f202461294d8fb7c63d80500cd5f3b1d2cd2e25d4a7cbbc0c2c91e57b
DIST 0.4.4-Minimal-support-for-validating-BIP16-pay-to-script-h.patch.xz 6984 RMD160 d6cccca5b3e53c92e2051a994c0fe2c674af61fc SHA1 148d6eca2f84639ca2c8cce9b73983bcb7b52f5e SHA256 fcb2689a6d65c2c29cdc01730a92451ba79000e4457d32901542f5009af13a80
DIST 0.4.5rc1-eligius_sendfee.patch.xz 2544 RMD160 c4452568b22ad951079e144c726bbef44e4e4286 SHA1 2c15ca4138b4a353ea301ef586fa85a8146a1dfb SHA256 2f70462bd93da1294103d210819e7e9d5d8ae20a65e20f6cf1dd14e827e77e59
@@ -18,30 +21,30 @@ DIST 0.5.0.6rc1-eligius_sendfee.patch.xz 2532 RMD160 037893d15de2839de270189a6b2
DIST 0.5.2-eligius_sendfee.patch.xz 2408 RMD160 cc947fd2c62bb842438462dcea654e41e59d0fb5 SHA1 1b44c00615dbdf6775a1a33189715cd118a62f13 SHA256 23495db978f81dc8e029dc260933b6644a4de823734507adff9bcc3c8eef02f8
DIST 0.6.0-eligius_sendfee.patch.xz 1980 RMD160 09e6d35ec5d5ad8c73b160e3c175d348b9fc16a3 SHA1 bbffc7392fd67baeb0e73838ef90b3278fbd4e6a SHA256 049bce0aaa9ba6affa965ec2031ba0c58efef90a1e5cd6d9e6b8c480609088d0
DIST bitcoin-v0.4.4.tgz 904085 RMD160 3a00be1af20cad9c35740f47a7dd53f6ffb1b906 SHA1 0f328fba9aed9cffc48801b095046579fe60c271 SHA256 d9eda13a6346b629eb452516da247819725836ae5c6ad34174a7252ae9b8aefa
-DIST bitcoin-v0.4.5_rc3.tgz 1001767 RMD160 70e85b02788fe09094d4952d1557b43f74d76e85 SHA1 3b94c250611ecf6af3d65587af0766de3a2c4299 SHA256 0e52ee3cda1bb74ca6fc8cd93d73cef4fdf3ba034997544593f86e8057a92983
+DIST bitcoin-v0.4.5.tgz 1001767 RMD160 70e85b02788fe09094d4952d1557b43f74d76e85 SHA1 3b94c250611ecf6af3d65587af0766de3a2c4299 SHA256 0e52ee3cda1bb74ca6fc8cd93d73cef4fdf3ba034997544593f86e8057a92983
DIST bitcoin-v0.5.0.4.tgz 902417 RMD160 774637dc953041913b114745436f66993b3736cc SHA1 daabee6998c8d2608bd7f0555891192738ad15be SHA256 48d3c98ba3d778438658528947089c46c12ef2d891b9d0412a1899b95f232331
DIST bitcoin-v0.5.0.5.tgz 903160 RMD160 e6bcd69465b039d2bfa53a9d7356bb4cf1620eda SHA1 857b614594b767177c85e5fb6b8a48ba9b76bc95 SHA256 03781a554d9f514e6f07c59f87463b8a13d7c9f071efe80bd559ba47bc4c048c
-DIST bitcoin-v0.5.0.6_rc3.tgz 1001515 RMD160 17914287743704ddb6913888a340fe0898ce47df SHA1 782aeea4ff56b7d7addff6ca2644ff5a6e99d974 SHA256 3af52d8ce78d5bd711de7a698ec317581aadc257ff5c829cdca05ec9a5129d7b
+DIST bitcoin-v0.5.0.6.tgz 1001515 RMD160 17914287743704ddb6913888a340fe0898ce47df SHA1 782aeea4ff56b7d7addff6ca2644ff5a6e99d974 SHA256 3af52d8ce78d5bd711de7a698ec317581aadc257ff5c829cdca05ec9a5129d7b
DIST bitcoin-v0.5.1.tgz 1007787 RMD160 107944a2f37cc0f873248ef8f2c23a602dfc2dd7 SHA1 27189303b71c6e9c5140c39659ea1f5280e8b4f0 SHA256 e33279066298e0a29e1dcca566d0a0bbcd89ef6e02d43bdbbeaf046f5faf66fe
DIST bitcoin-v0.5.3.tgz 1012843 RMD160 92875b0073ada3771c79960c1a7aac3df511a49d SHA1 ac181eb976780f8af2ea5a3df2d9709accaa283f SHA256 0f39305d3da134a04c2509569f0c65dbe889aff9c91aef2deb3cfaa386094c0c
-DIST bitcoin-v0.5.4_rc3.tgz 1111855 RMD160 b7be91e9eb67509bcb827c8dcac13ddb461ce220 SHA1 4838f6500506e1fa0d8a9848414d6ee1f2644f23 SHA256 011d42ffb7bd20b350d5b11bb288c7db5c44d0bf78b90c0908e997073db25f4d
+DIST bitcoin-v0.5.4.tgz 1111855 RMD160 b7be91e9eb67509bcb827c8dcac13ddb461ce220 SHA1 4838f6500506e1fa0d8a9848414d6ee1f2644f23 SHA256 011d42ffb7bd20b350d5b11bb288c7db5c44d0bf78b90c0908e997073db25f4d
DIST bitcoin-v0.6.0.tgz 1259313 RMD160 8173ae7ca66fddbd99edbcf3e860301bf9eb0a10 SHA1 6d4eafbb2d922a92fc0484f0bfbb48b8a4733ded SHA256 b57316e65b9f1f24616c6c10a023db6c1419a628c0e4cff7434de68c0befb861
EBUILD bitcoind-0.4.4-r1.ebuild 2925 RMD160 0479d43ccd85c0c404813d9b3b5f17f259a6651c SHA1 6164fb1748e5b95020528a0a70c36c897d4d1491 SHA256 c16499fbade224715bc3827a10b33f53dbc596f0dd2802592643c9e492a0255c
-EBUILD bitcoind-0.4.5_rc3.ebuild 2719 RMD160 5590692a164cb2c182c78cb0d1cd80caa26e2f80 SHA1 d0787ce39898380540cd6442482af0ae4332bff8 SHA256 5f71518a94ac2a605446145a176dad6f1c43926b262117d3aa7afed556035032
+EBUILD bitcoind-0.4.5.ebuild 2938 RMD160 b22c88cfcad2a142c804be75918b8421eed960c2 SHA1 15629e79bb176104b5b0f5b0a02a6f6b0975a458 SHA256 7a78a407ba03c9180aaa90932aa7b6ad007ed7ecbd4c75df1a65005841fd57bd
EBUILD bitcoind-0.5.0.4-r1.ebuild 3164 RMD160 21784b64ac09b7d64646b02e60974c0de14b78b5 SHA1 03641af097cbf3c80f4c77ce3dd7a9463de9155f SHA256 fe6a2a7648d8ce8242c947a9b2405ceccd3c01393a50dbbce69fe7676cfb0258
EBUILD bitcoind-0.5.0.5-r1.ebuild 3154 RMD160 b24827745d36613d0ad0b5461747665b18775de8 SHA1 9d1851bf7445e8edcc80bc731930c459d87c85a7 SHA256 951cfb0488e864f13c2707935567eb03ae9a5541b1e4581d176c992979ffea31
-EBUILD bitcoind-0.5.0.6_rc3.ebuild 2954 RMD160 930d1ef6d59c044e260ce27344d091cc5a557362 SHA1 2aeb96a76c1330a61903f2f2b7bc715fc6cdf888 SHA256 6625b12698b180cf213344ee0073e1e4e435589c18549d598611f36f60175f7b
+EBUILD bitcoind-0.5.0.6.ebuild 2950 RMD160 389ff21f6b6721df4156b8de51945cb88c48cfb4 SHA1 4327031b63ed691ca7d3743d7b9dbedcbac7adbc SHA256 78355fe954df4b91c169867b494127bb075efc9665fcd986126516d0432ee291
EBUILD bitcoind-0.5.1.ebuild 2415 RMD160 ddd00bfe3381d75865f6f4348ce7b9f01397ddf3 SHA1 e489350cae6720c343970379b248c3602974791f SHA256 f24091f183b077c20d66a22d35c0b121932f80f09f005bb8ecb8ba262d0d6497
EBUILD bitcoind-0.5.3-r2.ebuild 3256 RMD160 2e76f9ec81f6412eba4c43e87f0b8ad4ef35c7e2 SHA1 8d34151542baa4742c183929a30807a30e6b0636 SHA256 d8c83c35d4fd795a37dca4736edd28f2e23fce9ef9a23e754037aa272fe14ce6
EBUILD bitcoind-0.5.3.ebuild 2536 RMD160 16caed51a3bd162521955d9ffb936d310cefd5c6 SHA1 944f3921e5ae990de86cd4868de1cda0f5b5d6a9 SHA256 056f58b20e4c0e783bfce9a3aacad5872d60596321dcf3680d4ef6fb1a863bbc
-EBUILD bitcoind-0.5.4_rc3.ebuild 3046 RMD160 394cebd8058b1bf4ba85d36ebf35e34efdc68ed2 SHA1 7003d454b20a202a60e8e4ca9ad6276d9f46747f SHA256 bf92b91ef51e0d7b2541c797601da74d826d39c72be67b9ac42caf193289be69
+EBUILD bitcoind-0.5.4.ebuild 3265 RMD160 909e9d76b88dff814389346af3aebc31f9458a36 SHA1 a8214556c892e0a66c37eaa3092dc0e59405f86b SHA256 4ce75266b84d18abc2c97c318aa399b5e32d48834cdc54050649c26e35cc2ea7
EBUILD bitcoind-0.6.0.ebuild 2660 RMD160 2343afc83c9fc1c79762c54efada3b64e2b754fc SHA1 7d2710d14d65d5389a87221953185ef6cd0cb159 SHA256 8fa622347d8fb196ded2273ec7fba3caafb0b23f681c240b5b011b33f26659ed
-MISC ChangeLog 6592 RMD160 8e1710b74a8864355b466c32e8d167e0fb7e8be5 SHA1 5222370b252ce9cf6763bf6803498eb176ae2cea SHA256 00a1408ae422eca51f9b43124cc3c7bcfa885f0d949d35d2eea538c4d020601b
-MISC metadata.xml 609 RMD160 7e6a6d1f7e45721287817c007755a4f2a7335348 SHA1 f751a2b66b85e94a13ac0f27d7ffdd3648828a34 SHA256 232cf8629184b54358a8a4a1f9e5c6d973da0644fd512edcafed4f74443f86dc
+MISC ChangeLog 6961 RMD160 649c7e095c0a3bbb3ae66e881f84cf7b695fbf0b SHA1 25e7a1406a5ddaf99989268546795e115d470333 SHA256 6bb226a1223602296f89bbbe6832a55fd04bd0765d30af3bd89c38232e5e9762
+MISC metadata.xml 683 RMD160 c2f0f1cb413e94cb491c4a6003153cbcc334a59c SHA1 f5bad1a7abe13b2b502eba4698ccd3a0fb95ff33 SHA256 e5bcb19c94ff112e277392fdd4eb09c75fc4199d027e2fe54df8c9ce8382c4b7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
-iEYEAREIAAYFAk9/klcACgkQl5yvQNBFVTVfJACcCFiTlIb4xQgAaPppNe4jRpMb
-f6YAnAqTxROhSqbB2QuR2dv/KTpFH9ZS
-=tR1j
+iEYEAREIAAYFAk+aZSoACgkQl5yvQNBFVTUo3gCgirEBBFeLXVw1XkTrZ0+n4lJH
+y0EAn3KBd97hu2hHAtejqYTWhDZ9NMmx
+=bbWh
-----END PGP SIGNATURE-----
diff --git a/net-p2p/bitcoind/bitcoind-0.4.5_rc3.ebuild b/net-p2p/bitcoind/bitcoind-0.4.5.ebuild
index 3dbe83df854c..7002a0f61142 100644
--- a/net-p2p/bitcoind/bitcoind-0.4.5_rc3.ebuild
+++ b/net-p2p/bitcoind/bitcoind-0.4.5.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoind/bitcoind-0.4.5_rc3.ebuild,v 1.1 2012/04/07 01:03:09 blueness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoind/bitcoind-0.4.5.ebuild,v 1.1 2012/04/27 09:21:32 blueness Exp $
EAPI="4"
@@ -20,12 +20,15 @@ SRC_URI="http://gitorious.org/bitcoin/${PN}-stable/archive-tarball/v${PV/_/} ->
LICENSE="MIT ISC"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="+bip16 +eligius ssl upnp"
+IUSE="+bip16 +eligius logrotate ssl upnp"
RDEPEND="
>=dev-libs/boost-1.41.0
dev-libs/crypto++
dev-libs/openssl[-bindist]
+ logrotate? (
+ app-admin/logrotate
+ )
upnp? (
net-libs/miniupnpc
)
@@ -52,6 +55,7 @@ src_prepare() {
else
use eligius && epatch "${WORKDIR}/0.4.5rc1-eligius_sendfee.patch"
fi
+ use logrotate && epatch "${FILESDIR}/${PV}-reopen_log_file.patch"
}
src_compile() {
@@ -96,4 +100,9 @@ src_install() {
dosym /etc/bitcoin/bitcoin.conf /var/lib/bitcoin/.bitcoin/bitcoin.conf
dodoc doc/README
+
+ if use logrotate; then
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/bitcoind.logrotate" bitcoind
+ fi
}
diff --git a/net-p2p/bitcoind/bitcoind-0.5.0.6_rc3.ebuild b/net-p2p/bitcoind/bitcoind-0.5.0.6.ebuild
index e968ead82582..9f3479b6a460 100644
--- a/net-p2p/bitcoind/bitcoind-0.5.0.6_rc3.ebuild
+++ b/net-p2p/bitcoind/bitcoind-0.5.0.6.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoind/bitcoind-0.5.0.6_rc3.ebuild,v 1.1 2012/04/07 01:03:09 blueness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoind/bitcoind-0.5.0.6.ebuild,v 1.1 2012/04/27 09:21:32 blueness Exp $
EAPI="4"
diff --git a/net-p2p/bitcoind/bitcoind-0.5.4_rc3.ebuild b/net-p2p/bitcoind/bitcoind-0.5.4.ebuild
index 5e5d84d050ab..cff90053ba70 100644
--- a/net-p2p/bitcoind/bitcoind-0.5.4_rc3.ebuild
+++ b/net-p2p/bitcoind/bitcoind-0.5.4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoind/bitcoind-0.5.4_rc3.ebuild,v 1.1 2012/04/07 01:03:09 blueness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoind/bitcoind-0.5.4.ebuild,v 1.1 2012/04/27 09:21:32 blueness Exp $
EAPI="4"
@@ -20,11 +20,14 @@ SRC_URI="http://gitorious.org/bitcoin/bitcoind-stable/archive-tarball/v${PV/_/}
LICENSE="MIT ISC"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
-IUSE="+bip16 +eligius examples ssl upnp"
+IUSE="+bip16 +eligius examples logrotate ssl upnp"
RDEPEND="
>=dev-libs/boost-1.41.0
dev-libs/openssl[-bindist]
+ logrotate? (
+ app-admin/logrotate
+ )
upnp? (
net-libs/miniupnpc
)
@@ -50,6 +53,7 @@ src_prepare() {
else
use eligius && epatch "${WORKDIR}/0.5.0.6rc1-eligius_sendfee.patch"
fi
+ use logrotate && epatch "${FILESDIR}/0.4.5-reopen_log_file.patch"
}
src_compile() {
@@ -110,4 +114,9 @@ src_install() {
docinto examples
dodoc -r contrib/{bitrpc,pyminer,wallettools}
fi
+
+ if use logrotate; then
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/bitcoind.logrotate" bitcoind
+ fi
}
diff --git a/net-p2p/bitcoind/files/0.4.5-reopen_log_file.patch b/net-p2p/bitcoind/files/0.4.5-reopen_log_file.patch
new file mode 100644
index 000000000000..1d0ee2ae3275
--- /dev/null
+++ b/net-p2p/bitcoind/files/0.4.5-reopen_log_file.patch
@@ -0,0 +1,119 @@
+diff --git a/src/init.cpp b/src/init.cpp
+index 2dccc81..630fc29 100644
+--- a/src/init.cpp
++++ b/src/init.cpp
+@@ -8,6 +8,7 @@
+ #include "net.h"
+ #include "init.h"
+ #include "strlcpy.h"
++#include "util.h"
+ #include <boost/filesystem.hpp>
+ #include <boost/filesystem/fstream.hpp>
+ #include <boost/interprocess/sync/file_lock.hpp>
+@@ -71,6 +72,10 @@ void HandleSIGTERM(int)
+ fRequestShutdown = true;
+ }
+
++void HandleSIGHUP(int)
++{
++ fReopenDebugLog = true;
++}
+
+
+
+@@ -132,7 +137,13 @@ bool AppInit2(int argc, char* argv[])
+ sa.sa_flags = 0;
+ sigaction(SIGTERM, &sa, NULL);
+ sigaction(SIGINT, &sa, NULL);
+- sigaction(SIGHUP, &sa, NULL);
++
++ // Reopen debug.log on SIGHUP
++ struct sigaction sa_hup;
++ sa_hup.sa_handler = HandleSIGHUP;
++ sigemptyset(&sa_hup.sa_mask);
++ sa_hup.sa_flags = 0;
++ sigaction(SIGHUP, &sa_hup, NULL);
+ #endif
+
+ //
+diff --git a/src/util.cpp b/src/util.cpp
+index 0f496bc..736fac6 100644
+--- a/src/util.cpp
++++ b/src/util.cpp
+@@ -30,6 +30,8 @@ string strMiscWarning;
+ bool fTestNet = false;
+ bool fNoListen = false;
+ bool fLogTimestamps = false;
++FILE* fileout = NULL;
++bool fReopenDebugLog = false;
+
+
+
+@@ -154,6 +156,13 @@ int GetRandInt(int nMax)
+
+
+
++string GetDebugLogName()
++{
++ char pszFile[MAX_PATH+100];
++ GetDataDir(pszFile);
++ strlcat(pszFile, "/debug.log", sizeof(pszFile));
++ return pszFile;
++}
+
+ inline int OutputDebugStringF(const char* pszFormat, ...)
+ {
+@@ -169,19 +178,27 @@ inline int OutputDebugStringF(const char* pszFormat, ...)
+ else
+ {
+ // print to debug.log
+- static FILE* fileout = NULL;
+
+ if (!fileout)
+ {
+- char pszFile[MAX_PATH+100];
+- GetDataDir(pszFile);
+- strlcat(pszFile, "/debug.log", sizeof(pszFile));
++ const char* pszFile = GetDebugLogName().c_str();
+ fileout = fopen(pszFile, "a");
+ if (fileout) setbuf(fileout, NULL); // unbuffered
+ }
+ if (fileout)
+ {
+ static bool fStartedNewLine = true;
++#ifndef WIN32
++ flockfile(fileout);
++
++ // reopen the log file, if requested
++ if (fReopenDebugLog) {
++ fReopenDebugLog = false;
++ const char* pszFile = GetDebugLogName().c_str();
++ if (freopen(pszFile,"a",fileout) != NULL)
++ setbuf(fileout, NULL); // unbuffered
++ }
++#endif
+
+ // Debug print useful for profiling
+ if (fLogTimestamps && fStartedNewLine)
+@@ -195,6 +212,9 @@ inline int OutputDebugStringF(const char* pszFormat, ...)
+ va_start(arg_ptr, pszFormat);
+ ret = vfprintf(fileout, pszFormat, arg_ptr);
+ va_end(arg_ptr);
++#ifndef WIN32
++ funlockfile(fileout);
++#endif
+ }
+ }
+
+diff --git a/src/util.h b/src/util.h
+index 4e4cbb9..d2c19c9 100644
+--- a/src/util.h
++++ b/src/util.h
+@@ -166,6 +166,7 @@ extern std::string strMiscWarning;
+ extern bool fTestNet;
+ extern bool fNoListen;
+ extern bool fLogTimestamps;
++extern bool fReopenDebugLog;
+
+ void RandAddSeed();
+ void RandAddSeedPerfmon();
diff --git a/net-p2p/bitcoind/files/0.6.0-reopen_log_file.patch b/net-p2p/bitcoind/files/0.6.0-reopen_log_file.patch
new file mode 100644
index 000000000000..baf14ef275f6
--- /dev/null
+++ b/net-p2p/bitcoind/files/0.6.0-reopen_log_file.patch
@@ -0,0 +1,119 @@
+diff --git a/src/init.cpp b/src/init.cpp
+index 4078b7e..87a619f 100644
+--- a/src/init.cpp
++++ b/src/init.cpp
+@@ -8,6 +8,7 @@
+ #include "net.h"
+ #include "init.h"
+ #include "strlcpy.h"
++#include "util.h"
+ #include <boost/filesystem.hpp>
+ #include <boost/filesystem/fstream.hpp>
+ #include <boost/filesystem/convenience.hpp>
+@@ -83,6 +84,10 @@ void HandleSIGTERM(int)
+ fRequestShutdown = true;
+ }
+
++void HandleSIGHUP(int)
++{
++ fReopenDebugLog = true;
++}
+
+
+
+@@ -144,7 +149,13 @@ bool AppInit2(int argc, char* argv[])
+ sa.sa_flags = 0;
+ sigaction(SIGTERM, &sa, NULL);
+ sigaction(SIGINT, &sa, NULL);
+- sigaction(SIGHUP, &sa, NULL);
++
++ // Reopen debug.log on SIGHUP
++ struct sigaction sa_hup;
++ sa_hup.sa_handler = HandleSIGHUP;
++ sigemptyset(&sa_hup.sa_mask);
++ sa_hup.sa_flags = 0;
++ sigaction(SIGHUP, &sa_hup, NULL);
+ #endif
+
+ //
+diff --git a/src/util.cpp b/src/util.cpp
+index 08752e6..ca4e53b 100644
+--- a/src/util.cpp
++++ b/src/util.cpp
+@@ -32,6 +32,8 @@ bool fTestNet = false;
+ bool fNoListen = false;
+ bool fLogTimestamps = false;
+ CMedianFilter<int64> vTimeOffsets(200,0);
++FILE* fileout = NULL;
++bool fReopenDebugLog = false;
+
+
+
+@@ -155,6 +157,13 @@ int GetRandInt(int nMax)
+
+
+
++string GetDebugLogName()
++{
++ char pszFile[MAX_PATH+100];
++ GetDataDir(pszFile);
++ strlcat(pszFile, "/debug.log", sizeof(pszFile));
++ return pszFile;
++}
+
+ inline int OutputDebugStringF(const char* pszFormat, ...)
+ {
+@@ -170,19 +179,27 @@ inline int OutputDebugStringF(const char* pszFormat, ...)
+ else
+ {
+ // print to debug.log
+- static FILE* fileout = NULL;
+
+ if (!fileout)
+ {
+- char pszFile[MAX_PATH+100];
+- GetDataDir(pszFile);
+- strlcat(pszFile, "/debug.log", sizeof(pszFile));
++ const char* pszFile = GetDebugLogName().c_str();
+ fileout = fopen(pszFile, "a");
+ if (fileout) setbuf(fileout, NULL); // unbuffered
+ }
+ if (fileout)
+ {
+ static bool fStartedNewLine = true;
++#ifndef WIN32
++ flockfile(fileout);
++
++ // reopen the log file, if requested
++ if (fReopenDebugLog) {
++ fReopenDebugLog = false;
++ const char* pszFile = GetDebugLogName().c_str();
++ if (freopen(pszFile,"a",fileout) != NULL)
++ setbuf(fileout, NULL); // unbuffered
++ }
++#endif
+
+ // Debug print useful for profiling
+ if (fLogTimestamps && fStartedNewLine)
+@@ -196,6 +213,9 @@ inline int OutputDebugStringF(const char* pszFormat, ...)
+ va_start(arg_ptr, pszFormat);
+ ret = vfprintf(fileout, pszFormat, arg_ptr);
+ va_end(arg_ptr);
++#ifndef WIN32
++ funlockfile(fileout);
++#endif
+ }
+ }
+
+diff --git a/src/util.h b/src/util.h
+index 4fa5a08..5981ab6 100644
+--- a/src/util.h
++++ b/src/util.h
+@@ -123,6 +123,7 @@ extern std::string strMiscWarning;
+ extern bool fTestNet;
+ extern bool fNoListen;
+ extern bool fLogTimestamps;
++extern bool fReopenDebugLog;
+
+ void RandAddSeed();
+ void RandAddSeedPerfmon();
diff --git a/net-p2p/bitcoind/files/bitcoind.logrotate b/net-p2p/bitcoind/files/bitcoind.logrotate
new file mode 100644
index 000000000000..36d8dc2b1344
--- /dev/null
+++ b/net-p2p/bitcoind/files/bitcoind.logrotate
@@ -0,0 +1,7 @@
+/var/lib/bitcoin/.bitcoin/debug.log {
+ weekly
+ sharedscripts
+ postrotate
+ killall -HUP bitcoind
+ endscript
+}
diff --git a/net-p2p/bitcoind/metadata.xml b/net-p2p/bitcoind/metadata.xml
index b6b0f9d93d40..848f2d64c429 100644
--- a/net-p2p/bitcoind/metadata.xml
+++ b/net-p2p/bitcoind/metadata.xml
@@ -12,6 +12,7 @@
<use>
<flag name='bip16'>Enable backported support for relaying and mining new BIP16 pay-to-script-hash transactions</flag>
<flag name='eligius'>Enable using lower fees accepted by Eligius</flag>
+ <flag name='logrotate'>Use app-admin/logrotate for rotating logs</flag>
<flag name='upnp'>Enable Universal Plug and Play</flag>
</use>
</pkgmetadata>