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