diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-04-22 14:25:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-04-22 14:25:03 +0100 |
commit | 5e8702bcbbed438e6c6cce023e7ef0cc9baa3e02 (patch) | |
tree | b041acef19bb9ae66c228d5c9d34d1e00aeb2b95 /net-p2p/xmr-stak/files | |
parent | 5cfef3c94cd7e82136c69a0322f5ba21f7e64632 (diff) |
gentoo resync : 22.04.2018
Diffstat (limited to 'net-p2p/xmr-stak/files')
-rw-r--r-- | net-p2p/xmr-stak/files/xmr-stak-2.4.2-fix-paths.patch | 68 | ||||
-rw-r--r-- | net-p2p/xmr-stak/files/xmr-stak.service | 32 |
2 files changed, 0 insertions, 100 deletions
diff --git a/net-p2p/xmr-stak/files/xmr-stak-2.4.2-fix-paths.patch b/net-p2p/xmr-stak/files/xmr-stak-2.4.2-fix-paths.patch deleted file mode 100644 index cd71554b3770..000000000000 --- a/net-p2p/xmr-stak/files/xmr-stak-2.4.2-fix-paths.patch +++ /dev/null @@ -1,68 +0,0 @@ -From 3bbf91be9f510ef999c62ae2d42a094d271299b7 Mon Sep 17 00:00:00 2001 -From: Craig Andrews <candrews@integralblue.com> -Date: Fri, 6 Apr 2018 14:56:44 -0400 -Subject: [PATCH 1/2] Use EXECUTABLE_OUTPUT_PATH and LIBRARY_OUTPUT_PATH - -Use EXECUTABLE_OUTPUT_PATH and LIBRARY_OUTPUT_PATH to control the path to which the executable and libraries are installed. ---- - CMakeLists.txt | 10 +++++----- - 1 file changed, 5 insertions(+), 5 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 15a2684c..66c2f6f8 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -535,23 +535,23 @@ target_link_libraries(xmr-stak ${LIBS} xmr-stak-c xmr-stak-backend) - # do not install the binary if the project and install are equal - if( NOT CMAKE_INSTALL_PREFIX STREQUAL PROJECT_BINARY_DIR ) - install(TARGETS xmr-stak -- RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") -+ RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/${EXECUTABLE_OUTPUT_PATH}") - if(CUDA_FOUND) - if(WIN32) - install(TARGETS xmrstak_cuda_backend -- RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") -+ RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/${LIBRARY_OUTPUT_PATH}") - else() - install(TARGETS xmrstak_cuda_backend -- LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") -+ LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/${LIBRARY_OUTPUT_PATH}") - endif() - endif() - if(OpenCL_FOUND) - if(WIN32) - install(TARGETS xmrstak_opencl_backend -- RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") -+ RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/${LIBRARY_OUTPUT_PATH}") - else() - install(TARGETS xmrstak_opencl_backend -- LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") -+ LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/${LIBRARY_OUTPUT_PATH}") - endif() - endif() - else() - -From c1d907ee03795fdce80daba6395e2a7eb1333930 Mon Sep 17 00:00:00 2001 -From: Craig Andrews <candrews@integralblue.com> -Date: Fri, 6 Apr 2018 15:11:07 -0400 -Subject: [PATCH 2/2] Allow EXECUTABLE and LIBRARY paths to be set - ---- - CMakeLists.txt | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 66c2f6f8..1ff7fbb4 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -522,8 +522,8 @@ else() - add_executable(xmr-stak ${SRCFILES_CPP}) - endif() - --set(EXECUTABLE_OUTPUT_PATH "bin") --set(LIBRARY_OUTPUT_PATH "bin") -+set(EXECUTABLE_OUTPUT_PATH "bin" CACHE STRING "Path to place executables") -+set(LIBRARY_OUTPUT_PATH "bin" CACHE STRING "Path to place libraries") - - target_link_libraries(xmr-stak ${LIBS} xmr-stak-c xmr-stak-backend) - diff --git a/net-p2p/xmr-stak/files/xmr-stak.service b/net-p2p/xmr-stak/files/xmr-stak.service deleted file mode 100644 index 00f63c0dcd96..000000000000 --- a/net-p2p/xmr-stak/files/xmr-stak.service +++ /dev/null @@ -1,32 +0,0 @@ -[Unit] -Description=Unified all-in-one Monero miner -After=network-online.target -AssertFileNotEmpty=/etc/xmr-stak/main.config - -[Service] -Environment=GPU_FORCE_64BIT_PTR=1 -Environment=GPU_MAX_HEAP_SIZE=100 -Environment=GPU_USE_SYNC_OBJECTS=1 -Environment=GPU_MAX_ALLOC_PERCENT=100 -Environment=GPU_SINGLE_ALLOC_PERCENT=100 -ExecStart=/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 -DynamicUser=true -Group=video -CPUSchedulingPolicy=idle -PrivateTmp=true -ProtectHome=true -ProtectSystem=strict -NoNewPrivileges=true -CapabilityBoundingSet= -MemoryDenyWriteExecute=true -ProtectKernelModules=true -ProtectKernelTunables=true -ProtectControlGroups=true -RestrictRealtime=true -RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX -RestrictNamespaces=true -PrivateUsers=true -ConfigurationDirectory=xmr-stak - -[Install] -WantedBy=multi-user.target |