From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F1FDC138334 for ; Mon, 10 Dec 2018 20:51:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 12827E0869; Mon, 10 Dec 2018 20:51:15 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BD39DE0869 for ; Mon, 10 Dec 2018 20:51:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A1781335C39 for ; Mon, 10 Dec 2018 20:51:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 251463F0 for ; Mon, 10 Dec 2018 20:51:11 +0000 (UTC) From: "Craig Andrews" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Craig Andrews" Message-ID: <1544475054.ccdb4603152effe2154b6db932db922af1346301.candrews@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/xmr-stak/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-p2p/xmr-stak/Manifest net-p2p/xmr-stak/xmr-stak-2.7.1.ebuild X-VCS-Directories: net-p2p/xmr-stak/ X-VCS-Committer: candrews X-VCS-Committer-Name: Craig Andrews X-VCS-Revision: ccdb4603152effe2154b6db932db922af1346301 X-VCS-Branch: master Date: Mon, 10 Dec 2018 20:51:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 313162b3-7d03-467c-a5f5-b3d6ddb6236d X-Archives-Hash: 5b8ed02859abd28b3ce8cb1e360d73ff commit: ccdb4603152effe2154b6db932db922af1346301 Author: Craig Andrews gentoo org> AuthorDate: Mon Dec 10 20:50:00 2018 +0000 Commit: Craig Andrews gentoo org> CommitDate: Mon Dec 10 20:50:54 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccdb4603 net-p2p/xmr-stak: 2.7.1 version bump Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Craig Andrews gentoo.org> net-p2p/xmr-stak/Manifest | 1 + net-p2p/xmr-stak/xmr-stak-2.7.1.ebuild | 67 ++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) diff --git a/net-p2p/xmr-stak/Manifest b/net-p2p/xmr-stak/Manifest index 3cfabaf389e..ff79b5d35b3 100644 --- a/net-p2p/xmr-stak/Manifest +++ b/net-p2p/xmr-stak/Manifest @@ -8,3 +8,4 @@ DIST xmr-stak-2.5.1.tar.gz 357295 BLAKE2B cbb91144f56abb3bb21d9b56d0e53084708169 DIST xmr-stak-2.5.2.tar.gz 357306 BLAKE2B 333011250d2df3a699ec00066b1f2e45182b33b74178579756fb29b553d1d8b5abc171241f9586ef80c2c34ada40fd350046b998a7ac3c6a905b78f5e00facb0 SHA512 d9c1e851588d7e995c11cd02873a49612f862550635afe311a654fb3e0f80c80dec15a99b83e33a6d090d6e32d87f29746291e06effa05df4fc9f2f78c0a6a9c DIST xmr-stak-2.6.0.tar.gz 358899 BLAKE2B adf581dc13c680066e6aa6ff7b4e6f98e07fa5a336e8676f8aca34017359c294289d4ef28b8c9e92a183b71a00c30e693b4d602ef8e1fde888ca217f343d5cfe SHA512 aba471ba7867909815b2c0cb7366949e42a888999686dd3ff69243b6a567793bc0e08e1f8e892c711842ace4a764e2d577393ba9ea4de4c3de1e80cf31d3e70c DIST xmr-stak-2.7.0.tar.gz 376873 BLAKE2B 78dd64acf7fbae46bf150d97b00c8443fbd097789b6e1aef99a954d966b8a75add358c82636621bb8b5639883a6d79b17ba3691e72354034bd944fa1f44d8c1e SHA512 cb56de595225ab22f1c53f1dd971898fcb14610a11d1cbc789e144a5b34f24e56f44fb75bdefc809bde17e434a5e6d02830874b9b825af179cd4699587f5e7c7 +DIST xmr-stak-2.7.1.tar.gz 376919 BLAKE2B bdbd3f7ca522e200db072679f21ee79dc99167cf512f19008ca6b591d0c7ba73f58b68e0d2d7a2622cb88438922e28a4c78e4cbf9d617e28881cc37e1db8c08a SHA512 f33afa259ffde23bd0b5dd8efceadd98e4e176ccabbb68e79eb7cfcc88af9444e897c552e1eea2e3798291309847451ebfa1c44d5310e192014cf6b2aa5eb530 diff --git a/net-p2p/xmr-stak/xmr-stak-2.7.1.ebuild b/net-p2p/xmr-stak/xmr-stak-2.7.1.ebuild new file mode 100644 index 00000000000..59442f8065c --- /dev/null +++ b/net-p2p/xmr-stak/xmr-stak-2.7.1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils systemd + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/fireice-uk/xmr-stak.git" + EGIT_BRANCH="dev" + inherit git-r3 + SRC_URI="" +else + SRC_URI="https://github.com/fireice-uk/xmr-stak/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Unified all-in-one Monero miner" +HOMEPAGE="https://github.com/fireice-uk/xmr-stak" +LICENSE="GPL-3" +SLOT="0" +IUSE="cuda devfee hwloc opencl ssl webserver" + +DEPEND="cuda? ( dev-util/nvidia-cuda-toolkit ) + hwloc? ( sys-apps/hwloc ) + opencl? ( virtual/opencl ) + ssl? ( dev-libs/openssl:0= ) + webserver? ( net-libs/libmicrohttpd )" +RDEPEND="${DEPEND}" + +src_prepare() { + cmake-utils_src_prepare + if ! use devfee; then + sed -i -e 's!fDevDonationLevel = .*;!fDevDonationLevel = 0.0;!' xmrstak/donate-level.hpp || die + fi +} + +src_configure() { + local mycmakeargs=( + -DCUDA_ENABLE=$(usex cuda) + -DHWLOC_ENABLE=$(usex hwloc) + -DMICROHTTPD_ENABLE=$(usex webserver) + -DOpenCL_ENABLE=$(usex opencl) + -DOpenSSL_ENABLE=$(usex ssl) + -DLIBRARY_OUTPUT_PATH=$(get_libdir) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + systemd_newunit "${FILESDIR}"/${PN}-2.3.0.service ${PN}.service + doinitd "${FILESDIR}"/${PN} + dodir /etc/xmr-stak +} + +pkg_postinst() { + if [ ! -e "${ROOT}etc/xmr-stak/main.config" ]; then + ewarn "To use xmr-stack:" + if use cuda || use opencl; then + ewarn "As root or as a user that is a member of the 'video' group," + fi + ewarn "run:" + ewarn "/usr/bin/xmr-stak --cpu /etc/xmr-stak/cpu.config --amd /etc/xmr-stak/amd.config --nvidia /etc/xmr-stak/nvidia.config -c /etc/xmr-stak/main.config -C /etc/xmr-stak/pools.txt" + ewarn "xmr-stak can now be terminated and 'systemctl start xmr-stak' or '/etc/init.d/xmr-stak start' can be used." + fi +}