mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-08 12:30:44 +02:00
oclhashcat-plus-bin: version bump
This commit is contained in:
parent
a5a1c00abc
commit
ccb001666d
2 changed files with 129 additions and 0 deletions
|
|
@ -1,3 +1,5 @@
|
|||
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
|
||||
DIST oclHashcat-plus-0.08.7z 17959 RMD160 647dbb7ea5eef3482ed657c5bacd36cffd45bfab SHA1 1bcfd648576c70debf3d8f2630ef2ca6f8feef8c SHA256 6029dd8270c128644f5a65ea1eb918e40e8a553ea90395de5dc152ec8c55baae
|
||||
EBUILD oclhashcat-plus-bin-0.071.ebuild 5157 RMD160 371a04247e4356c3911d69b06eadd18fe449bc24 SHA1 382c47e3132b495abfa174818b731bb0fd0ed160 SHA256 4a083fc28f043f77bd294af00ed922f49eaf1a74817be0c0c2533eeacde85efe
|
||||
EBUILD oclhashcat-plus-bin-0.08.ebuild 5068 RMD160 43778aded0df00c8fc3909983c57424e486467af SHA1 c82d5d16aa2cbe19189d5b8cb03f93ab58a25b98 SHA256 3bf8335e929cdbe7a1beefbb186a9631bcc5649f8542c722b586589d777b7d78
|
||||
|
|
|
|||
127
app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.08.ebuild
Normal file
127
app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.08.ebuild
Normal file
|
|
@ -0,0 +1,127 @@
|
|||
# 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.08.7z"
|
||||
|
||||
LICENSE="Artistic"
|
||||
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-290.40 )
|
||||
video_cards_fglrx? ( >=x11-drivers/ati-drivers-12.4 )"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/p7zip"
|
||||
|
||||
#S="${WORKDIR}/${MY_P}"
|
||||
S="${WORKDIR}/oclHashcat-plus-0.08"
|
||||
|
||||
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*
|
||||
fi
|
||||
if use amd64; then
|
||||
rm oclHashcat-plus32.bin
|
||||
rm cudaHashcat-plus32.bin
|
||||
rm kernels/4098/*32* kernels/4318/*32*
|
||||
fi
|
||||
if ! use video_cards_fglrx; then
|
||||
rm -rf kernels/4098
|
||||
rm -f oclHashcat-plus*.bin
|
||||
fi
|
||||
if ! use video_cards_nvidia; then
|
||||
rm -rf kernels/4318
|
||||
rm -f cudaHashcat-plus*.bin
|
||||
fi
|
||||
pax-mark m *Hashcat-plus*.bin
|
||||
|
||||
#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 '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
|
||||
#workaround for need to be run from /opt/oclHashcat-plus-bin
|
||||
echo '#! /bin/sh' > "${ED}"/usr/bin/oclHashcat-plus64.bin
|
||||
echo 'cd /opt/oclhashcat-plus-bin' >> "${ED}"/usr/bin/oclHashcat-plus64.bin
|
||||
echo 'echo "Warning: oclHashcat-plus64.bin is running from $(pwd) so be careful of relative paths."' >> "${ED}"/usr/bin/oclHashcat-plus64.bin
|
||||
echo './oclHashcat-plus64.bin $@' >> "${ED}"/usr/bin/oclHashcat-plus64.bin
|
||||
fperms +x /usr/bin/oclHashcat-plus64.bin
|
||||
|
||||
fi
|
||||
if [ -f "${ED}"/opt/oclhashcat-plus-bin/oclHashcat-plus32.bin ]
|
||||
then
|
||||
echo '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
|
||||
#workaround for need to be run from /opt/oclHashcat-plus-bin
|
||||
echo '#! /bin/sh' > "${ED}"/usr/bin/oclHashcat-plus32.bin
|
||||
echo 'cd /opt/oclhashcat-plus-bin' >> "${ED}"/usr/bin/oclHashcat-plus32.bin
|
||||
echo 'echo "Warning: oclHashcat-plus32.bin is running from $(pwd) so be careful of relative paths."' >> "${ED}"/usr/bin/oclHashcat-plus32.bin
|
||||
echo './oclHashcat-plus32.bin $@' >> "${ED}"/usr/bin/oclHashcat-plus32.bin
|
||||
fperms +x /usr/bin/oclHashcat-plus32.bin
|
||||
fi
|
||||
if [ -f "${ED}"/opt/oclhashcat-plus-bin/cudaHashcat-plus64.bin ]
|
||||
then
|
||||
echo '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
|
||||
#workaround for need to be run from /opt/oclHashcat-plus-bin
|
||||
echo '#! /bin/sh' > "${ED}"/usr/bin/cudaHashcat-plus64.bin
|
||||
echo 'cd /opt/oclhashcat-plus-bin' >> "${ED}"/usr/bin/cudaHashcat-plus64.bin
|
||||
echo 'echo "Warning: cudaHashcat-plus64.bin is running from $(pwd) so be careful of relative paths."' >> "${ED}"/usr/bin/cudaHashcat-plus64.bin
|
||||
echo './cudaHashcat-plus64.bin $@' >> "${ED}"/usr/bin/cudaHashcat-plus64.bin
|
||||
fperms +x /usr/bin/cudaHashcat-plus64.bin
|
||||
|
||||
fi
|
||||
if [ -f "${ED}"/opt/oclhashcat-plus-bin/cudaHashcat-plus32.bin ]
|
||||
then
|
||||
echo '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
|
||||
#workaround for need to be run from /opt/oclHashcat-plus-bin
|
||||
echo '#! /bin/sh' > "${ED}"/usr/bin/cudaHashcat-plus32.bin
|
||||
echo 'cd /opt/oclhashcat-plus-bin' >> "${ED}"/usr/bin/cudaHashcat-plus32.bin
|
||||
echo 'echo "Warning: cudaHashcat-plus32.bin is running from $(pwd) so be careful of relative paths."' >> "${ED}"/usr/bin/cudaHashcat-plus32.bin
|
||||
echo './cudaHashcat-plus32.bin $@' >> "${ED}"/usr/bin/cudaHashcat-plus32.bin
|
||||
fperms +x /usr/bin/oclHashcat-plus32.bin
|
||||
fi
|
||||
fperms +x /usr/bin/oclhashcat-plus
|
||||
}
|
||||
Loading…
Reference in a new issue