1 |
commit: 68ae919de86ae4953c4fd10916255419375cb942 |
2 |
Author: Theo Anderson <telans <AT> posteo <DOT> de> |
3 |
AuthorDate: Thu Dec 31 08:08:13 2020 +0000 |
4 |
Commit: Theo Anderson <telans <AT> posteo <DOT> de> |
5 |
CommitDate: Thu Dec 31 08:08:13 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=68ae919d |
7 |
|
8 |
net-p2p/monero: bump to 0.17.1.8 |
9 |
|
10 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
11 |
Signed-off-by: Theo Anderson <telans <AT> posteo.de> |
12 |
|
13 |
net-p2p/monero/Manifest | 1 + |
14 |
net-p2p/monero/monero-0.17.1.8.ebuild | 111 ++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 112 insertions(+) |
16 |
|
17 |
diff --git a/net-p2p/monero/Manifest b/net-p2p/monero/Manifest |
18 |
index 28600df9..046d17b4 100644 |
19 |
--- a/net-p2p/monero/Manifest |
20 |
+++ b/net-p2p/monero/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST monero-0.17.1.7.tar.gz 10598750 BLAKE2B 03a80f3c38bc1b643d8d9ddba4ee1de59e0f4c6d66cfc5dcb700d19659a5cb66add4fcf1320c1ed2b7dfa15fdfe9548eb758e67661832f9da7bd0e173b5a0ae1 SHA512 b049a738eb5752a620fc19dfafd5e2996d3f33d89737774264a5ef69b7fcfcd9fe852b89e35187486f48fdc8bb73c2010a1917d1ed7fcb4f1f87b18a6bb4c2d5 |
23 |
+DIST monero-0.17.1.8.tar.gz 10603308 BLAKE2B f515c90fac83bcf866cc042b34be38d366c7e48a70db76b2a900e9922ca460db7604aa15f4f03b2e5301647a75f40ad0f04c2dadd416a079da2f77be46d584a2 SHA512 e9cde3c77d71dd468237e823f647551fb3fef89f7132ebe2be1ac10545dd926f2d2b07794af4664d82e4d19b8b3b8b69fa090ed64ccab7ca63ffae3c0559eec0 |
24 |
|
25 |
diff --git a/net-p2p/monero/monero-0.17.1.8.ebuild b/net-p2p/monero/monero-0.17.1.8.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000..29d4250f |
28 |
--- /dev/null |
29 |
+++ b/net-p2p/monero/monero-0.17.1.8.ebuild |
30 |
@@ -0,0 +1,111 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit cmake systemd |
37 |
+ |
38 |
+DESCRIPTION="The secure, private, untraceable cryptocurrency" |
39 |
+HOMEPAGE="https://github.com/monero-project/monero" |
40 |
+SRC_URI="https://github.com/monero-project/monero/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="BSD MIT" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
45 |
+IUSE="+daemon libressl readline +tools +wallet-cli +wallet-rpc" |
46 |
+REQUIRED_USE="|| ( daemon tools wallet-cli wallet-rpc )" |
47 |
+RESTRICT="test" |
48 |
+ |
49 |
+DEPEND=" |
50 |
+ acct-group/monero |
51 |
+ acct-user/monero |
52 |
+ dev-libs/boost:=[nls,threads] |
53 |
+ dev-libs/libsodium:= |
54 |
+ dev-libs/randomx |
55 |
+ dev-libs/rapidjson |
56 |
+ dev-libs/supercop |
57 |
+ net-dns/unbound:=[threads] |
58 |
+ net-libs/czmq:= |
59 |
+ net-libs/miniupnpc |
60 |
+ !libressl? ( dev-libs/openssl:= ) |
61 |
+ libressl? ( dev-libs/libressl:= ) |
62 |
+ readline? ( sys-libs/readline:0= ) |
63 |
+" |
64 |
+RDEPEND="${DEPEND}" |
65 |
+BDEPEND="virtual/pkgconfig" |
66 |
+ |
67 |
+PATCHES=( |
68 |
+ "${FILESDIR}/${PN}-0.17.1.7-linkjobs.patch" |
69 |
+ "${FILESDIR}/${PN}-0.17.1.7-unbundle-dependencies.patch" |
70 |
+) |
71 |
+ |
72 |
+src_configure() { |
73 |
+ local mycmakeargs=( |
74 |
+ # TODO: Update CMake to install built libraries (help wanted) |
75 |
+ -DBUILD_SHARED_LIBS=OFF |
76 |
+ -DMANUAL_SUBMODULES=ON |
77 |
+ -DMONERO_PARALLEL_LINK_JOBS=1 |
78 |
+ -DUSE_DEVICE_TREZOR=OFF |
79 |
+ ) |
80 |
+ |
81 |
+ cmake_src_configure |
82 |
+} |
83 |
+ |
84 |
+src_compile() { |
85 |
+ local targets=() |
86 |
+ use daemon && targets+=(daemon) |
87 |
+ use tools && targets+=(blockchain_{ancestry,blackball,db,depth,export,import,prune,prune_known_spent_data,stats,usage}) |
88 |
+ use wallet-cli && targets+=(simplewallet) |
89 |
+ use wallet-rpc && targets+=(wallet_rpc_server) |
90 |
+ cmake_build ${targets[@]} |
91 |
+} |
92 |
+ |
93 |
+src_install() { |
94 |
+ einstalldocs |
95 |
+ |
96 |
+ # Install all binaries. |
97 |
+ find "${BUILD_DIR}/bin/" -type f -executable -print0 | |
98 |
+ while IFS= read -r -d '' line; do |
99 |
+ dobin "$line" |
100 |
+ done |
101 |
+ |
102 |
+ if use daemon; then |
103 |
+ dodoc utils/conf/monerod.conf |
104 |
+ |
105 |
+ # data-dir |
106 |
+ keepdir /var/lib/monero |
107 |
+ fowners monero:monero /var/lib/monero |
108 |
+ fperms 0755 /var/lib/monero |
109 |
+ |
110 |
+ # log-file dir |
111 |
+ keepdir /var/log/monero |
112 |
+ fowners monero:monero /var/log/monero |
113 |
+ fperms 0755 /var/log/monero |
114 |
+ |
115 |
+ # /etc/monero/monerod.conf |
116 |
+ insinto /etc/monero |
117 |
+ doins "${FILESDIR}/monerod.conf" |
118 |
+ |
119 |
+ # OpenRC |
120 |
+ newconfd "${FILESDIR}/monerod.confd" monerod |
121 |
+ newinitd "${FILESDIR}/monerod.initd" monerod |
122 |
+ |
123 |
+ # systemd |
124 |
+ systemd_dounit "${FILESDIR}/monerod.service" |
125 |
+ fi |
126 |
+} |
127 |
+ |
128 |
+pkg_postinst() { |
129 |
+ if use daemon; then |
130 |
+ elog "Start the Monero P2P daemon as a system service with" |
131 |
+ elog "'rc-service monerod start'. Enable it at startup with" |
132 |
+ elog "'rc-update add monerod default'." |
133 |
+ elog |
134 |
+ elog "Run monerod status as any user to get sync status and other stats." |
135 |
+ elog |
136 |
+ elog "The Monero blockchain can take up a lot of space (80 GiB) and is stored" |
137 |
+ elog "in /var/lib/monero by default. You may want to enable pruning by adding" |
138 |
+ elog "'prune-blockchain=1' to /etc/monero/monerod.conf to prune the blockchain" |
139 |
+ elog "or move the data directory to another disk." |
140 |
+ fi |
141 |
+} |