oclhashcat-lite: and now we add the one hash version of oclhashcat-plus

This commit is contained in:
Zero_Chaos 2012-03-12 21:58:13 +00:00
parent 83e2db4ea8
commit affc1149be
2 changed files with 95 additions and 0 deletions

View file

@ -0,0 +1,2 @@
DIST oclHashcat-lite-0.09.7z 2413173 RMD160 2120baf2b225960032066f2b04dee07bfccf73d3 SHA1 c8ac1efbab062f8fdfe6b81f572595392d6e6e00 SHA256 a95f18a37103d8b0cc25c60f9e665317d622d78b5de46219a372f77c6828c7b9
EBUILD oclhashcat-lite-bin-0.09.ebuild 3025 RMD160 8dbcdbdfd21d812671e5b733b718adcd5e6ddbb6 SHA1 68e1384be2749a357bb8d41bf2e64bc2f88e87e0 SHA256 5b71ba0394244bd034b39b4b63fa3f90fd7f2b22386be80a5349ae93ed6888c9

View file

@ -0,0 +1,93 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
MY_P="oclHashcat-lite-${PV}"
inherit eutils pax-utils
DESCRIPTION="An opencl hash cracker"
HOMEPAGE="http://hashcat.net/oclhashcat-lite/"
SRC_URI="http://hashcat.net/files/${MY_P}.7z"
LICENSE="Artistic"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE_VIDEO_CARDS="video_cards_fglrx
video_cards_nvidia"
IUSE="${IUSE_VIDEO_CARDS}"
#without the 0.071 patch nvidia should be =275.43
RDEPEND="
video_cards_nvidia? ( >=x11-drivers/nvidia-drivers-275.43 )
video_cards_fglrx? ( >=x11-drivers/ati-drivers-12.2 )"
DEPEND="${RDEPEND}
app-arch/p7zip"
S="${WORKDIR}/${MY_P}"
RESTRICT="strip binchecks"
src_install() {
#handle docs
dodoc docs/*
rm -rf *.exe docs
#remove everything we don't need based on use flags
if use x86; then
rm oclHashcat-lite64.bin
rm cudaHashcat-lite64.bin
rm kernels/4098/*64* kernels/4318/*64*
else
rm oclHashcat-lite32.bin
rm cudaHashcat-lite32.bin
rm kernels/4098/*32* kernels/4318/*32*
fi
if ! use video_cards_fglrx; then
rm -rf kernels/4098
rm -rf oclHashcat-*.bin
fi
if ! use video_cards_nvidia; then
rm -rf kernels/4318
rm -rf cudaHashcat-*.bin
fi
pax-mark m *Hashcat*.bin
insinto /opt/${PN}
doins -r "${S}"/* || die "Copy files failed"
dodir /usr/bin
cd "${ED}/opt/oclhashcat-lite-bin/"
echo '#! /bin/sh' > "${ED}"/usr/bin/oclhashcat-lite
echo 'echo "oclHashcat-lite and all related files have been installed in /opt/oclhashcat-lite-bin"' >> "${ED}"/usr/bin/oclhashcat-lite
echo 'echo "Please run one of the following binaries to use gpu accelerated hashcat:"' >> "${ED}"/usr/bin/oclhashcat-lite
if [ -f "${ED}"/opt/oclhashcat-lite-bin/oclHashcat-lite64.bin ]
then
echo 'echo "64 bit ATI accelerated \"oclHashcat-lite64.bin\""' >> "${ED}"/usr/bin/oclhashcat-lite
fperms +x /opt/oclhashcat-lite-bin/oclHashcat-lite64.bin
dosym /opt/oclhashcat-lite-bin/oclHashcat-lite64.bin /usr/bin/oclHashcat-lite64.bin
fi
if [ -f "${ED}"/opt/oclhashcat-lite-bin/oclHashcat-lite32.bin ]
then
echo 'echo "32 bit ATI accelerated \"oclHashcat-lite32.bin\""' >> "${ED}"/usr/bin/oclhashcat-lite
fperms +x /opt/oclhashcat-lite-bin/oclHashcat-lite32.bin
dosym /opt/oclhashcat-lite-bin/oclHashcat-lite32.bin /usr/bin/oclHashcat-lite32.bin
fi
if [ -f "${ED}"/opt/oclhashcat-lite-bin/cudaHashcat-lite64.bin ]
then
echo 'echo "64 bit NVIDIA accelerated \"cudaHashcat-lite64.bin\""' >> "${ED}"/usr/bin/oclhashcat-lite
fperms +x /opt/oclhashcat-lite-bin/cudaHashcat-lite64.bin
dosym /opt/oclhashcat-lite-bin/cudaHashcat-lite64.bin /usr/bin/cudaHashcat-lite64.bin
fi
if [ -f "${ED}"/opt/oclhashcat-lite-bin/cudaHashcat-lite32.bin ]
then
echo 'echo "32 bit NVIDIA accelerated \"cudaHashcat-lite32.bin\""' >> "${ED}"/usr/bin/oclhashcat-lite
fperms +x /opt/oclhashcat-lite-bin/cudaHashcat-lite32.bin
dosym /opt/oclhashcat-lite-bin/cudaHashcat-lite32.bin /usr/bin/cudaHashcat-lite32.bin
fi
fperms +x /usr/bin/oclhashcat-lite
}