net-p2p/xmr-stak: 2.6.0 version bump
authorCraig Andrews <candrews@gentoo.org>
Sun, 18 Nov 2018 03:01:49 +0000 (22:01 -0500)
committerCraig Andrews <candrews@gentoo.org>
Sun, 18 Nov 2018 03:01:49 +0000 (22:01 -0500)
Package-Manager: Portage-2.3.51, Repoman-2.3.12
Signed-off-by: Craig Andrews <candrews@gentoo.org>
net-p2p/xmr-stak/Manifest
net-p2p/xmr-stak/xmr-stak-2.6.0.ebuild [new file with mode: 0644]

index 7cefd1f138a58114750ad6793554a2020f957db4..a7c0a82515059907eca76d0105348f9ed1390990 100644 (file)
@@ -6,3 +6,4 @@ DIST xmr-stak-2.4.7.tar.gz 340026 BLAKE2B c6f898201ee744dea4aebf9bb3541efa7e5b78
 DIST xmr-stak-2.5.0.tar.gz 356770 BLAKE2B faf4fe59b8038e3bdac8941a6bac8939e1244d258ea704df346252bb2b3dc9b82dc5cd3f57afda208253ddfa2be12256ff2d473729403f30c96aabc4ba9c0073 SHA512 11b59e4c11a75c9fdc500f835ce91584d71c128df1efe5170b4cf787897f729a38c4738bb20de52a78dd5d3506e31bb048f8b801cc73a6fefcc045ae0d94ee3d
 DIST xmr-stak-2.5.1.tar.gz 357295 BLAKE2B cbb91144f56abb3bb21d9b56d0e530847081698a90260e9e01f055138ff61a62e939e7546f359ac48afd3fb1d6b1bd7c10dc46c7ae628df02ec6d7a14e73f6dd SHA512 3899476430b50cf697588bce9b8b821c1cb6a5c4c24f0fa31c36030246a8092f6e3f959b8c0548fe26967d49cd0943843a53e49bf7420710382120292f1f2d2e
 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
diff --git a/net-p2p/xmr-stak/xmr-stak-2.6.0.ebuild b/net-p2p/xmr-stak/xmr-stak-2.6.0.ebuild
new file mode 100644 (file)
index 0000000..59442f8
--- /dev/null
@@ -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
+}