oclhashcat*: oclhashcat-bin is deprecated, oclhashcat-plus-bin 0.06 doesn't support recent drivers, version bump, huge cleanup, man love

This commit is contained in:
Zero_Chaos 2012-03-12 20:30:07 +00:00
parent dfd7d3a60b
commit 72b758a987
9 changed files with 106 additions and 210 deletions

View file

@ -1,6 +0,0 @@
AUX oclhashcat 44 RMD160 6d34a293a9105023d125c46fa03c0d3fa1f1b08c SHA1 b33b80f37018f968a6fcda60ec126dc1510742c0 SHA256 438795558850278ea4e8940b8e3b671015317d12c8db0b0ca53c581b82fb81ac
DIST oclHashcat-0.23.rar 17626227 RMD160 f976994999084455260d2ac7eb0e817d5d490d11 SHA1 4b7c6236b2db23cc12210c5c0cf136d5d99603f2 SHA256 44ca39632e3a9a4b92f436e9b98bd1930f6956d0039cc03414baf0c29c57f18b
DIST oclHashcat-0.26.7z 2703686 RMD160 484e8ceb59ea863c8545e46b1c7686b7da405a49 SHA1 71d1ef2d2d5f018d9e04f55d50af8d7049fe2a01 SHA256 fe094ffb3e721e9720c71df2777da4863813a3f3130e1e68a5c21baade226cc9
EBUILD oclhashcat-bin-0.23-r1.ebuild 932 RMD160 fe29471edd550a56f910a2829e9bf886ffd70f61 SHA1 b57a9652422fba7b2efb8087772f556da31251a4 SHA256 de7f7fdbbec1c714648849f75ee35bbbb95b30a672ab3d99084f0f2429cf322c
EBUILD oclhashcat-bin-0.25.ebuild 1436 RMD160 6a642bea9ccd29a269556dd83775f3130e7a4cc2 SHA1 57f7ea9396bbe54fe31c3a346f4975515d674d20 SHA256 f244bea2439ce2e0fcf673fb53d589f43e3b32c4bef496ca4371d80a89e1bf51
EBUILD oclhashcat-bin-0.26.ebuild 1041 RMD160 39ba69ed079f184850eba655208675c3a93474fa SHA1 be026d6523e338122b63ab704826f8ea368aac55 SHA256 babb4226be3d22a5637fd7c8283ae52c138decee3e8a794e3e0f0da59cd4d73e

View file

@ -1,4 +0,0 @@
#!/bin/sh
cd /opt/oclhashcat-bin
/bin/bash

View file

@ -1,39 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
MY_P="oclHashcat-${PV}"
inherit eutils pax-utils
DESCRIPTION="An opencl multihash cracker"
HOMEPAGE="http://hashcat.net/oclhashcat/"
SRC_URI="http://hashcat.net/files/${MY_P}.rar"
LICENSE="Artistic"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RESTRICT="fetch mirror"
RDEPEND="|| ( x11-drivers/nvidia-drivers
x11-drivers/ati-drivers )
virtual/opencl-sdk"
DEPEND="${RDEPEND}
app-arch/unrar"
S="${WORKDIR}/${MY_P}"
src_install() {
dodoc example.* batchcrack.sh
rm -rf oclHashcat.exe example.* batchcrack.sh docs
if use x86; then
rm oclHashcat64.bin
pax-mark m oclHashcat32.bin
else
rm oclHashcat32.bin
pax-mark m oclHashcat64.bin
fi
dodir /opt/${PN}
cp -R "${S}"/* "${D}"/opt/${PN} || die "Copy files failed"
dobin "${FILESDIR}/oclhashcat" || die "dobin failed"
chown -R root:0 "${D}"
}

View file

@ -1,51 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
MY_P="oclHashcat-${PV}"
MY_A="${MY_P}".7z
inherit eutils pax-utils
DESCRIPTION="An opencl multihash cracker"
HOMEPAGE="http://hashcat.net/oclhashcat/"
#we have to use a custom downloader because of the wacky download link
SRC_URI=""
LICENSE="Artistic"
SLOT="0"
KEYWORDS="-*"
IUSE=""
RDEPEND="|| ( >=x11-drivers/nvidia-drivers-260
>=x11-drivers/ati-drivers-10.12 )
virtual/opencl-sdk"
DEPEND="${RDEPEND}
app-arch/p7zip"
S="${WORKDIR}/${MY_P}"
src_unpack() {
URL="http://hashcat.net"
UNIQUE=$(curl -A Firefox "$URL/files/${MY_A}" --silent|grep -E '(\?d=.*)'|cut -d'"' -f2)
UAGENT="Please stop making my life harder than it needs to be and allow people to download your work without jumping through mindless hoops."
addwrite "${PORTAGE_ACTUAL_DISTDIR}"
wget -U "${UAGENT}" $URL/files/${MY_A}$UNIQUE -O "${PORTAGE_ACTUAL_DISTDIR}"/${MY_A} || die
ln -s "${PORTAGE_ACTUAL_DISTDIR}"/${MY_A} /"${WORKDIR}"/${MY_A} || die
unpack "./${MY_A}"
}
src_install() {
dodoc *Example.* docs
rm -rf *.exe *Example.* docs
if use x86; then
rm oclHashcat64.bin
pax-mark m oclHashcat32.bin
else
rm oclHashcat32.bin
pax-mark m oclHashcat64.bin
fi
insinto /opt/${PN}
doins -r "${S}"/* /opt/${PN} || die "Copy files failed"
dobin "${FILESDIR}"/oclhashcat || die "dobin failed"
chown -R root:0 "${D}"
}

View file

@ -1,48 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
MY_P="oclHashcat-${PV}"
MY_A="${MY_P}".7z
inherit eutils pax-utils
DESCRIPTION="An opencl multihash cracker"
HOMEPAGE="http://hashcat.net/oclhashcat/"
SRC_URI="http://hashcat.net/files/${MY_A}"
LICENSE="Artistic"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="|| ( >=x11-drivers/nvidia-drivers-260
>=x11-drivers/ati-drivers-10.12 )
virtual/opencl-sdk"
DEPEND="${RDEPEND}
app-arch/p7zip"
S="${WORKDIR}/${MY_P}"
RESTRICT="strip binchecks"
src_install() {
dodoc *Example.* docs/*
rm -rf *.exe *Example.* docs
if use x86; then
rm oclHashcat64.bin
rm cudaHashcat64.bin
pax-mark m oclHashcat32.bin
pax-mark m cudaHashcat32.bin
else
rm oclHashcat32.bin
rm cudaHashcat32.bin
pax-mark m oclHashcat64.bin
pax-mark m cudaHashcat64.bin
fi
insinto /opt/${PN}
doins -r "${S}"/* || die "Copy files failed"
dobin "${FILESDIR}"/oclhashcat || die "dobin failed"
chown -R root:0 "${D}"
}

View file

@ -1,3 +1,3 @@
AUX oclhashcat-plus 154 RMD160 d33d17ffa92c8d7b5703bbfb11c35cdd2a84c745 SHA1 6506fd86e3b0764d120c13ce7029b61f2184a49b SHA256 5a8d0b4fd89c016de1842114c23146f3e5877007a0dddba13416e446151fbadb
DIST oclHashcat-plus-0.06.7z 8589187 RMD160 a63ce7d3027aa41d0da205771bbfd43dd6b09353 SHA1 c2d8de6f2313ead227f5608dcb25cfd2abfdcc7b SHA256 16202639d6c25483fc007261064759176b375ea82302ddc9fe653bef7541bc6e
EBUILD oclhashcat-plus-bin-0.06.ebuild 1209 RMD160 66450c1e51b901077315dd545f53d68161ca849e SHA1 605a979e20f4e8e2105dc1b7a7278ba3e2c5ff63 SHA256 6e8d5eb540732c785236d9157d630d61ca860f6523675d0239c40071ee388d06
DIST oclHashcat-plus-0.07.7z 19121359 RMD160 6c547a38212850d7397ce918d04810f52fc19643 SHA1 3c9ccecac7c8207fc8fc4efafdb68a20884dabd5 SHA256 fac1e97180bae8576a9c8273b25f5482e30ad1617b293cbfed114ed0f7a71fe6
DIST oclHashcat-plus-0.071.7z 204204 RMD160 9ac411993990432cfaeed731c78307692475be7c SHA1 fe83d09a3e8c52c215ad3074291cfb272cf07dda SHA256 7b23796e7153f0348777b9bc966cf1f485d786b23e32e3a26315ce454dbeeccf
EBUILD oclhashcat-plus-bin-0.071.ebuild 3292 RMD160 576b53bf439568d4f3c4236ec571191877c044eb SHA1 9c0277ce613afb6a951bff78fa6cba014137d80a SHA256 c02831f3ac5209bc1142cc23580b4f5a6d7b24e43d60784633cef6953a543bf7

View file

@ -1,5 +0,0 @@
#!/bin/sh
echo "You might want to go to /opt/oclhashcat-plus-bin directory and examine one of following commands:"
echo
ls /opt/oclhashcat-plus-bin/*.sh

View file

@ -1,54 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
MY_P="oclHashcat-plus-${PV}"
MY_A="${MY_P}".7z
inherit eutils pax-utils
DESCRIPTION="An opencl multihash cracker"
HOMEPAGE="http://hashcat.net/oclhashcat-plus/"
SRC_URI="http://hashcat.net/files/${MY_A}"
LICENSE="Artistic"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE_VIDEO_CARDS="video_cards_fglrx
video_cards_nvidia"
IUSE="opencl ${IUSE_VIDEO_CARDS}"
RDEPEND="
video_cards_nvidia? ( >=x11-drivers/nvidia-drivers-260 )
video_cards_fglrx? ( >=x11-drivers/ati-drivers-10.12 )
opencl? ( virtual/opencl-sdk )"
DEPEND="${RDEPEND}
app-arch/p7zip
"
S="${WORKDIR}/${MY_P}"
RESTRICT="strip binchecks"
src_install() {
dodoc docs/*
rm -rf *.exe docs
if use x86; then
rm oclHashcat-plus64.bin
rm cudaHashcat-plus64.bin
pax-mark m oclHashcat-plus32.bin
pax-mark m cudaHashcat-plus32.bin
else
rm oclHashcat-plus32.bin
rm cudaHashcat-plus32.bin
pax-mark m oclHashcat-plus64.bin
pax-mark m cudaHashcat-plus64.bin
fi
insinto /opt/${PN}
doins -r "${S}"/* || die "Copy files failed"
dobin "${FILESDIR}"/oclhashcat-plus || die "dobin failed"
chown -R root:0 "${D}"
}

View file

@ -0,0 +1,103 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
MY_P="oclHashcat-plus-${PV}"
inherit eutils pax-utils
DESCRIPTION="An opencl multihash cracker"
HOMEPAGE="http://hashcat.net/oclhashcat-plus/"
SRC_URI="http://hashcat.net/files/oclHashcat-plus-0.07.7z \
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}"
S="${WORKDIR}/oclHashcat-plus-0.07"
RESTRICT="strip binchecks"
src_prepare() {
#here we combine the 0.07 and the 0.071 patch
mv -f "${WORKDIR}"/*.bin "${S}"
rm -rf ${WORKDIR}/*.exe
}
src_install() {
dodoc docs/*
rm -rf *.exe docs
if use x86; then
rm oclHashcat-plus64.bin
rm cudaHashcat-plus64.bin
rm kernels/4098/*64* kernels/4318/*64*
pax-mark m oclHashcat-plus32.bin
pax-mark m cudaHashcat-plus32.bin
else
rm oclHashcat-plus32.bin
rm cudaHashcat-plus32.bin
rm kernels/4098/*32* kernels/4318/*32*
pax-mark m oclHashcat-plus64.bin
pax-mark m cudaHashcat-plus64.bin
fi
if ! use video_cards_fglrx; then
rm -rf kernels/4098
fi
if ! use video_cards_nvidia; then
rm -rf kernels/4318
fi
#already in aircrack-ng
rm -rf contrib/aircrack-ng_r1959
insinto /opt/${PN}
doins -r "${S}"/* || die "Copy files failed"
dodir /usr/bin
cd "${ED}/opt/oclHashcat-plus-bin/"
echo '#! /bin/sh' > "${ED}"/usr/bin/oclhashcat-plus
echo 'echo "oclHashcat-plus and all related files have been installed in /opt/oclhashcat-plus-bin"' >> "${ED}"/usr/bin/oclhashcat-plus
echo 'echo "Please run one of the following binaries to use gpu accelerated hashcat:"' >> "${ED}"/usr/bin/oclhashcat-plus
if [ -f "${ED}"/opt/oclhashcat-plus-bin/oclHashcat-plus64.bin ]
then
echo '64 bit ATI accelerated "oclHashcat-plus64.bin"' >> "${ED}"/usr/bin/oclhashcat-plus
fperms +x /opt/oclhashcat-plus-bin/oclHashcat-plus64.bin
dosym /opt/oclhashcat-plus-bin/oclHashcat-plus64.bin /usr/bin/oclHashcat-plus64.bin
fi
if [ -f "${ED}"/opt/oclhashcat-plus-bin/oclHashcat-plus32.bin ]
then
echo '32 bit ATI accelerated "oclHashcat-plus32.bin"' >> "${ED}"/usr/bin/oclhashcat-plus
fperms +x /opt/oclhashcat-plus-bin/oclHashcat-plus32.bin
dosym /opt/oclhashcat-plus-bin/oclHashcat-plus32.bin /usr/bin/oclHashcat-plus32.bin
fi
if [ -f "${ED}"/opt/oclhashcat-plus-bin/cudaHashcat-plus64.bin ]
then
echo '64 bit NVIDIA accelerated "cudaHashcat-plus64.bin"' >> "${ED}"/usr/bin/oclhashcat-plus
fperms +x /opt/oclhashcat-plus-bin/cudaHashcat-plus64.bin
dosym /opt/oclhashcat-plus-bin/cudaHashcat-plus64.bin /usr/bin/cudaHashcat-plus64.bin
fi
if [ -f "${ED}"/opt/oclhashcat-plus-bin/cudaHashcat-plus32.bin ]
then
echo '32 bit NVIDIA accelerated "cudaHashcat-plus32.bin"' >> "${ED}"/usr/bin/oclhashcat-plus
fperms +x /opt/oclhashcat-plus-bin/cudaHashcat-plus32.bin
dosym /opt/oclhashcat-plus-bin/cudaHashcat-plus32.bin /usr/bin/cudaHashcat-plus32.bin
fi
fperms +x /usr/bin/oclhashcat-plus
fowners -R root:root "${ED}"
}