mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-21 22:30:59 +02:00
cuda-rarcrypt: updated for nvidia-cuda-sdk-3 but it won't build on my system, no idea what's up
This commit is contained in:
parent
2d3545a5ef
commit
3fa191afb0
6 changed files with 83 additions and 38 deletions
|
|
@ -1,3 +1,6 @@
|
|||
AUX cuda-rarcrypt-path.patch 581 RMD160 4d40b1bf8f62f6f88cf3d84c8d87416517bd7578 SHA1 29c8f47ebbf95f9ad36a523869bb53cc6d2d772e SHA256 99a67c9c6c59c1f256c77018450b20b01f0f763f63011416a4fbcdf102519343
|
||||
AUX cuda-sdk-2.2.patch 394 RMD160 b75b96403446bcef7f82409eff02736aa9a72cfe SHA1 9460bb1084630de6ba74955f3e5ad49ecb50e29b SHA256 762cbe26291218c839741846477e4df8191f23a6fcd534870cf39b2cbc088798
|
||||
AUX cuda-sdk-2.3.patch 396 RMD160 6b2492a3c034dee63aa4559940824c731859486b SHA1 f2b36f2b5cd29cf42ebae25a18559a51b02c72d4 SHA256 d569a3a66b760ef00db357d7b56e48cea173ef8c65e1e1b3a97c89d287eb2a5e
|
||||
AUX cuda-sdk-3.0.patch 396 RMD160 40155c3b8e006feea8d29100ee86503d5a1f5592 SHA1 aaaf09a6966b26ae2701383d99b3c707ee8f47e2 SHA256 37ba5137bad3ccae489aef0493aeb9dcfdb50e9466be2be00b2992afb88ca4fa
|
||||
AUX makefile-fixes.patch 381 RMD160 0d6e85b7f78568dc89037f0d40aa3bd73b571429 SHA1 902dcce55aa5a71685892c4631a2a85451d2f7ac SHA256 76d68a00a93603b9b4a573906f0714d8623a232755523ec5e80ccf8414119c75
|
||||
DIST Cuda-OpenSrc.rar 30751 RMD160 b654007b906a74cc55d52557b0c7f44021e92c54 SHA1 f884482b52c84904f14fcb88363e9225ed160aac SHA256 0fceee3e7e521d6e02ddcfcd4756b07ec6bbc728c2ece0eca449d6d6974d3d50
|
||||
EBUILD cuda-rarcrypt-3.2.ebuild 610 RMD160 d91dcf8789a93571ba2902101117154fcdf7a425 SHA1 8a9930bbc6b7dd9ed46ccfac30eb421b88a9a2a5 SHA256 072976ab82d32934b4a5000f67f9644abd67b0abdba7d72dc1083c7465312a0d
|
||||
EBUILD cuda-rarcrypt-3.2-r1.ebuild 1231 RMD160 c8292996401ac05fd71691dbc539e736f49743bb SHA1 e354ae6a229b797d77ac404d3003c9c1f948cc33 SHA256 3b375faf3dad44a6cc47e4abf3d4df486bb6e4768e7bf62ff2ad0200f6d13438
|
||||
|
|
|
|||
54
app-crypt/cuda-rarcrypt/cuda-rarcrypt-3.2-r1.ebuild
Normal file
54
app-crypt/cuda-rarcrypt/cuda-rarcrypt-3.2-r1.ebuild
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
inherit eutils
|
||||
|
||||
EAPI=2
|
||||
|
||||
DESCRIPTION="A Nvidia GPU-based RAR bruteforcer"
|
||||
HOMEPAGE="http://www.crark.net/"
|
||||
SRC_URI="http://www.crark.net/Cuda-OpenSrc.rar"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="-*"
|
||||
#was "x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-util/nvidia-cuda-sdk
|
||||
app-arch/unrar"
|
||||
RDEPEND="x11-drivers/nvidia-drivers"
|
||||
S="${WORKDIR}/"
|
||||
|
||||
pkg_setup() {
|
||||
if [ -e "${ROOT}"/opt/cuda/sdk/common/common.mk ]; then
|
||||
export CUDAVERSION="2.2"
|
||||
elif [ -e "${ROOT}"/opt/cuda/sdk/C/common/common.mk ]; then
|
||||
export CUDAVERSION="2.3"
|
||||
elif [ -e "${ROOT}"/opt/cuda/sdk/C/shared/common.mk ]; then
|
||||
export CUDAVERSION="3.0"
|
||||
else
|
||||
die "Something failed to detect the CUDA SDK version properly"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/makefile-fixes.patch
|
||||
|
||||
case ${CUDAVERSION} in
|
||||
2.2) epatch "${FILESDIR}"/cuda-sdk-2.2.patch ;;
|
||||
2.3) epatch "${FILESDIR}"/cuda-sdk-2.3.patch ;;
|
||||
3.0) epatch "${FILESDIR}"/cuda-sdk-3.0.patch ;;
|
||||
*) die "Why is CUDAVERSION set to $CUDAVERSION?"
|
||||
esac
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/linux/release/cuda-rarcrypt || die "dobin failed"
|
||||
dodoc readme
|
||||
}
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
inherit eutils
|
||||
DESCRIPTION="A Nvidia GPU-based RAR bruteforcer"
|
||||
HOMEPAGE="http://www.crark.net/"
|
||||
SRC_URI="http://www.crark.net/Cuda-OpenSrc.rar"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-util/nvidia-cuda-sdk
|
||||
app-arch/unrar"
|
||||
RDEPEND="x11-drivers/nvidia-drivers"
|
||||
S="${WORKDIR}/"
|
||||
|
||||
src_compile() {
|
||||
epatch "${FILESDIR}/cuda-rarcrypt-path.patch"
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/linux/release/cuda-rarcrypt || die "dobin failed"
|
||||
dodoc readme
|
||||
}
|
||||
|
|
@ -1,14 +1,6 @@
|
|||
diff -Naur cuda-rarcrypt.orig/Makefile cuda-rarcrypt/Makefile
|
||||
--- cuda-rarcrypt.orig/Makefile 2009-04-28 12:50:15.000000000 +0000
|
||||
+++ cuda-rarcrypt/Makefile 2009-06-04 20:01:55.000000000 +0000
|
||||
@@ -1,5 +1,6 @@
|
||||
# Add source files here
|
||||
-EXECUTABLE := rarcrypt
|
||||
+ROOTBINDIR :=./bin
|
||||
+EXECUTABLE := cuda-rarcrypt
|
||||
|
||||
# CUDA source files (compiled with cudacc)
|
||||
CUFILES := rarcrypt.cu
|
||||
@@ -22,7 +23,7 @@
|
||||
################################################################################
|
||||
# Rules and targets
|
||||
12
app-crypt/cuda-rarcrypt/files/cuda-sdk-2.3.patch
Normal file
12
app-crypt/cuda-rarcrypt/files/cuda-sdk-2.3.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
diff -Naur cuda-rarcrypt.orig/Makefile cuda-rarcrypt/Makefile
|
||||
--- cuda-rarcrypt.orig/Makefile 2009-04-28 12:50:15.000000000 +0000
|
||||
+++ cuda-rarcrypt/Makefile 2009-06-04 20:01:55.000000000 +0000
|
||||
@@ -22,7 +23,7 @@
|
||||
################################################################################
|
||||
# Rules and targets
|
||||
|
||||
-include ../../common/common.mk
|
||||
+include /opt/cuda/sdk/C/common/common.mk
|
||||
|
||||
|
||||
|
||||
12
app-crypt/cuda-rarcrypt/files/cuda-sdk-3.0.patch
Normal file
12
app-crypt/cuda-rarcrypt/files/cuda-sdk-3.0.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
diff -Naur cuda-rarcrypt.orig/Makefile cuda-rarcrypt/Makefile
|
||||
--- cuda-rarcrypt.orig/Makefile 2009-04-28 12:50:15.000000000 +0000
|
||||
+++ cuda-rarcrypt/Makefile 2009-06-04 20:01:55.000000000 +0000
|
||||
@@ -22,7 +23,7 @@
|
||||
################################################################################
|
||||
# Rules and targets
|
||||
|
||||
-include ../../common/common.mk
|
||||
+include /opt/cuda/sdk/C/shared/common.mk
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in a new issue