net-p2p/xmr-stak: 2.4.6 version bump
authorCraig Andrews <candrews@gentoo.org>
Tue, 17 Jul 2018 13:17:42 +0000 (09:17 -0400)
committerCraig Andrews <candrews@gentoo.org>
Tue, 17 Jul 2018 13:19:22 +0000 (09:19 -0400)
Package-Manager: Portage-2.3.43, Repoman-2.3.10

net-p2p/xmr-stak/Manifest
net-p2p/xmr-stak/xmr-stak-2.4.6.ebuild [new file with mode: 0644]

index 4ad8cfd100d888588a8c03137887303405b5c1f2..7297ca84ca2f46e07cbe921326448e913083bfa9 100644 (file)
@@ -1,3 +1,4 @@
 DIST xmr-stak-2.4.3.tar.gz 335672 BLAKE2B 570fbb86144ba1a283c9a1733476e90caf24dcf0048733007ec189342a0e375f65cca74afb88ca7b08370a7db9a9a7d146f0c9a4a2cd57c480ec5b26928e98fa SHA512 a1e38c25827af8f88c1fdeed0fb3e731e92ac632d846f63dfe6fcb634eec0496e1d64b2745e6dc040dabc55a90963f587442e912c5aa72c9208cebffcc06db7c
 DIST xmr-stak-2.4.4.tar.gz 337845 BLAKE2B d66e650aea8a299ec77c183b321330ca1a3faee11a17046e0d88e8a11bb4649f2305de1287d77f9346071e217762d2e6a44bd26a37173db05ab648ed1e20ba60 SHA512 3cd0bbf2b489458888aa02302a1652093ceae38c085a16441bc2f6e315a82e0e00755544df0c75178a66e567a44e9d7537056b0fa5f3e7c7aee9a13b013c2411
 DIST xmr-stak-2.4.5.tar.gz 338482 BLAKE2B 4f51925d86baab4a7a78803b45264ad731ac51d837e7f84138f4e82e14cd13a57b7f870f6e66f8306a09df0211dd65ca6998bfa1b0a55e97020cb63287b70c9c SHA512 22cb3c97b9e85ec50091e093488256beb484a9bcdd0496185531095c5e64289814873ac659dc0c71d01adccacf1394019aeff33d7fab4e71af3ae65545219f04
+DIST xmr-stak-2.4.6.tar.gz 340081 BLAKE2B 10520af3e696632c938e753acc1bd3a0439b1f240837e60eba0402a2efabc9ae493b85310a3c6ec27c6fca914955546854f12bea915c808e9b809a1b9af83653 SHA512 9f32af76f3043abee0c8bd8a46e239b07459c1ed800fa3afb4db022a9751ce7c8023fb5cbd79564323d2e625796fa6e05203501123de7a83cd9e22da951ccec2
diff --git a/net-p2p/xmr-stak/xmr-stak-2.4.6.ebuild b/net-p2p/xmr-stak/xmr-stak-2.4.6.ebuild
new file mode 100644 (file)
index 0000000..8a521d6
--- /dev/null
@@ -0,0 +1,67 @@
+# Copyright 1999-2018 Gentoo Foundation
+# 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
+}