parlay

yet another gentoo overlay
git clone https://git.parazyd.org/parlay
Log | Files | Refs | README

commit b3eb059b4890a7ba437a615fd5ef84809cab41f4
parent d62cb7cf705d89b52a0822b7ed9a3a91f7c44824
Author: parazyd <parazyd@dyne.org>
Date:   Fri, 15 Jan 2021 13:08:30 +0100

Import ebuilds from monero overlay.

Diffstat:
Aacct-group/monero/metadata.xml | 5+++++
Aacct-group/monero/monero-0.ebuild | 8++++++++
Aacct-user/monero/metadata.xml | 5+++++
Aacct-user/monero/monero-0.ebuild | 11+++++++++++
Adev-libs/monero-seed/Manifest | 1+
Adev-libs/monero-seed/metadata.xml | 5+++++
Adev-libs/monero-seed/monero-seed-0.1.0.ebuild | 16++++++++++++++++
Mmetadata/layout.conf | 8++++++++
Anet-misc/feather-wow/feather-wow-9999.ebuild | 75+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Anet-misc/feather-wow/metadata.xml | 15+++++++++++++++
Anet-misc/feather/feather-9999.ebuild | 75+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Anet-misc/feather/metadata.xml | 18++++++++++++++++++
Anet-misc/xmrig-mo/Manifest | 1+
Anet-misc/xmrig-mo/files/xmrig-mo-no-default-donate.patch | 15+++++++++++++++
Anet-misc/xmrig-mo/files/xmrig-mo-nonotls.patch | 23+++++++++++++++++++++++
Anet-misc/xmrig-mo/metadata.xml | 19+++++++++++++++++++
Anet-misc/xmrig-mo/xmrig-mo-6.5.1.ebuild | 64++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Anet-misc/xmrig-proxy/Manifest | 2++
Anet-misc/xmrig-proxy/files/xmrig-proxy-5.10.2-nonotls.patch | 23+++++++++++++++++++++++
Anet-misc/xmrig-proxy/metadata.xml | 18++++++++++++++++++
Anet-misc/xmrig-proxy/xmrig-proxy-6.3.0.ebuild | 35+++++++++++++++++++++++++++++++++++
Anet-misc/xmrig-proxy/xmrig-proxy-6.4.0.ebuild | 35+++++++++++++++++++++++++++++++++++
Anet-misc/xmrig/Manifest | 3+++
Anet-misc/xmrig/files/xmrig-5.11.2-nonotls.patch | 23+++++++++++++++++++++++
Anet-misc/xmrig/files/xmrig-6.3.3-nodonate.patch | 15+++++++++++++++
Anet-misc/xmrig/metadata.xml | 17+++++++++++++++++
Anet-misc/xmrig/xmrig-6.5.0.ebuild | 58++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Anet-misc/xmrig/xmrig-6.5.1.ebuild | 58++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Anet-misc/xmrig/xmrig-6.6.2.ebuild | 58++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Anet-p2p/monero/files/monero-0.17.1.3-linkjobs.patch | 44++++++++++++++++++++++++++++++++++++++++++++
Anet-p2p/monero/files/monerod-0.16.0.3-r1.confd | 6++++++
Anet-p2p/monero/files/monerod-0.16.0.3-r1.initd | 21+++++++++++++++++++++
Anet-p2p/monero/files/monerod-0.16.0.3-r1.monerod.conf | 9+++++++++
Anet-p2p/monero/files/monerod-0.17.1.5.service | 18++++++++++++++++++
Anet-p2p/monero/metadata.xml | 32++++++++++++++++++++++++++++++++
Anet-p2p/monero/monero-0.17.1.0.ebuild | 100+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Anet-p2p/monero/monero-0.17.1.1.ebuild | 100+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Anet-p2p/monero/monero-0.17.1.3.ebuild | 103+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Anet-p2p/monero/monero-0.17.1.5.ebuild | 106+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Anet-p2p/monero/monero-0.17.1.6.ebuild | 106+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Anet-p2p/monero/monero-0.17.1.7.ebuild | 106+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Anet-p2p/wownero/metadata.xml | 11+++++++++++
Anet-p2p/wownero/wownero-0.9.0.0.ebuild | 47+++++++++++++++++++++++++++++++++++++++++++++++
Anet-p2p/wownero/wownero-0.9.0.2.ebuild | 47+++++++++++++++++++++++++++++++++++++++++++++++
Anet-p2p/wownero/wownero-0.9.1.0.ebuild | 47+++++++++++++++++++++++++++++++++++++++++++++++
Aprofiles/use.local.desc | 15+++++++++++++++
46 files changed, 1627 insertions(+), 0 deletions(-)

diff --git a/acct-group/monero/metadata.xml b/acct-group/monero/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> +</pkgmetadata> diff --git a/acct-group/monero/monero-0.ebuild b/acct-group/monero/monero-0.ebuild @@ -0,0 +1,8 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit acct-group + +ACCT_GROUP_ID=-1 diff --git a/acct-user/monero/metadata.xml b/acct-user/monero/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> +</pkgmetadata> diff --git a/acct-user/monero/monero-0.ebuild b/acct-user/monero/monero-0.ebuild @@ -0,0 +1,11 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit acct-user + +ACCT_USER_ID=-1 +ACCT_USER_GROUPS=( monero ) + +acct-user_add_deps diff --git a/dev-libs/monero-seed/Manifest b/dev-libs/monero-seed/Manifest @@ -0,0 +1 @@ +DIST monero-seed-0.1.0.tar.gz 37474 BLAKE2B ba3f98fc1dc58e5731402d02c1e2b2824f60a35655cfa06272055ef8334af295ade89ae624c60aece19d3962164af4b591e06dd7c5f43b3157dd43fb6987710c SHA512 a539ab4fdebed416600e18c89f20c572e8aab259db0929d60e2b0caa12c661fb84c9cf461306d395ca5c2fa30736ab7df7c43eb21c72757133716304a0a01d69 diff --git a/dev-libs/monero-seed/metadata.xml b/dev-libs/monero-seed/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> +</pkgmetadata> diff --git a/dev-libs/monero-seed/monero-seed-0.1.0.ebuild b/dev-libs/monero-seed/monero-seed-0.1.0.ebuild @@ -0,0 +1,16 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="14-word mnemonic seed for Monero" +HOMEPAGE="https://git.wownero.com/feather/monero-seed" +SRC_URI="https://git.wownero.com/feather/monero-seed/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +S="${WORKDIR}/${PN}" diff --git a/metadata/layout.conf b/metadata/layout.conf @@ -1,2 +1,9 @@ masters = gentoo + +manifest-hashes = BLAKE2B SHA512 +manifest-required-hashes = BLAKE2B + thin-manifests = true + +sign-commits = true +sign-manifests = false+ \ No newline at end of file diff --git a/net-misc/feather-wow/feather-wow-9999.ebuild b/net-misc/feather-wow/feather-wow-9999.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake git-r3 + +DESCRIPTION="A free, open-source Wownero wallet" +HOMEPAGE="https://featherwallet.org" +SRC_URI="" +EGIT_REPO_URI="https://git.wownero.com/feather/feather-wow.git" + +# Feather is released under the terms of the BSD license, but it vendors +# code from Wownero and Tor too. +LICENSE="BSD MIT" +SLOT="0" +KEYWORDS="" +IUSE="libressl xmrig" + +DEPEND=" + dev-libs/boost:=[nls,threads] + dev-libs/libgcrypt:= + dev-libs/libsodium:= + dev-libs/monero-seed + >=dev-qt/qtcore-5.15 + >=dev-qt/qtgui-5.15 + >=dev-qt/qtnetwork-5.15 + >=dev-qt/qtsvg-5.15 + >=dev-qt/qtwebsockets-5.15 + >=dev-qt/qtwidgets-5.15 + >=dev-qt/qtxml-5.15 + media-gfx/qrencode:= + net-dns/unbound:=[threads] + net-libs/czmq:= + !libressl? ( dev-libs/openssl:= ) + libressl? ( dev-libs/libressl:= ) +" +RDEPEND=" + ${DEPEND} + net-vpn/tor +" +BDEPEND="virtual/pkgconfig" + +src_configure() { + local mycmakeargs=( + -DARCH=x86_64 + -DBUILD_64=ON + -DBUILD_SHARED_LIBS=Off # Vendored Monero libs collision + -DBUILD_TAG="linux-x64" + -DBUILD_TESTS=OFF + -DBUILD_TOR=OFF + -DDONATE_BEG=OFF + -DINSTALL_VENDORED_LIBUNBOUND=OFF + -DMANUAL_SUBMODULES=1 + -DSTATIC=OFF + -DUSE_DEVICE_TREZOR=OFF + -DXMRTO=OFF + -DXMRig=$(usex xmrig) + ) + + cmake_src_configure +} + +src_compile() { + cmake_build feather-wow +} + +src_install() { + dobin "${BUILD_DIR}/bin/feather-wow" +} + +pkg_postinst() { + einfo "Ensure that Tor is running with 'rc-service tor start' before" + einfo "using Feather." +} diff --git a/net-misc/feather-wow/metadata.xml b/net-misc/feather-wow/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <longdescription lang="en"> + Feather is a free, open-source Wownero client Linux with ports for + Mac OS and Windows written in C++ with the Qt framework. It is + created and maintained by dsc and tobtoht. + </longdescription> + <use> + <flag name="xmrig"> + Enable mining support using a user specified xmrig binary. + </flag> + </use> +</pkgmetadata> diff --git a/net-misc/feather/feather-9999.ebuild b/net-misc/feather/feather-9999.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake git-r3 + +DESCRIPTION="A free, open-source Monero wallet" +HOMEPAGE="https://featherwallet.org" +SRC_URI="" +EGIT_REPO_URI="https://git.wownero.com/feather/feather.git" + +# Feather is released under the terms of the BSD license, but it vendors +# code from Monero and Tor too. +LICENSE="BSD MIT" +SLOT="0" +KEYWORDS="" +IUSE="libressl xmrig +xmrto" + +DEPEND=" + dev-libs/boost:=[nls,threads] + dev-libs/libgcrypt:= + dev-libs/libsodium:= + dev-libs/monero-seed + >=dev-qt/qtcore-5.15 + >=dev-qt/qtgui-5.15 + >=dev-qt/qtnetwork-5.15 + >=dev-qt/qtsvg-5.15 + >=dev-qt/qtwebsockets-5.15 + >=dev-qt/qtwidgets-5.15 + >=dev-qt/qtxml-5.15 + media-gfx/qrencode:= + net-dns/unbound:=[threads] + net-libs/czmq:= + !libressl? ( dev-libs/openssl:= ) + libressl? ( dev-libs/libressl:= ) +" +RDEPEND=" + ${DEPEND} + net-vpn/tor +" +BDEPEND="virtual/pkgconfig" + +src_configure() { + local mycmakeargs=( + -DARCH=x86_64 + -DBUILD_64=ON + -DBUILD_SHARED_LIBS=Off # Vendored Monero libs collision + -DBUILD_TAG="linux-x64" + -DBUILD_TESTS=OFF + -DBUILD_TOR=OFF + -DDONATE_BEG=OFF + -DINSTALL_VENDORED_LIBUNBOUND=OFF + -DMANUAL_SUBMODULES=1 + -DSTATIC=OFF + -DUSE_DEVICE_TREZOR=OFF + -DXMRTO=$(usex xmrto) + -DXMRig=$(usex xmrig) + ) + + cmake_src_configure +} + +src_compile() { + cmake_build feather +} + +src_install() { + dobin "${BUILD_DIR}/bin/feather" +} + +pkg_postinst() { + einfo "Ensure that Tor is running with 'rc-service tor start' before" + einfo "using Feather." +} diff --git a/net-misc/feather/metadata.xml b/net-misc/feather/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <longdescription lang="en"> + Feather is a free, open-source Monero client Linux with ports for + Mac OS and Windows written in C++ with the Qt framework. It is + created and maintained by dsc and tobtoht. + </longdescription> + <use> + <flag name="xmrig"> + Enable mining support using a user specified xmrig binary. + </flag> + <flag name="xmrto"> + Enable swaps to Bitcoin using xmr.to. + </flag> + </use> +</pkgmetadata> diff --git a/net-misc/xmrig-mo/Manifest b/net-misc/xmrig-mo/Manifest @@ -0,0 +1 @@ +DIST xmrig-mo-6.5.1.tar.gz 1648005 BLAKE2B 0ac5da703388c8cc86bb254cb7c1568f527244ed4224579bdb01a149dc7af99ae651418bdf55388ee5b0cdf2ce3a474a3ab6d86a17ae9514d42d608622bd9e07 SHA512 63bbaa7e19762e7e7efdd0b3626cfce22d6f396b1460278e918ae3e9d7c8fe6e85536caefe0f56c47e0512ff842654cd5710a532618213224d5985e9d3decaf0 diff --git a/net-misc/xmrig-mo/files/xmrig-mo-no-default-donate.patch b/net-misc/xmrig-mo/files/xmrig-mo-no-default-donate.patch @@ -0,0 +1,15 @@ +diff --git a/src/donate.h b/src/donate.h +index 9323dcab..7a2b1996 100644 +--- a/src/donate.h ++++ b/src/donate.h +@@ -44,8 +44,8 @@ + * XMR: 48edfHu7V9Z84YzzMa6fUueoELZ9ZRXq9VetWzYGzKt52XU5xvqgzYnDK9URnRoJMk1j8nLwEVsaSWJ4fhdUyZijBGUicoD + * BTC: 1P7ujsXeX7GxQwHNnJsRMgAdNkFZmNVqJT + */ +-constexpr const int kDefaultDonateLevel = 1; +-constexpr const int kMinimumDonateLevel = 1; ++constexpr const int kDefaultDonateLevel = 0; ++constexpr const int kMinimumDonateLevel = 0; + + + #endif /* XMRIG_DONATE_H */ diff --git a/net-misc/xmrig-mo/files/xmrig-mo-nonotls.patch b/net-misc/xmrig-mo/files/xmrig-mo-nonotls.patch @@ -0,0 +1,23 @@ +From ee98bfe01a94d021d81ed4c2bb11ec91c0bd81c8 Mon Sep 17 00:00:00 2001 +From: Matt Smith <matt@offtopica.uk> +Date: Sun, 7 Jun 2020 13:20:04 +0100 +Subject: [PATCH] Don't suffix binary with -notls + +--- + cmake/OpenSSL.cmake | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/cmake/OpenSSL.cmake b/cmake/OpenSSL.cmake +index 89805301..c01c940a 100644 +--- a/cmake/OpenSSL.cmake ++++ b/cmake/OpenSSL.cmake +@@ -54,6 +54,4 @@ else() + src/base/net/http/HttpServer.h + ) + endif() +- +- set(CMAKE_PROJECT_NAME "${CMAKE_PROJECT_NAME}-notls") + endif() +-- +2.27.0 + diff --git a/net-misc/xmrig-mo/metadata.xml b/net-misc/xmrig-mo/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>telans@posteo.de</email> + <name>Theo Anderson</name> + </maintainer> + <longdescription lang="en"> + XMRig High performance, open source, cross platform RandomX, + CryptoNight, AstroBWT and Argon2 CPU/GPU miner. Algorithm switching, + when used with the MoneroOcean mining pool. + </longdescription> + <use> + <flag name="donate">Enable a default donation value of 1% CPU time instead of 0.</flag> + </use> + <upstream> + <remote-id type="github">MoneroOcean/xmrig</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-misc/xmrig-mo/xmrig-mo-6.5.1.ebuild b/net-misc/xmrig-mo/xmrig-mo-6.5.1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +MO_PV="mo1" +DESCRIPTION="RandomX, CryptoNight, KawPow, AstroBWT and Argon2 miner for the MoneroOcean pool" +HOMEPAGE="https://xmrig.com https://moneroocean.stream/ https://github.com/MoneroOcean/xmrig" +SRC_URI="https://github.com/MoneroOcean/xmrig/archive/v${PV}-${MO_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="donate libressl +ssl" +REQUIRED_USE="libressl? ( ssl )" + +DEPEND=" + dev-libs/libuv:= + sys-apps/hwloc:= + ssl? ( + !libressl? ( dev-libs/openssl:= ) + libressl? ( dev-libs/libressl:= ) + )" + +S="${WORKDIR}/xmrig-${PV}-${MO_PV}" + +PATCHES=("${FILESDIR}/${PN}-nonotls.patch") + +src_prepare() { + use donate || PATCHES+=("${FILESDIR}/${PN}-no-default-donate.patch") + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + # TODO: Create expanded USE flag for all of the PoW algos. + + -DWITH_TLS=$(usex ssl) + + # TODO: opencl USE flag. + -DWITH_OPENCL=OFF + + # TODO: cuda USE flag. + -DWITH_CUDA=OFF + ) + + cmake_src_configure +} + +src_install() { + newbin "${BUILD_DIR}/xmrig" "xmrig-mo" +} + +pkg_postinst() { + einfo "Install sys-apps/msr-tools and load the msr kernel module so that" + einfo "XMRig can perform CPU specific tweaks like disabling the instruction" + einfo "prefetcher. Also remember to increase the vm.nr_hugepages sysctl" + einfo "value so that XMRig can allocate with huge pages." + einfo "" + einfo "XMRig-MoneroOcean has been installed as /usr/bin/xmrig-mo" + einfo "in order to differentiate between the original XMRig" +} diff --git a/net-misc/xmrig-proxy/Manifest b/net-misc/xmrig-proxy/Manifest @@ -0,0 +1,2 @@ +DIST xmrig-proxy-6.3.0.tar.gz 318242 BLAKE2B 95efaf0ecc11e869ebe251ce11133102b9a23b640c1d9b3b421523f750e3c65f70054c243bfa08e8c536a6bfc94b85b067ca5a686add3cd6d9c3a60fef338987 SHA512 332edefcb936a1eb99542cb52795a749738829cedd105461740dc289a8996f602be874e4763758c7a04dd45ac88700b4d0772cfd9d07dde4502ed4d46636314c +DIST xmrig-proxy-6.4.0.tar.gz 318314 BLAKE2B 8cb6fe333d153816c93d7422439a956f169136e46744f12b6335cc2e336f58c8247b27abec6e8db64537f7f1c3c5121de970582f94156a164dd312760481825a SHA512 0120c7add96db970f96abf28121812eaff1279fc88fc09d0cc47f92a8292b407a5e9eb0474dd332327033f374c8e8d320bd17b87b1455b74b2bbbf73e2e23b97 diff --git a/net-misc/xmrig-proxy/files/xmrig-proxy-5.10.2-nonotls.patch b/net-misc/xmrig-proxy/files/xmrig-proxy-5.10.2-nonotls.patch @@ -0,0 +1,23 @@ +From 3aa1a0300bfdac4e42a3ac8bc177169d5abd96dc Mon Sep 17 00:00:00 2001 +From: Matt Smith <matt@offtopica.uk> +Date: Mon, 8 Jun 2020 08:47:28 +0100 +Subject: [PATCH] Don't suffix binary with -notls + +--- + cmake/OpenSSL.cmake | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/cmake/OpenSSL.cmake b/cmake/OpenSSL.cmake +index c05ee86..fdcc847 100644 +--- a/cmake/OpenSSL.cmake ++++ b/cmake/OpenSSL.cmake +@@ -56,6 +56,4 @@ else() + src/base/net/http/HttpServer.h + ) + endif() +- +- set(CMAKE_PROJECT_NAME "${CMAKE_PROJECT_NAME}-notls") + endif() +-- +2.27.0 + diff --git a/net-misc/xmrig-proxy/metadata.xml b/net-misc/xmrig-proxy/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <longdescription lang="en"> + Extremely high performance Monero (XMR) Stratum protocol proxy, + can easily handle over 100K connections on cheap $5 (1024 MB) + virtual machine. Reduce number of pool connections up to 256 + times, 100K workers become just 391 worker on pool side. Written + on C++/libuv same as XMRig miner. + </longdescription> + <use> + <flag name="http">Enable HTTP server for API.</flag> + </use> + <upstream> + <remote-id type="github">xmrig/xmrig-proxy</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-misc/xmrig-proxy/xmrig-proxy-6.3.0.ebuild b/net-misc/xmrig-proxy/xmrig-proxy-6.3.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="Monero (XMR) Stratum protocol proxy" +HOMEPAGE="https://xmrig.com/proxy https://github.com/xmrig/xmrig-proxy" +SRC_URI="https://github.com/xmrig/xmrig-proxy/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="ssl http" + +DEPEND=" + dev-libs/libuv:= + ssl? ( dev-libs/openssl:= )" + +PATCHES=("${FILESDIR}/${PN}-5.10.2-nonotls.patch") + +src_configure() { + local mycmakeargs=( + -DWITH_TLS=$(usex ssl) + -DWITH_HTTP=$(usex http) + ) + + cmake_src_configure +} + +src_install() { + dodoc src/config.json + dobin "${BUILD_DIR}/xmrig-proxy" +} diff --git a/net-misc/xmrig-proxy/xmrig-proxy-6.4.0.ebuild b/net-misc/xmrig-proxy/xmrig-proxy-6.4.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="Monero (XMR) Stratum protocol proxy" +HOMEPAGE="https://xmrig.com/proxy https://github.com/xmrig/xmrig-proxy" +SRC_URI="https://github.com/xmrig/xmrig-proxy/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="ssl http" + +DEPEND=" + dev-libs/libuv:= + ssl? ( dev-libs/openssl:= )" + +PATCHES=("${FILESDIR}/${PN}-5.10.2-nonotls.patch") + +src_configure() { + local mycmakeargs=( + -DWITH_TLS=$(usex ssl) + -DWITH_HTTP=$(usex http) + ) + + cmake_src_configure +} + +src_install() { + dodoc src/config.json + dobin "${BUILD_DIR}/xmrig-proxy" +} diff --git a/net-misc/xmrig/Manifest b/net-misc/xmrig/Manifest @@ -0,0 +1,3 @@ +DIST xmrig-6.5.0.tar.gz 1554233 BLAKE2B b046fa1a42befc4e003293631ef297a1d16defee76986d7a8226023095fba2ab1a59ddb1de2da2244bfeb940c13930aba1516e7788fd2f95ec85c4e64cb083bc SHA512 f3558ee98b90c2e96029bee5f1b5700673e1bc1383122c3822eb69517e3a47478806fe32d635cd37123ad594c41ab7fc8731357829eebd75ae8dfbcf1c3d4b30 +DIST xmrig-6.5.1.tar.gz 1554761 BLAKE2B 6625b367fbaf1ff65efefa1331c8132fe78cea28492be2d6d32c847b6cdd83f76b5eaa926de26683d68e66deadaa17abc6d03bbe654830ae25fc1a548d0b0b04 SHA512 0674aac6c0bd86cd6f5465cc1063f9822335d35dcd2bb65d3e0d7d833301fe557e755ed719b9cc83b671d32a83deaff9c32ad78e4885677e286ce11bb8305edd +DIST xmrig-6.6.2.tar.gz 1559187 BLAKE2B 3a29c1079f16bc5992c888919bc1eace988e8145b862cb1fe3b796fd7107a1188605944dccc6603f02dee6c0c894420454745b4f706cca961440fbbdce52cb7b SHA512 93d68639ad017c4d74dc7b4dac778cf133f4f520b7257863cc622efea1af8bd4b7eedc47e6d2c567cb3e144ddd019ca2d997970b81421d4b52033d51f4e3de49 diff --git a/net-misc/xmrig/files/xmrig-5.11.2-nonotls.patch b/net-misc/xmrig/files/xmrig-5.11.2-nonotls.patch @@ -0,0 +1,23 @@ +From ee98bfe01a94d021d81ed4c2bb11ec91c0bd81c8 Mon Sep 17 00:00:00 2001 +From: Matt Smith <matt@offtopica.uk> +Date: Sun, 7 Jun 2020 13:20:04 +0100 +Subject: [PATCH] Don't suffix binary with -notls + +--- + cmake/OpenSSL.cmake | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/cmake/OpenSSL.cmake b/cmake/OpenSSL.cmake +index 89805301..c01c940a 100644 +--- a/cmake/OpenSSL.cmake ++++ b/cmake/OpenSSL.cmake +@@ -54,6 +54,4 @@ else() + src/base/net/http/HttpServer.h + ) + endif() +- +- set(CMAKE_PROJECT_NAME "${CMAKE_PROJECT_NAME}-notls") + endif() +-- +2.27.0 + diff --git a/net-misc/xmrig/files/xmrig-6.3.3-nodonate.patch b/net-misc/xmrig/files/xmrig-6.3.3-nodonate.patch @@ -0,0 +1,15 @@ +diff --git a/src/donate.h b/src/donate.h +index 9323dcab..7a2b1996 100644 +--- a/src/donate.h ++++ b/src/donate.h +@@ -44,8 +44,8 @@ + * XMR: 48edfHu7V9Z84YzzMa6fUueoELZ9ZRXq9VetWzYGzKt52XU5xvqgzYnDK9URnRoJMk1j8nLwEVsaSWJ4fhdUyZijBGUicoD + * BTC: 1P7ujsXeX7GxQwHNnJsRMgAdNkFZmNVqJT + */ +-constexpr const int kDefaultDonateLevel = 1; +-constexpr const int kMinimumDonateLevel = 1; ++constexpr const int kDefaultDonateLevel = 0; ++constexpr const int kMinimumDonateLevel = 0; + + + #endif /* XMRIG_DONATE_H */ diff --git a/net-misc/xmrig/metadata.xml b/net-misc/xmrig/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <longdescription lang="en"> + XMRig High performance, open source, cross platform RandomX, + CryptoNight, KawPow, AstroBWT, and Argon2 CPU/GPU miner. + </longdescription> + <use> + <flag name="donate"> + Set the default donation level to 1% instead of 0 + </flag> + </use> + <upstream> + <remote-id type="github">xmrig/xmrig</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-misc/xmrig/xmrig-6.5.0.ebuild b/net-misc/xmrig/xmrig-6.5.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="RandomX, CryptoNight, KawPow, AstroBWT, and Argon2 CPU/GPU miner" +HOMEPAGE="https://xmrig.com https://github.com/xmrig/xmrig" +SRC_URI="https://github.com/xmrig/xmrig/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="donate libressl ssl" + +DEPEND=" + dev-libs/libuv:= + sys-apps/hwloc:= + ssl? ( + !libressl? ( dev-libs/openssl:= ) + libressl? ( dev-libs/libressl:= ) + )" + +PATCHES=("${FILESDIR}/${PN}-5.11.2-nonotls.patch") + +src_prepare() { + use donate || eapply "${FILESDIR}/${PN}-6.3.3-nodonate.patch" + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + # TODO: Create expanded USE flag for all of the PoW algos. + + -DWITH_TLS=$(usex ssl) + + # TODO: opencl USE flag. + -DWITH_OPENCL=OFF + + # TODO: cuda USE flag. + -DWITH_CUDA=OFF + ) + + cmake_src_configure +} + +src_install() { + dobin "${BUILD_DIR}/xmrig" +} + +pkg_postinst() { + einfo "Install sys-apps/msr-tools and load the msr kernel module so that" + einfo "XMRig can perform CPU specific tweaks like disabling the instruction" + einfo "prefetcher. Also remember to increase the vm.nr_hugepages sysctl" + einfo "value so that XMRig can allocate with huge pages." +} diff --git a/net-misc/xmrig/xmrig-6.5.1.ebuild b/net-misc/xmrig/xmrig-6.5.1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="RandomX, CryptoNight, KawPow, AstroBWT, and Argon2 CPU/GPU miner" +HOMEPAGE="https://xmrig.com https://github.com/xmrig/xmrig" +SRC_URI="https://github.com/xmrig/xmrig/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="donate libressl ssl" + +DEPEND=" + dev-libs/libuv:= + sys-apps/hwloc:= + ssl? ( + !libressl? ( dev-libs/openssl:= ) + libressl? ( dev-libs/libressl:= ) + )" + +PATCHES=("${FILESDIR}/${PN}-5.11.2-nonotls.patch") + +src_prepare() { + use donate || eapply "${FILESDIR}/${PN}-6.3.3-nodonate.patch" + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + # TODO: Create expanded USE flag for all of the PoW algos. + + -DWITH_TLS=$(usex ssl) + + # TODO: opencl USE flag. + -DWITH_OPENCL=OFF + + # TODO: cuda USE flag. + -DWITH_CUDA=OFF + ) + + cmake_src_configure +} + +src_install() { + dobin "${BUILD_DIR}/xmrig" +} + +pkg_postinst() { + einfo "Install sys-apps/msr-tools and load the msr kernel module so that" + einfo "XMRig can perform CPU specific tweaks like disabling the instruction" + einfo "prefetcher. Also remember to increase the vm.nr_hugepages sysctl" + einfo "value so that XMRig can allocate with huge pages." +} diff --git a/net-misc/xmrig/xmrig-6.6.2.ebuild b/net-misc/xmrig/xmrig-6.6.2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="RandomX, CryptoNight, KawPow, AstroBWT, and Argon2 CPU/GPU miner" +HOMEPAGE="https://xmrig.com https://github.com/xmrig/xmrig" +SRC_URI="https://github.com/xmrig/xmrig/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="donate libressl ssl" + +DEPEND=" + dev-libs/libuv:= + sys-apps/hwloc:= + ssl? ( + !libressl? ( dev-libs/openssl:= ) + libressl? ( dev-libs/libressl:= ) + )" + +PATCHES=("${FILESDIR}/${PN}-5.11.2-nonotls.patch") + +src_prepare() { + use donate || eapply "${FILESDIR}/${PN}-6.3.3-nodonate.patch" + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + # TODO: Create expanded USE flag for all of the PoW algos. + + -DWITH_TLS=$(usex ssl) + + # TODO: opencl USE flag. + -DWITH_OPENCL=OFF + + # TODO: cuda USE flag. + -DWITH_CUDA=OFF + ) + + cmake_src_configure +} + +src_install() { + dobin "${BUILD_DIR}/xmrig" +} + +pkg_postinst() { + einfo "Install sys-apps/msr-tools and load the msr kernel module so that" + einfo "XMRig can perform CPU specific tweaks like disabling the instruction" + einfo "prefetcher. Also remember to increase the vm.nr_hugepages sysctl" + einfo "value so that XMRig can allocate with huge pages." +} diff --git a/net-p2p/monero/files/monero-0.17.1.3-linkjobs.patch b/net-p2p/monero/files/monero-0.17.1.3-linkjobs.patch @@ -0,0 +1,44 @@ +From 12a78e5e745556c29e45b7716a8b038ecfbff800 Mon Sep 17 00:00:00 2001 +From: Matt Smith <matt@offtopica.uk> +Date: Wed, 5 Aug 2020 18:39:44 +0100 +Subject: [PATCH] cmake: Use job pool feature to limit concurrent jobs + +Add two new options, MONERO_PARALLEL_COMPILE_JOBS and +MONERO_PARALLEL_LINK_JOBS to try and prevent running out of memory when +building everything. + +Requires >= cmake 3.0.0, and the use of the Ninja generator. + +Useful links: + +* https://cmake.org/cmake/help/latest/prop_gbl/JOB_POOLS.html +* https://reviews.llvm.org/D6304 +--- + CMakeLists.txt | 14 ++++++++++++++ + 1 file changed, 14 insertions(+) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index f63c07a35d..3729a6b659 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -55,6 +55,20 @@ else() + message(STATUS "ccache deselected") + endif() + ++if (${CMAKE_VERSION} VERSION_GREATER "3.0.0" AND CMAKE_MAKE_PROGRAM MATCHES "ninja") ++ set(MONERO_PARALLEL_COMPILE_JOBS "" CACHE STRING "The maximum number of concurrent compilation jobs.") ++ if (MONERO_PARALLEL_COMPILE_JOBS) ++ set_property(GLOBAL APPEND PROPERTY JOB_POOLS compile_job_pool=${MONERO_PARALLEL_COMPILE_JOBS}) ++ set(CMAKE_JOB_POOL_COMPILE compile_job_pool) ++ endif () ++ ++ set(MONERO_PARALLEL_LINK_JOBS "" CACHE STRING "The maximum number of concurrent link jobs.") ++ if (MONERO_PARALLEL_LINK_JOBS) ++ set_property(GLOBAL APPEND PROPERTY JOB_POOLS link_job_pool=${MONERO_PARALLEL_LINK_JOBS}) ++ set(CMAKE_JOB_POOL_LINK link_job_pool) ++ endif () ++endif() ++ + enable_language(C ASM) + + function (die msg) diff --git a/net-p2p/monero/files/monerod-0.16.0.3-r1.confd b/net-p2p/monero/files/monerod-0.16.0.3-r1.confd @@ -0,0 +1,6 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +monerod_args="--config-file /etc/monero/monerod.conf --non-interactive" +monerod_user=monero +monerod_group=monero diff --git a/net-p2p/monero/files/monerod-0.16.0.3-r1.initd b/net-p2p/monero/files/monerod-0.16.0.3-r1.initd @@ -0,0 +1,21 @@ +#!/sbin/openrc-run +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +pidfile=/var/run/monerod.pid +command=/usr/bin/monerod +command_args="${monerod_args}" +start_stop_daemon_args="-u ${monerod_user} -b -m -p ${pidfile}" + +name="Monero P2P Daemon" +description="Connects to the Monero P2P network" + +depend() { + need localmount + need net +} + +start_pre() { + checkpath --directory --owner ${monerod_user}:${monerod_group} --mode 0755 \ + /var/lib/monero /var/log/monero +} diff --git a/net-p2p/monero/files/monerod-0.16.0.3-r1.monerod.conf b/net-p2p/monero/files/monerod-0.16.0.3-r1.monerod.conf @@ -0,0 +1,8 @@ +# Configuration for monerod +# Syntax: any command line option may be specified as 'clioptionname=value'. +# Boolean options such as 'no-igd' are specified as 'no-igd=1'. +# See 'monerod --help' for all available options. + +data-dir=/var/lib/monero +log-file=/var/log/monero/monero.log +log-level=0+ \ No newline at end of file diff --git a/net-p2p/monero/files/monerod-0.17.1.5.service b/net-p2p/monero/files/monerod-0.17.1.5.service @@ -0,0 +1,17 @@ +[Unit] +Description=Monero P2P Daemon +After=network.target + +[Service] +User=monero +Group=monero +StateDirectory=monero +LogsDirectory=monero +Type=simple +ExecStart=/usr/bin/monerod --config-file /etc/monero/monerod.conf --non-interactive +Restart=on-failure +StandardOutput=null +StandardError=null + +[Install] +WantedBy=multi-user.target+ \ No newline at end of file diff --git a/net-p2p/monero/metadata.xml b/net-p2p/monero/metadata.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <longdescription lang="en"> + Monero is a private, secure, untraceable, decentralised digital + currency. You are your bank, you control your funds, and nobody + can trace your transfers unless you allow them to do so. + </longdescription> + <use> + <flag name="daemon"> + Build the Monero daemon used to connect to the P2P network. + </flag> + <flag name="hw-wallet"> + Enable if you want to use a hardware wallet like a Trezor or + Ledger. + </flag> + <flag name="tools"> + Build tools used to manipulate the blockchain as it is stored on + disk. + </flag> + <flag name="wallet-cli"> + Build the command line wallet, monero-wallet-cli. + </flag> + <flag name="wallet-rpc"> + Build the RPC wallet, monero-wallet-rpc. + </flag> + </use> + <upstream> + <remote-id type="github">monero-project/monero</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-p2p/monero/monero-0.17.1.0.ebuild b/net-p2p/monero/monero-0.17.1.0.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake git-r3 + +DESCRIPTION="The secure, private, untraceable cryptocurrency" +HOMEPAGE="https://www.getmonero.org https://github.com/monero-project/monero" +SRC_URI="" +EGIT_REPO_URI="https://github.com/monero-project/monero.git" +EGIT_COMMIT="v${PV}" + +LICENSE="BSD MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+daemon hw-wallet libressl readline tools +wallet-cli +wallet-rpc" +REQUIRED_USE="|| ( daemon tools wallet-cli wallet-rpc )" + +DEPEND=" + acct-group/monero + acct-user/monero + dev-libs/boost:=[nls,threads] + dev-libs/libsodium:= + net-dns/unbound:=[threads] + net-libs/czmq:= + hw-wallet? ( + dev-libs/hidapi + dev-libs/protobuf:= + virtual/libusb:1 + ) + !libressl? ( dev-libs/openssl:= ) + libressl? ( dev-libs/libressl:= ) + readline? ( sys-libs/readline:0= )" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +src_configure() { + local mycmakeargs=( + # Monero's liblmdb conflicts with the system liblmdb :( + -DBUILD_SHARED_LIBS=OFF + -DMANUAL_SUBMODULES=ON + ) + + cmake_src_configure +} + +src_compile() { + local targets=() + use daemon && targets+=(daemon) + use tools && targets+=(blockchain_{ancestry,blackball,db,depth,export,import,prune,prune_known_spent_data,stats,usage}) + use wallet-cli && targets+=(simplewallet) + use wallet-rpc && targets+=(wallet_rpc_server) + cmake_build ${targets[@]} +} + +src_install() { + # Install all binaries. + find "${BUILD_DIR}/bin/" -type f -executable -print0 | + while IFS= read -r -d '' line; do + dobin "$line" + done + + if use daemon; then + dodoc utils/conf/monerod.conf + + # data-dir + keepdir /var/lib/monero + fowners monero:monero /var/lib/monero + fperms 0755 /var/lib/monero + + # log-file dir + keepdir /var/log/monero + fowners monero:monero /var/log/monero + fperms 0755 /var/log/monero + + # /etc/monero/monerod.conf + insinto /etc/monero + newins "${FILESDIR}/monerod-0.16.0.3-r1.monerod.conf" monerod.conf + + # OpenRC + newconfd "${FILESDIR}/monerod-0.16.0.3-r1.confd" monerod + newinitd "${FILESDIR}/monerod-0.16.0.3-r1.initd" monerod + fi +} + +pkg_postinst() { + if use daemon; then + einfo "Start the Monero P2P daemon as a system service with" + einfo "'rc-service monerod start'. Enable it at startup with" + einfo "'rc-update add monerod default'." + einfo + einfo "Run monerod status as any user to get sync status and other stats." + einfo + einfo "The Monero blockchain can take up a lot of space (80 GiB) and is stored" + einfo "in /var/lib/monero by default. You may want to enable pruning by adding" + einfo "'prune-blockchain=1' to /etc/monero/monerod.conf to prune the blockchain" + einfo "or move the data directory to another disk." + fi +} diff --git a/net-p2p/monero/monero-0.17.1.1.ebuild b/net-p2p/monero/monero-0.17.1.1.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake git-r3 + +DESCRIPTION="The secure, private, untraceable cryptocurrency" +HOMEPAGE="https://www.getmonero.org https://github.com/monero-project/monero" +SRC_URI="" +EGIT_REPO_URI="https://github.com/monero-project/monero.git" +EGIT_COMMIT="v${PV}" + +LICENSE="BSD MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+daemon hw-wallet libressl readline tools +wallet-cli +wallet-rpc" +REQUIRED_USE="|| ( daemon tools wallet-cli wallet-rpc )" + +DEPEND=" + acct-group/monero + acct-user/monero + dev-libs/boost:=[nls,threads] + dev-libs/libsodium:= + net-dns/unbound:=[threads] + net-libs/czmq:= + hw-wallet? ( + dev-libs/hidapi + dev-libs/protobuf:= + virtual/libusb:1 + ) + !libressl? ( dev-libs/openssl:= ) + libressl? ( dev-libs/libressl:= ) + readline? ( sys-libs/readline:0= )" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +src_configure() { + local mycmakeargs=( + # Monero's liblmdb conflicts with the system liblmdb :( + -DBUILD_SHARED_LIBS=OFF + -DMANUAL_SUBMODULES=ON + ) + + cmake_src_configure +} + +src_compile() { + local targets=() + use daemon && targets+=(daemon) + use tools && targets+=(blockchain_{ancestry,blackball,db,depth,export,import,prune,prune_known_spent_data,stats,usage}) + use wallet-cli && targets+=(simplewallet) + use wallet-rpc && targets+=(wallet_rpc_server) + cmake_build ${targets[@]} +} + +src_install() { + # Install all binaries. + find "${BUILD_DIR}/bin/" -type f -executable -print0 | + while IFS= read -r -d '' line; do + dobin "$line" + done + + if use daemon; then + dodoc utils/conf/monerod.conf + + # data-dir + keepdir /var/lib/monero + fowners monero:monero /var/lib/monero + fperms 0755 /var/lib/monero + + # log-file dir + keepdir /var/log/monero + fowners monero:monero /var/log/monero + fperms 0755 /var/log/monero + + # /etc/monero/monerod.conf + insinto /etc/monero + newins "${FILESDIR}/monerod-0.16.0.3-r1.monerod.conf" monerod.conf + + # OpenRC + newconfd "${FILESDIR}/monerod-0.16.0.3-r1.confd" monerod + newinitd "${FILESDIR}/monerod-0.16.0.3-r1.initd" monerod + fi +} + +pkg_postinst() { + if use daemon; then + einfo "Start the Monero P2P daemon as a system service with" + einfo "'rc-service monerod start'. Enable it at startup with" + einfo "'rc-update add monerod default'." + einfo + einfo "Run monerod status as any user to get sync status and other stats." + einfo + einfo "The Monero blockchain can take up a lot of space (80 GiB) and is stored" + einfo "in /var/lib/monero by default. You may want to enable pruning by adding" + einfo "'prune-blockchain=1' to /etc/monero/monerod.conf to prune the blockchain" + einfo "or move the data directory to another disk." + fi +} diff --git a/net-p2p/monero/monero-0.17.1.3.ebuild b/net-p2p/monero/monero-0.17.1.3.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake git-r3 + +DESCRIPTION="The secure, private, untraceable cryptocurrency" +HOMEPAGE="https://www.getmonero.org https://github.com/monero-project/monero" +SRC_URI="" +EGIT_REPO_URI="https://github.com/monero-project/monero.git" +EGIT_COMMIT="v${PV}" + +LICENSE="BSD MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+daemon hw-wallet libressl readline tools +wallet-cli +wallet-rpc" +REQUIRED_USE="|| ( daemon tools wallet-cli wallet-rpc )" + +DEPEND=" + acct-group/monero + acct-user/monero + dev-libs/boost:=[nls,threads] + dev-libs/libsodium:= + net-dns/unbound:=[threads] + net-libs/czmq:= + hw-wallet? ( + dev-libs/hidapi + dev-libs/protobuf:= + virtual/libusb:1 + ) + !libressl? ( dev-libs/openssl:= ) + libressl? ( dev-libs/libressl:= ) + readline? ( sys-libs/readline:0= )" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=("${FILESDIR}/${PN}-0.17.1.3-linkjobs.patch") + +src_configure() { + local mycmakeargs=( + # Monero's liblmdb conflicts with the system liblmdb :( + -DBUILD_SHARED_LIBS=OFF + -DMANUAL_SUBMODULES=ON + -DMONERO_PARALLEL_LINK_JOBS=1 + ) + + cmake_src_configure +} + +src_compile() { + local targets=() + use daemon && targets+=(daemon) + use tools && targets+=(blockchain_{ancestry,blackball,db,depth,export,import,prune,prune_known_spent_data,stats,usage}) + use wallet-cli && targets+=(simplewallet) + use wallet-rpc && targets+=(wallet_rpc_server) + cmake_build ${targets[@]} +} + +src_install() { + # Install all binaries. + find "${BUILD_DIR}/bin/" -type f -executable -print0 | + while IFS= read -r -d '' line; do + dobin "$line" + done + + if use daemon; then + dodoc utils/conf/monerod.conf + + # data-dir + keepdir /var/lib/monero + fowners monero:monero /var/lib/monero + fperms 0755 /var/lib/monero + + # log-file dir + keepdir /var/log/monero + fowners monero:monero /var/log/monero + fperms 0755 /var/log/monero + + # /etc/monero/monerod.conf + insinto /etc/monero + newins "${FILESDIR}/monerod-0.16.0.3-r1.monerod.conf" monerod.conf + + # OpenRC + newconfd "${FILESDIR}/monerod-0.16.0.3-r1.confd" monerod + newinitd "${FILESDIR}/monerod-0.16.0.3-r1.initd" monerod + fi +} + +pkg_postinst() { + if use daemon; then + einfo "Start the Monero P2P daemon as a system service with" + einfo "'rc-service monerod start'. Enable it at startup with" + einfo "'rc-update add monerod default'." + einfo + einfo "Run monerod status as any user to get sync status and other stats." + einfo + einfo "The Monero blockchain can take up a lot of space (80 GiB) and is stored" + einfo "in /var/lib/monero by default. You may want to enable pruning by adding" + einfo "'prune-blockchain=1' to /etc/monero/monerod.conf to prune the blockchain" + einfo "or move the data directory to another disk." + fi +} diff --git a/net-p2p/monero/monero-0.17.1.5.ebuild b/net-p2p/monero/monero-0.17.1.5.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake git-r3 systemd + +DESCRIPTION="The secure, private, untraceable cryptocurrency" +HOMEPAGE="https://www.getmonero.org https://github.com/monero-project/monero" +SRC_URI="" +EGIT_REPO_URI="https://github.com/monero-project/monero.git" +EGIT_COMMIT="v${PV}" + +LICENSE="BSD MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+daemon hw-wallet libressl readline tools +wallet-cli +wallet-rpc" +REQUIRED_USE="|| ( daemon tools wallet-cli wallet-rpc )" + +DEPEND=" + acct-group/monero + acct-user/monero + dev-libs/boost:=[nls,threads] + dev-libs/libsodium:= + net-dns/unbound:=[threads] + net-libs/czmq:= + hw-wallet? ( + dev-libs/hidapi + dev-libs/protobuf:= + virtual/libusb:1 + ) + !libressl? ( dev-libs/openssl:= ) + libressl? ( dev-libs/libressl:= ) + readline? ( sys-libs/readline:0= )" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=("${FILESDIR}/${PN}-0.17.1.3-linkjobs.patch") + +src_configure() { + local mycmakeargs=( + # Monero's liblmdb conflicts with the system liblmdb :( + -DBUILD_SHARED_LIBS=OFF + -DMANUAL_SUBMODULES=ON + -DMONERO_PARALLEL_LINK_JOBS=1 + ) + + cmake_src_configure +} + +src_compile() { + local targets=() + use daemon && targets+=(daemon) + use tools && targets+=(blockchain_{ancestry,blackball,db,depth,export,import,prune,prune_known_spent_data,stats,usage}) + use wallet-cli && targets+=(simplewallet) + use wallet-rpc && targets+=(wallet_rpc_server) + cmake_build ${targets[@]} +} + +src_install() { + # Install all binaries. + find "${BUILD_DIR}/bin/" -type f -executable -print0 | + while IFS= read -r -d '' line; do + dobin "$line" + done + + if use daemon; then + dodoc utils/conf/monerod.conf + + # data-dir + keepdir /var/lib/monero + fowners monero:monero /var/lib/monero + fperms 0755 /var/lib/monero + + # log-file dir + keepdir /var/log/monero + fowners monero:monero /var/log/monero + fperms 0755 /var/log/monero + + # /etc/monero/monerod.conf + insinto /etc/monero + newins "${FILESDIR}/monerod-0.16.0.3-r1.monerod.conf" monerod.conf + + # OpenRC + newconfd "${FILESDIR}/monerod-0.16.0.3-r1.confd" monerod + newinitd "${FILESDIR}/monerod-0.16.0.3-r1.initd" monerod + + # systemd + systemd_newunit "${FILESDIR}/monerod-0.17.1.5.service" monerod.service + fi +} + +pkg_postinst() { + if use daemon; then + einfo "Start the Monero P2P daemon as a system service with" + einfo "'rc-service monerod start'. Enable it at startup with" + einfo "'rc-update add monerod default'." + einfo + einfo "Run monerod status as any user to get sync status and other stats." + einfo + einfo "The Monero blockchain can take up a lot of space (80 GiB) and is stored" + einfo "in /var/lib/monero by default. You may want to enable pruning by adding" + einfo "'prune-blockchain=1' to /etc/monero/monerod.conf to prune the blockchain" + einfo "or move the data directory to another disk." + fi +} diff --git a/net-p2p/monero/monero-0.17.1.6.ebuild b/net-p2p/monero/monero-0.17.1.6.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake git-r3 systemd + +DESCRIPTION="The secure, private, untraceable cryptocurrency" +HOMEPAGE="https://www.getmonero.org https://github.com/monero-project/monero" +SRC_URI="" +EGIT_REPO_URI="https://github.com/monero-project/monero.git" +EGIT_COMMIT="v${PV}" + +LICENSE="BSD MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+daemon hw-wallet libressl readline tools +wallet-cli +wallet-rpc" +REQUIRED_USE="|| ( daemon tools wallet-cli wallet-rpc )" + +DEPEND=" + acct-group/monero + acct-user/monero + dev-libs/boost:=[nls,threads] + dev-libs/libsodium:= + net-dns/unbound:=[threads] + net-libs/czmq:= + hw-wallet? ( + dev-libs/hidapi + dev-libs/protobuf:= + virtual/libusb:1 + ) + !libressl? ( dev-libs/openssl:= ) + libressl? ( dev-libs/libressl:= ) + readline? ( sys-libs/readline:0= )" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=("${FILESDIR}/${PN}-0.17.1.3-linkjobs.patch") + +src_configure() { + local mycmakeargs=( + # Monero's liblmdb conflicts with the system liblmdb :( + -DBUILD_SHARED_LIBS=OFF + -DMANUAL_SUBMODULES=ON + -DMONERO_PARALLEL_LINK_JOBS=1 + ) + + cmake_src_configure +} + +src_compile() { + local targets=() + use daemon && targets+=(daemon) + use tools && targets+=(blockchain_{ancestry,blackball,db,depth,export,import,prune,prune_known_spent_data,stats,usage}) + use wallet-cli && targets+=(simplewallet) + use wallet-rpc && targets+=(wallet_rpc_server) + cmake_build ${targets[@]} +} + +src_install() { + # Install all binaries. + find "${BUILD_DIR}/bin/" -type f -executable -print0 | + while IFS= read -r -d '' line; do + dobin "$line" + done + + if use daemon; then + dodoc utils/conf/monerod.conf + + # data-dir + keepdir /var/lib/monero + fowners monero:monero /var/lib/monero + fperms 0755 /var/lib/monero + + # log-file dir + keepdir /var/log/monero + fowners monero:monero /var/log/monero + fperms 0755 /var/log/monero + + # /etc/monero/monerod.conf + insinto /etc/monero + newins "${FILESDIR}/monerod-0.16.0.3-r1.monerod.conf" monerod.conf + + # OpenRC + newconfd "${FILESDIR}/monerod-0.16.0.3-r1.confd" monerod + newinitd "${FILESDIR}/monerod-0.16.0.3-r1.initd" monerod + + # systemd + systemd_newunit "${FILESDIR}/monerod-0.17.1.5.service" monerod.service + fi +} + +pkg_postinst() { + if use daemon; then + einfo "Start the Monero P2P daemon as a system service with" + einfo "'rc-service monerod start'. Enable it at startup with" + einfo "'rc-update add monerod default'." + einfo + einfo "Run monerod status as any user to get sync status and other stats." + einfo + einfo "The Monero blockchain can take up a lot of space (80 GiB) and is stored" + einfo "in /var/lib/monero by default. You may want to enable pruning by adding" + einfo "'prune-blockchain=1' to /etc/monero/monerod.conf to prune the blockchain" + einfo "or move the data directory to another disk." + fi +} diff --git a/net-p2p/monero/monero-0.17.1.7.ebuild b/net-p2p/monero/monero-0.17.1.7.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake git-r3 systemd + +DESCRIPTION="The secure, private, untraceable cryptocurrency" +HOMEPAGE="https://www.getmonero.org https://github.com/monero-project/monero" +SRC_URI="" +EGIT_REPO_URI="https://github.com/monero-project/monero.git" +EGIT_COMMIT="v${PV}" + +LICENSE="BSD MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+daemon hw-wallet libressl readline tools +wallet-cli +wallet-rpc" +REQUIRED_USE="|| ( daemon tools wallet-cli wallet-rpc )" + +DEPEND=" + acct-group/monero + acct-user/monero + dev-libs/boost:=[nls,threads] + dev-libs/libsodium:= + net-dns/unbound:=[threads] + net-libs/czmq:= + hw-wallet? ( + dev-libs/hidapi + dev-libs/protobuf:= + virtual/libusb:1 + ) + !libressl? ( dev-libs/openssl:= ) + libressl? ( dev-libs/libressl:= ) + readline? ( sys-libs/readline:0= )" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=("${FILESDIR}/${PN}-0.17.1.3-linkjobs.patch") + +src_configure() { + local mycmakeargs=( + # Monero's liblmdb conflicts with the system liblmdb :( + -DBUILD_SHARED_LIBS=OFF + -DMANUAL_SUBMODULES=ON + -DMONERO_PARALLEL_LINK_JOBS=1 + ) + + cmake_src_configure +} + +src_compile() { + local targets=() + use daemon && targets+=(daemon) + use tools && targets+=(blockchain_{ancestry,blackball,db,depth,export,import,prune,prune_known_spent_data,stats,usage}) + use wallet-cli && targets+=(simplewallet) + use wallet-rpc && targets+=(wallet_rpc_server) + cmake_build ${targets[@]} +} + +src_install() { + # Install all binaries. + find "${BUILD_DIR}/bin/" -type f -executable -print0 | + while IFS= read -r -d '' line; do + dobin "$line" + done + + if use daemon; then + dodoc utils/conf/monerod.conf + + # data-dir + keepdir /var/lib/monero + fowners monero:monero /var/lib/monero + fperms 0755 /var/lib/monero + + # log-file dir + keepdir /var/log/monero + fowners monero:monero /var/log/monero + fperms 0755 /var/log/monero + + # /etc/monero/monerod.conf + insinto /etc/monero + newins "${FILESDIR}/monerod-0.16.0.3-r1.monerod.conf" monerod.conf + + # OpenRC + newconfd "${FILESDIR}/monerod-0.16.0.3-r1.confd" monerod + newinitd "${FILESDIR}/monerod-0.16.0.3-r1.initd" monerod + + # systemd + systemd_newunit "${FILESDIR}/monerod-0.17.1.5.service" monerod.service + fi +} + +pkg_postinst() { + if use daemon; then + einfo "Start the Monero P2P daemon as a system service with" + einfo "'rc-service monerod start'. Enable it at startup with" + einfo "'rc-update add monerod default'." + einfo + einfo "Run monerod status as any user to get sync status and other stats." + einfo + einfo "The Monero blockchain can take up a lot of space (80 GiB) and is stored" + einfo "in /var/lib/monero by default. You may want to enable pruning by adding" + einfo "'prune-blockchain=1' to /etc/monero/monerod.conf to prune the blockchain" + einfo "or move the data directory to another disk." + fi +} diff --git a/net-p2p/wownero/metadata.xml b/net-p2p/wownero/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <longdescription lang="en"> + Wownero is the future of privacy-centric meme currency. + </longdescription> + <upstream> + <remote-id type="github">wownero/wownero</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-p2p/wownero/wownero-0.9.0.0.ebuild b/net-p2p/wownero/wownero-0.9.0.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake git-r3 + +DESCRIPTION="Privacy-centric meme currency" +HOMEPAGE="https://www.wownero.org https://git.wownero.com/wownero/wownero" +SRC_URI="" +EGIT_REPO_URI="https://git.wownero.com/wownero/wownero.git" +EGIT_COMMIT="v${PV}" + +LICENSE="BSD MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="libressl readline" + +DEPEND=" + dev-libs/boost:=[nls,threads] + dev-libs/libsodium:= + net-dns/unbound:=[threads] + net-libs/czmq:= + !libressl? ( dev-libs/openssl:= ) + libressl? ( dev-libs/libressl:= ) + readline? ( sys-libs/readline:0= )" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +src_configure() { + local mycmakeargs=( + # Monero's liblmdb conflicts with the system liblmdb :( + -DBUILD_SHARED_LIBS=OFF + -DMANUAL_SUBMODULES=ON + ) + + cmake_src_configure +} + +src_install() { + dodoc utils/conf/wownerod.conf + + find "${BUILD_DIR}/bin/" -type f -executable -print0 | + while IFS= read -r -d '' line; do + dobin "$line" + done +} diff --git a/net-p2p/wownero/wownero-0.9.0.2.ebuild b/net-p2p/wownero/wownero-0.9.0.2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake git-r3 + +DESCRIPTION="Privacy-centric meme currency" +HOMEPAGE="https://www.wownero.org https://git.wownero.com/wownero/wownero" +SRC_URI="" +EGIT_REPO_URI="https://git.wownero.com/wownero/wownero.git" +EGIT_COMMIT="v${PV}" + +LICENSE="BSD MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="libressl readline" + +DEPEND=" + dev-libs/boost:=[nls,threads] + dev-libs/libsodium:= + net-dns/unbound:=[threads] + net-libs/czmq:= + !libressl? ( dev-libs/openssl:= ) + libressl? ( dev-libs/libressl:= ) + readline? ( sys-libs/readline:0= )" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +src_configure() { + local mycmakeargs=( + # Monero's liblmdb conflicts with the system liblmdb :( + -DBUILD_SHARED_LIBS=OFF + -DMANUAL_SUBMODULES=ON + ) + + cmake_src_configure +} + +src_install() { + dodoc utils/conf/wownerod.conf + + find "${BUILD_DIR}/bin/" -type f -executable -print0 | + while IFS= read -r -d '' line; do + dobin "$line" + done +} diff --git a/net-p2p/wownero/wownero-0.9.1.0.ebuild b/net-p2p/wownero/wownero-0.9.1.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake git-r3 + +DESCRIPTION="Privacy-centric meme currency" +HOMEPAGE="https://www.wownero.org https://git.wownero.com/wownero/wownero" +SRC_URI="" +EGIT_REPO_URI="https://git.wownero.com/wownero/wownero.git" +EGIT_COMMIT="v${PV}" + +LICENSE="BSD MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="libressl readline" + +DEPEND=" + dev-libs/boost:=[nls,threads] + dev-libs/libsodium:= + net-dns/unbound:=[threads] + net-libs/czmq:= + !libressl? ( dev-libs/openssl:= ) + libressl? ( dev-libs/libressl:= ) + readline? ( sys-libs/readline:0= )" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +src_configure() { + local mycmakeargs=( + # Monero's liblmdb conflicts with the system liblmdb :( + -DBUILD_SHARED_LIBS=OFF + -DMANUAL_SUBMODULES=ON + ) + + cmake_src_configure +} + +src_install() { + dodoc utils/conf/wownerod.conf + + find "${BUILD_DIR}/bin/" -type f -executable -print0 | + while IFS= read -r -d '' line; do + dobin "$line" + done +} diff --git a/profiles/use.local.desc b/profiles/use.local.desc @@ -0,0 +1,15 @@ +# This file is deprecated as per GLEP 56 in favor of metadata.xml. +# Please add your descriptions to your package's metadata.xml ONLY. +# * generated automatically using pmaint * + +net-misc/feather:xmrig - Enable mining support using a user specified xmrig binary. +net-misc/feather:xmrto - Enable swaps to Bitcoin using xmr.to. +net-misc/feather-wow:xmrig - Enable mining support using a user specified xmrig binary. +net-misc/xmrig:donate - Set the default donation level to 1% instead of 0 +net-misc/xmrig-mo:donate - Enable a default donation value of 1% CPU time instead of 0. +net-misc/xmrig-proxy:http - Enable HTTP server for API. +net-p2p/monero:daemon - Build the Monero daemon used to connect to the P2P network. +net-p2p/monero:hw-wallet - Enable if you want to use a hardware wallet like a Trezor or Ledger. +net-p2p/monero:tools - Build tools used to manipulate the blockchain as it is stored on disk. +net-p2p/monero:wallet-cli - Build the command line wallet, monero-wallet-cli. +net-p2p/monero:wallet-rpc - Build the RPC wallet, monero-wallet-rpc.