1 |
commit: 246f30d9b3f10328c64e9a0aaa4d7bcca9bf38bd |
2 |
Author: Sergey Alirzaev <l29ah <AT> riseup <DOT> net> |
3 |
AuthorDate: Thu Sep 9 23:27:10 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 9 23:28:39 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=246f30d9 |
7 |
|
8 |
net-p2p/monero: bump up to 0.17.2.3 |
9 |
|
10 |
Package-Manager: Portage-3.0.22, Repoman-3.0.3 |
11 |
Signed-off-by: Sergey Alirzaev <l29ah <AT> riseup.net> |
12 |
|
13 |
net-p2p/monero/Manifest | 1 + |
14 |
net-p2p/monero/monero-0.17.2.3.ebuild | 117 ++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 118 insertions(+) |
16 |
|
17 |
diff --git a/net-p2p/monero/Manifest b/net-p2p/monero/Manifest |
18 |
index 2161c94fc..40e48c455 100644 |
19 |
--- a/net-p2p/monero/Manifest |
20 |
+++ b/net-p2p/monero/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST monero-0.17.2.0.tar.gz 10622184 BLAKE2B c439e447f524a08a7ee79420873b7cf393f5cd3269460944aac30a315ac7c273c12fd809d86d41445bfc7e8c2feb0538d4e9fc1dadeb55f7e09f2920778f07a7 SHA512 85b764f1fc25127e7ca4ada67b1d832a9604c4cf65b160d689650e7ca7bbc36b73d8b26c5409fabdaad7369684997447cd812d1c521fad19d24f5b35f4789a1e |
23 |
+DIST monero-0.17.2.3.tar.gz 10640501 BLAKE2B 15c7b92e7d00788214953c09af96d578e79c65ba9263d2a9ea19cfb9cc65e77d15770b873a10b77aae9e908dce74162d3577ed241600ebd57098b860bfd8f114 SHA512 7f3363c2cb66fa90a47a4cbb03b367182afa63af21d40bf07ea57cd91e4805684ec4795c0390bc966626a3b7b3c0a47167036873f5d1ea4b487a3d02bf01aaa4 |
24 |
|
25 |
diff --git a/net-p2p/monero/monero-0.17.2.3.ebuild b/net-p2p/monero/monero-0.17.2.3.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000..54a108f49 |
28 |
--- /dev/null |
29 |
+++ b/net-p2p/monero/monero-0.17.2.3.ebuild |
30 |
@@ -0,0 +1,117 @@ |
31 |
+# Copyright 1999-2021 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 |
+ |
41 |
+if [[ ${PV} == 9999 ]]; then |
42 |
+ inherit git-r3 |
43 |
+ EGIT_REPO_URI="https://github.com/monero-project/monero.git" |
44 |
+ EGIT_SUBMODULES=() |
45 |
+else |
46 |
+ SRC_URI="https://github.com/monero-project/monero/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
47 |
+ KEYWORDS="~amd64 ~arm64 ~x86" |
48 |
+fi |
49 |
+ |
50 |
+LICENSE="BSD MIT" |
51 |
+SLOT="0" |
52 |
+IUSE="+daemon readline +tools +wallet-cli +wallet-rpc" |
53 |
+REQUIRED_USE="|| ( daemon tools wallet-cli wallet-rpc )" |
54 |
+RESTRICT="test" |
55 |
+ |
56 |
+DEPEND=" |
57 |
+ acct-group/monero |
58 |
+ acct-user/monero |
59 |
+ dev-libs/boost:=[nls,threads(+)] |
60 |
+ dev-libs/libsodium:= |
61 |
+ dev-libs/openssl:= |
62 |
+ dev-libs/randomx |
63 |
+ dev-libs/rapidjson |
64 |
+ dev-libs/supercop |
65 |
+ net-dns/unbound:=[threads] |
66 |
+ net-libs/czmq:= |
67 |
+ net-libs/miniupnpc |
68 |
+ readline? ( sys-libs/readline:0= ) |
69 |
+" |
70 |
+RDEPEND="${DEPEND}" |
71 |
+BDEPEND="virtual/pkgconfig" |
72 |
+ |
73 |
+PATCHES=( |
74 |
+ "${FILESDIR}/${PN}-0.17.1.7-unbundle-dependencies.patch" |
75 |
+ "${FILESDIR}/${PN}-0.17.2.0-boost-176.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 |
+ -DMONERO_PARALLEL_LINK_JOBS=1 |
84 |
+ -DUSE_DEVICE_TREZOR=OFF |
85 |
+ ) |
86 |
+ |
87 |
+ cmake_src_configure |
88 |
+} |
89 |
+ |
90 |
+src_compile() { |
91 |
+ local targets=() |
92 |
+ use daemon && targets+=(daemon) |
93 |
+ use tools && targets+=(blockchain_{ancestry,blackball,db,depth,export,import,prune,prune_known_spent_data,stats,usage}) |
94 |
+ use wallet-cli && targets+=(simplewallet) |
95 |
+ use wallet-rpc && targets+=(wallet_rpc_server) |
96 |
+ cmake_build ${targets[@]} |
97 |
+} |
98 |
+ |
99 |
+src_install() { |
100 |
+ einstalldocs |
101 |
+ |
102 |
+ # Install all binaries. |
103 |
+ find "${BUILD_DIR}/bin/" -type f -executable -print0 | |
104 |
+ while IFS= read -r -d '' line; do |
105 |
+ dobin "$line" |
106 |
+ done |
107 |
+ |
108 |
+ if use daemon; then |
109 |
+ dodoc utils/conf/monerod.conf |
110 |
+ |
111 |
+ # data-dir |
112 |
+ keepdir /var/lib/monero |
113 |
+ fowners monero:monero /var/lib/monero |
114 |
+ fperms 0755 /var/lib/monero |
115 |
+ |
116 |
+ # log-file dir |
117 |
+ keepdir /var/log/monero |
118 |
+ fowners monero:monero /var/log/monero |
119 |
+ fperms 0755 /var/log/monero |
120 |
+ |
121 |
+ # /etc/monero/monerod.conf |
122 |
+ insinto /etc/monero |
123 |
+ doins "${FILESDIR}/monerod.conf" |
124 |
+ |
125 |
+ # OpenRC |
126 |
+ newconfd "${FILESDIR}/monerod.confd" monerod |
127 |
+ newinitd "${FILESDIR}/monerod.initd" monerod |
128 |
+ |
129 |
+ # systemd |
130 |
+ systemd_dounit "${FILESDIR}/monerod.service" |
131 |
+ fi |
132 |
+} |
133 |
+ |
134 |
+pkg_postinst() { |
135 |
+ if use daemon; then |
136 |
+ elog "Start the Monero P2P daemon as a system service with" |
137 |
+ elog "'rc-service monerod start'. Enable it at startup with" |
138 |
+ elog "'rc-update add monerod default'." |
139 |
+ elog |
140 |
+ elog "Run monerod status as any user to get sync status and other stats." |
141 |
+ elog |
142 |
+ elog "The Monero blockchain can take up a lot of space (80 GiB) and is stored" |
143 |
+ elog "in /var/lib/monero by default. You may want to enable pruning by adding" |
144 |
+ elog "'prune-blockchain=1' to /etc/monero/monerod.conf to prune the blockchain" |
145 |
+ elog "or move the data directory to another disk." |
146 |
+ fi |
147 |
+} |