cryptohaze-combined: not the cleanest install, but it works so I'll clean up later

This commit is contained in:
Zero_Chaos 2012-04-25 23:15:04 +00:00
parent b4c2e5ac7d
commit 6b84caa73d
3 changed files with 71 additions and 4 deletions

View file

@ -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

View file

@ -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
}

View file

@ -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