From 6b84caa73d0dc9e239e19e8e9565d64573abd5e2 Mon Sep 17 00:00:00 2001 From: Zero_Chaos Date: Wed, 25 Apr 2012 23:15:04 +0000 Subject: [PATCH] cryptohaze-combined: not the cleanest install, but it works so I'll clean up later --- app-crypt/cryptohaze-combined/Manifest | 5 +- .../cryptohaze-combined-1.31.ebuild | 56 +++++++++++++++++++ .../cryptohaze-combined-9999.ebuild | 14 ++++- 3 files changed, 71 insertions(+), 4 deletions(-) create mode 100644 app-crypt/cryptohaze-combined/cryptohaze-combined-1.31.ebuild diff --git a/app-crypt/cryptohaze-combined/Manifest b/app-crypt/cryptohaze-combined/Manifest index 3a898052f..dfa77dd80 100644 --- a/app-crypt/cryptohaze-combined/Manifest +++ b/app-crypt/cryptohaze-combined/Manifest @@ -1 +1,4 @@ -EBUILD cryptohaze-combined-9999.ebuild 1411 RMD160 4174c261891ff51be84b4237b03e4255cdb7a5f1 SHA1 b218a0b6c9d956046902d557de659a00e3119ff4 SHA256 e7d5c459bc153a86e0fa3adaa3a893a31b191311632d12900cc7d909a2b2fe7e +DIST Cryptohaze-Src_1_31.tar.bz2 5536082 RMD160 ab68f3554c784e9bf8a3f4526b5272c3b5c80f44 SHA1 8357afabcbe02e0ee7b239fa3b1bc24b03d219a8 SHA256 7fe5b3207c66cb46f60ec439f6d5d4af3efa4a42f16657e72a3b187c214d1139 +EBUILD cryptohaze-combined-1.31.ebuild 1602 RMD160 4245a2b2dde058d41ef80fa6642521a2d0ab981d SHA1 c93d5f15c7a90dc7ba89ac429b07bb0f0ff06a4f SHA256 c610b431bf91e3b69f09edf9aa44e029b758826a6e1a8cdd91bb07324bfe8b30 +EBUILD cryptohaze-combined-9999.ebuild 1602 RMD160 4245a2b2dde058d41ef80fa6642521a2d0ab981d SHA1 c93d5f15c7a90dc7ba89ac429b07bb0f0ff06a4f SHA256 c610b431bf91e3b69f09edf9aa44e029b758826a6e1a8cdd91bb07324bfe8b30 +MISC Cryptohaze-Src_1_31.tar.bz2 5536082 RMD160 ab68f3554c784e9bf8a3f4526b5272c3b5c80f44 SHA1 8357afabcbe02e0ee7b239fa3b1bc24b03d219a8 SHA256 7fe5b3207c66cb46f60ec439f6d5d4af3efa4a42f16657e72a3b187c214d1139 diff --git a/app-crypt/cryptohaze-combined/cryptohaze-combined-1.31.ebuild b/app-crypt/cryptohaze-combined/cryptohaze-combined-1.31.ebuild new file mode 100644 index 000000000..7906e3ee8 --- /dev/null +++ b/app-crypt/cryptohaze-combined/cryptohaze-combined-1.31.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +if [[ ${PV} == "9999" ]] ; then + inherit subversion + KEYWORDS="-*" + ESVN_REPO_URI="https://cryptohaze.svn.sourceforge.net/svnroot/cryptohaze/Cryptohaze-Combined" +else + KEYWORDS="~amd64" + MY_PV=${PV/\./_} + SRC_URI="mirror://sourceforge/cryptohaze/Cryptohaze-Src_${MY_PV}.tar.bz2" +fi + +EAPI=4 + +DESCRIPTION="GPU and OpenCL accelerated password auditing tools for security professionals" +HOMEPAGE="http://www.cryptohaze.com/" + +LICENSE="" +SLOT="0" +IUSE="+grt +multiforcer" + +DEPEND="dev-libs/argtable + net-misc/curl + dev-libs/protobuf + dev-util/nvidia-cuda-sdk[pentoo] + >=dev-libs/boost-1.47.0" +RDEPEND="${DEPEND}" + +#required for new cmake build system which seems broken and unusable +#export NVSDKCUDA_ROOT=/opt/cuda/sdk/C + +S="${WORKDIR}"/Cryptohaze-Combined + +src_compile() { + use grt && emake -j1 CUDA_INSTALL_PATH=/opt/cuda CUDA_SDK_INSTALL_PATH=/opt/cuda/sdk grt + use multiforcer && emake -j1 CUDA_INSTALL_PATH=/opt/cuda CUDA_SDK_INSTALL_PATH=/opt/cuda/sdk multiforcer +} + +src_install() { + dodir /opt/${PN} + cp -R "${S}"/binaries/* "${ED}"/opt/${PN} + dodir /usr/bin + for i in $(ls -1 /opt/${PN}) + do + if [ "${i}" != "kernels" ] + then + echo '#! /bin/sh' > "${ED}"/usr/bin/${i} + echo "cd /opt/${PN}" >> "${ED}"/usr/bin/${i} + echo 'echo "Warning: running from $(pwd) so be careful of relative paths."' >> "${ED}"/usr/bin/${i} + echo "./${i} $@" >> "${ED}"/usr/bin/${i} + fperms +x /usr/bin/${i} + fi + done +} diff --git a/app-crypt/cryptohaze-combined/cryptohaze-combined-9999.ebuild b/app-crypt/cryptohaze-combined/cryptohaze-combined-9999.ebuild index 5bf8ce4b2..7906e3ee8 100644 --- a/app-crypt/cryptohaze-combined/cryptohaze-combined-9999.ebuild +++ b/app-crypt/cryptohaze-combined/cryptohaze-combined-9999.ebuild @@ -2,17 +2,23 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: $ -inherit subversion +if [[ ${PV} == "9999" ]] ; then + inherit subversion + KEYWORDS="-*" + ESVN_REPO_URI="https://cryptohaze.svn.sourceforge.net/svnroot/cryptohaze/Cryptohaze-Combined" +else + KEYWORDS="~amd64" + MY_PV=${PV/\./_} + SRC_URI="mirror://sourceforge/cryptohaze/Cryptohaze-Src_${MY_PV}.tar.bz2" +fi EAPI=4 DESCRIPTION="GPU and OpenCL accelerated password auditing tools for security professionals" HOMEPAGE="http://www.cryptohaze.com/" -ESVN_REPO_URI="https://cryptohaze.svn.sourceforge.net/svnroot/cryptohaze/Cryptohaze-Combined" LICENSE="" SLOT="0" -KEYWORDS="-*" IUSE="+grt +multiforcer" DEPEND="dev-libs/argtable @@ -25,6 +31,8 @@ RDEPEND="${DEPEND}" #required for new cmake build system which seems broken and unusable #export NVSDKCUDA_ROOT=/opt/cuda/sdk/C +S="${WORKDIR}"/Cryptohaze-Combined + src_compile() { use grt && emake -j1 CUDA_INSTALL_PATH=/opt/cuda CUDA_SDK_INSTALL_PATH=/opt/cuda/sdk grt use multiforcer && emake -j1 CUDA_INSTALL_PATH=/opt/cuda CUDA_SDK_INSTALL_PATH=/opt/cuda/sdk multiforcer