From ace0f69e687c45f540fd0a20118133d446920f62 Mon Sep 17 00:00:00 2001 From: Zero_Chaos Date: Tue, 23 Apr 2013 02:49:47 +0000 Subject: [PATCH] oclhashcat in gentoo where it belongs --- app-crypt/oclhashcat-lite-bin/Manifest | 2 - .../oclhashcat-lite-bin-0.15.ebuild | 107 ------------------ app-crypt/oclhashcat-plus-bin/Manifest | 2 - .../oclhashcat-plus-bin-0.14.ebuild | 100 ---------------- 4 files changed, 211 deletions(-) delete mode 100644 app-crypt/oclhashcat-lite-bin/Manifest delete mode 100644 app-crypt/oclhashcat-lite-bin/oclhashcat-lite-bin-0.15.ebuild delete mode 100644 app-crypt/oclhashcat-plus-bin/Manifest delete mode 100644 app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.14.ebuild diff --git a/app-crypt/oclhashcat-lite-bin/Manifest b/app-crypt/oclhashcat-lite-bin/Manifest deleted file mode 100644 index 69da76a15..000000000 --- a/app-crypt/oclhashcat-lite-bin/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST oclHashcat-lite-0.15.7z 6026598 SHA256 40fd6f5410e1c0d5d5e7c9d60c173d838289025a2fc36b86690fb26657ed5796 SHA512 b70738a40cdbc5062cb72f1de93a2d29cdd824b7f3cb0f5bc42e3a7e83246d2247385040efe230afffa26ddf26823ecefabf16f31b1925c7460e7cd8933342b8 WHIRLPOOL b53ce94f04dd464fd6727641726aa56620ec6dcf5c557887c7346955b08b33f187b59db27debf98210c477299ef13c8f7334e8c3b2234b27edf0fe97b1438235 -EBUILD oclhashcat-lite-bin-0.15.ebuild 2925 SHA256 1e734d7b43a15f574766e86712c091ae7988ef326c55e5c45d6590b3ae6d59e1 SHA512 8d8ab0a0914e0a52755641611f95ba3dc55bd2c1503a38722e00a2ae0a552138688443837585abca33fe29711e3cf4b3e1c4db72c5ecdded6ab1ad62ab1c679e WHIRLPOOL e12651d96d15231cb23ecb602895c81e4a9c9abb37d93bdf61b754bd27996afab716bba907c43cc026a8326c9bec8a1cbda3280177e8c71ccd890dc0d2ab5378 diff --git a/app-crypt/oclhashcat-lite-bin/oclhashcat-lite-bin-0.15.ebuild b/app-crypt/oclhashcat-lite-bin/oclhashcat-lite-bin-0.15.ebuild deleted file mode 100644 index 471f6a02f..000000000 --- a/app-crypt/oclhashcat-lite-bin/oclhashcat-lite-bin-0.15.ebuild +++ /dev/null @@ -1,107 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/oclhashcat-lite-bin/oclhashcat-lite-bin-0.14.ebuild,v 1.1 2013/02/03 02:00:57 zerochaos Exp $ - -EAPI=5 - -inherit eutils pax-utils - -DESCRIPTION="An opencl hash cracker" -HOMEPAGE="http://hashcat.net/oclhashcat-lite/" -MY_P="oclHashcat-lite-${PV}" -SRC_URI="http://hashcat.net/files/${MY_P}.7z" - -#license applies to this version per http://hashcat.net/forum/thread-1348.html -LICENSE="hashcat" -SLOT="0" -KEYWORDS="-* ~amd64 ~x86" - -IUSE_VIDEO_CARDS="video_cards_fglrx - video_cards_nvidia" - -IUSE="${IUSE_VIDEO_CARDS}" - -RDEPEND="sys-libs/zlib - video_cards_nvidia? ( >=x11-drivers/nvidia-drivers-310.32 ) - video_cards_fglrx? ( =x11-drivers/ati-drivers-13.1 )" -DEPEND="${RDEPEND} - app-arch/p7zip" - -S="${WORKDIR}/${MY_P}" - -RESTRICT="strip" -QA_PREBUILT="*Hashcat-lite*.bin" - -src_install() { - dodoc docs/* - rm -rf *.exe docs || die - if use x86; then - rm oclHashcat-lite64.bin || die - rm cudaHashcat-lite64.bin || die - fi - if use amd64; then - rm oclHashcat-lite32.bin || die - rm cudaHashcat-lite32.bin || die - fi - if ! use video_cards_fglrx; then - rm -r kernels/4098 || die - rm oclHashcat-lite*.bin || die - fi - if ! use video_cards_nvidia; then - rm -r kernels/4318 || die - rm cudaHashcat-lite*.bin || die - fi - - #I assume this is needed but I didn't check - pax-mark m *Hashcat-lite*.bin - - insinto /opt/${PN} - doins -r "${S}"/* - - dodir /opt/bin - - cat <<-EOF > "${ED}"/opt/bin/oclhashcat-lite - #! /bin/sh - echo "oclHashcat-lite and all related files have been installed in /opt/${PN}" - echo "Please run one of the following binaries to use gpu accelerated hashcat:" - EOF - - for x in oclHashcat-lite64.bin oclHashcat-lite32.bin cudaHashcat-lite64.bin cudaHashcat-lite32.bin - do - if [ -f "${ED}"/opt/${PN}/${x} ] - then - case "${x}" in - oclHashcat-lite64.bin) - echo "echo '64 bit ATI accelerated \"oclHashcat-lite64.bin\"'" >> "${ED}"/opt/bin/oclhashcat-lite - ;; - oclHashcat-lite32.bin) - echo "echo '32 bit ATI accelerated \"oclHashcat-lite32.bin\"'" >> "${ED}"/opt/bin/oclhashcat-lite - ;; - cudaHashcat-lite64.bin) - echo "echo '64 bit NVIDIA accelerated \"cudaHashcat-lite64.bin\"'" >> "${ED}"/opt/bin/oclhashcat-lite - ;; - cudaHashcat-lite32.bin) - echo "echo '32 bit NVIDIA accelerated \"cudaHashcat-lite32.bin\"'" >> "${ED}"/opt/bin/oclhashcat-lite - ;; - esac - - fperms +x /opt/${PN}/${x} - - cat <<-EOF > "${ED}"/opt/bin/${x} - #! /bin/sh - cd /opt/${PN} - echo "Warning: ${x} is running from /opt/${PN} so be careful of relative paths." - exec ./${x} "\$@" - EOF - - fperms +x /opt/bin/${x} - - fi - done - - fperms +x /opt/bin/oclhashcat-lite - fowners root:video /opt/${PN} - touch "${ED}"/opt/${PN}/eula.accepted - fperms 0660 /opt/${PN}/eula.accepted - einfo "oclhashcat-lite can be run as user if you are in the video group" -} diff --git a/app-crypt/oclhashcat-plus-bin/Manifest b/app-crypt/oclhashcat-plus-bin/Manifest deleted file mode 100644 index 0b6dd07ef..000000000 --- a/app-crypt/oclhashcat-plus-bin/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST oclHashcat-plus-0.14.7z 43411331 SHA256 4e5ee82bdb72ecd0ebc7795414a89d2755ed35dfc26fcbf92648e46dd223056e SHA512 8f6f548eb7de0dc9285f214757a9400976a696085a5ae61c583c0a3d73fcdb8326345054dda132414c2d44cdaa3207abebb47968defbb290e77fd496fd62861d WHIRLPOOL 9cf03c51a5b65326f08acf78987397035641cd6c38b86bb00620d3880958ccfc48fde24eff8f41b40a2c022ef3478e22c203d8eb8037c545b797956473c80a94 -EBUILD oclhashcat-plus-bin-0.14.ebuild 2715 SHA256 d52efdc3fb67c3a08bffcc5ca66af0a180ade546f8b44c4c61b2c5d1661e25f1 SHA512 ebf700afef6a7ef60432357007bd83527f9bf1fd76a743946dddf863e450d43f35d6f1a6bfb1a04b2183de1a39ab3ed60cc7dc19478af2b18fd2181f2684f58b WHIRLPOOL cad0b96518e909f2165acae27cc39e73bf1bbf5fd628e47d6210e667abeff393bebb4f29403befc9ba5a5a807f1224f2959b15943d5cc36c97a526e712ea637c diff --git a/app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.14.ebuild b/app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.14.ebuild deleted file mode 100644 index 08dcdcf70..000000000 --- a/app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.14.ebuild +++ /dev/null @@ -1,100 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.13.ebuild,v 1.1 2013/02/03 01:55:07 zerochaos Exp $ - -EAPI=5 - -inherit eutils pax-utils - -DESCRIPTION="An opencl multihash cracker" -HOMEPAGE="http://hashcat.net/oclhashcat-plus/" - -MY_P="oclHashcat-plus-${PV}" -SRC_URI="http://hashcat.net/files/${MY_P}.7z" - -LICENSE="hashcat" -SLOT="0" -KEYWORDS="-* ~amd64 ~x86" - -IUSE_VIDEO_CARDS="video_cards_fglrx - video_cards_nvidia" - -IUSE="${IUSE_VIDEO_CARDS}" - -RDEPEND="sys-libs/zlib - video_cards_nvidia? ( >=x11-drivers/nvidia-drivers-310.32 ) - video_cards_fglrx? ( =x11-drivers/ati-drivers-13.1 )" -DEPEND="${RDEPEND} - app-arch/p7zip" - -S="${WORKDIR}/${MY_P}" - -RESTRICT="strip" -QA_PREBUILT="*Hashcat-plus*.bin" - -src_install() { - dodoc docs/* - rm -r *.exe docs || die - use x86 && rm *Hashcat-plus64* - use amd64 && rm *Hashcat-plus32* - - if ! use video_cards_fglrx; then - rm -r kernels/4098 || die - rm oclHashcat-plus*.bin || die - fi - if ! use video_cards_nvidia; then - rm -r kernels/4318 || die - rm cudaHashcat-plus*.bin || die - fi - pax-mark m *Hashcat-plus*.bin - - insinto /opt/${PN} - doins -r "${S}"/* || die "Copy files failed" - - dodir /opt/bin - - cat <<-EOF > "${ED}"/opt/bin/oclhashcat-plus - #! /bin/sh - echo "oclHashcat-plus and all related files have been installed in /opt/${PN}" - echo "Please run one of the following binaries to use gpu accelerated hashcat:" - EOF - - for x in oclHashcat-plus64.bin oclHashcat-plus32.bin cudaHashcat-plus64.bin cudaHashcat-plus32.bin - do - if [ -f "${ED}"/opt/${PN}/${x} ] - then - case "${x}" in - oclHashcat-plus64.bin) - echo "echo '64 bit ATI accelerated \"oclHashcat-plus64.bin\"'" >> "${ED}"/opt/bin/oclhashcat-plus - ;; - oclHashcat-plus32.bin) - echo "echo '32 bit ATI accelerated \"oclHashcat-plus32.bin\"'" >> "${ED}"/opt/bin/oclhashcat-plus - ;; - cudaHashcat-plus64.bin) - echo "echo '64 bit NVIDIA accelerated \"cudaHashcat-plus64.bin\"'" >> "${ED}"/opt/bin/oclhashcat-plus - ;; - cudaHashcat-plus32.bin) - echo "echo '32 bit NVIDIA accelerated \"cudaHashcat-plus32.bin\"'" >> "${ED}"/opt/bin/oclhashcat-plus - ;; - esac - - fperms +x /opt/${PN}/${x} - - cat <<-EOF > "${ED}"/opt/bin/${x} - #! /bin/sh - cd /opt/${PN} - echo "Warning: ${x} is running from /opt/${PN} so be careful of relative paths." - exec ./${x} "\$@" - EOF - - fperms +x /opt/bin/${x} - - fi - done - - fperms +x /opt/bin/oclhashcat-plus - fowners root:video /opt/${PN} - touch "${ED}"/opt/${PN}/eula.accepted - fperms 0660 /opt/${PN}/eula.accepted - einfo "oclhashcat-plus can be run as user if you are in the video group" -}