From 72b758a98780a862a2b2a4fe515bcfced624e2a7 Mon Sep 17 00:00:00 2001 From: Zero_Chaos Date: Mon, 12 Mar 2012 20:30:07 +0000 Subject: [PATCH] oclhashcat*: oclhashcat-bin is deprecated, oclhashcat-plus-bin 0.06 doesn't support recent drivers, version bump, huge cleanup, man love --- app-crypt/oclhashcat-bin/Manifest | 6 - app-crypt/oclhashcat-bin/files/oclhashcat | 4 - .../oclhashcat-bin-0.23-r1.ebuild | 39 ------- .../oclhashcat-bin/oclhashcat-bin-0.25.ebuild | 51 --------- .../oclhashcat-bin/oclhashcat-bin-0.26.ebuild | 48 -------- app-crypt/oclhashcat-plus-bin/Manifest | 6 +- .../oclhashcat-plus-bin/files/oclhashcat-plus | 5 - .../oclhashcat-plus-bin-0.06.ebuild | 54 --------- .../oclhashcat-plus-bin-0.071.ebuild | 103 ++++++++++++++++++ 9 files changed, 106 insertions(+), 210 deletions(-) delete mode 100644 app-crypt/oclhashcat-bin/Manifest delete mode 100644 app-crypt/oclhashcat-bin/files/oclhashcat delete mode 100755 app-crypt/oclhashcat-bin/oclhashcat-bin-0.23-r1.ebuild delete mode 100755 app-crypt/oclhashcat-bin/oclhashcat-bin-0.25.ebuild delete mode 100644 app-crypt/oclhashcat-bin/oclhashcat-bin-0.26.ebuild delete mode 100644 app-crypt/oclhashcat-plus-bin/files/oclhashcat-plus delete mode 100644 app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.06.ebuild create mode 100644 app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.071.ebuild diff --git a/app-crypt/oclhashcat-bin/Manifest b/app-crypt/oclhashcat-bin/Manifest deleted file mode 100644 index 52c478662..000000000 --- a/app-crypt/oclhashcat-bin/Manifest +++ /dev/null @@ -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 diff --git a/app-crypt/oclhashcat-bin/files/oclhashcat b/app-crypt/oclhashcat-bin/files/oclhashcat deleted file mode 100644 index 1a3906b4a..000000000 --- a/app-crypt/oclhashcat-bin/files/oclhashcat +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -cd /opt/oclhashcat-bin -/bin/bash diff --git a/app-crypt/oclhashcat-bin/oclhashcat-bin-0.23-r1.ebuild b/app-crypt/oclhashcat-bin/oclhashcat-bin-0.23-r1.ebuild deleted file mode 100755 index ce42ceb89..000000000 --- a/app-crypt/oclhashcat-bin/oclhashcat-bin-0.23-r1.ebuild +++ /dev/null @@ -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}" -} diff --git a/app-crypt/oclhashcat-bin/oclhashcat-bin-0.25.ebuild b/app-crypt/oclhashcat-bin/oclhashcat-bin-0.25.ebuild deleted file mode 100755 index b6cc6b26a..000000000 --- a/app-crypt/oclhashcat-bin/oclhashcat-bin-0.25.ebuild +++ /dev/null @@ -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}" -} diff --git a/app-crypt/oclhashcat-bin/oclhashcat-bin-0.26.ebuild b/app-crypt/oclhashcat-bin/oclhashcat-bin-0.26.ebuild deleted file mode 100644 index 22c02cb3e..000000000 --- a/app-crypt/oclhashcat-bin/oclhashcat-bin-0.26.ebuild +++ /dev/null @@ -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}" -} diff --git a/app-crypt/oclhashcat-plus-bin/Manifest b/app-crypt/oclhashcat-plus-bin/Manifest index 6ae1c4bea..1baf7e8b3 100644 --- a/app-crypt/oclhashcat-plus-bin/Manifest +++ b/app-crypt/oclhashcat-plus-bin/Manifest @@ -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 diff --git a/app-crypt/oclhashcat-plus-bin/files/oclhashcat-plus b/app-crypt/oclhashcat-plus-bin/files/oclhashcat-plus deleted file mode 100644 index f18b57c99..000000000 --- a/app-crypt/oclhashcat-plus-bin/files/oclhashcat-plus +++ /dev/null @@ -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 diff --git a/app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.06.ebuild b/app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.06.ebuild deleted file mode 100644 index e83c8efbd..000000000 --- a/app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.06.ebuild +++ /dev/null @@ -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}" -} diff --git a/app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.071.ebuild b/app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.071.ebuild new file mode 100644 index 000000000..477af60b9 --- /dev/null +++ b/app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.071.ebuild @@ -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}" +}