mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-21 06:10:56 +02:00
hashcat-bin: initial commit, works for me
This commit is contained in:
parent
6e9c5338f3
commit
bc2b8a52a2
2 changed files with 70 additions and 0 deletions
2
app-crypt/hashcat-bin/Manifest
Normal file
2
app-crypt/hashcat-bin/Manifest
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
DIST hashcat-0.38.7z 784252 RMD160 945816ab4a49a53ab44315b63ad228e3f318465f SHA1 942a82743f4ab5394265b449ef55e7aea26f9b84 SHA256 0605e9cd8f3beba865b36b3fc3d9f46be0bd2eae472602cfcc02801e970683ec
|
||||
EBUILD hashcat-bin-0.38.ebuild 2051 RMD160 aa93cdb9675271d93c4c3ec6384d8050058d64da SHA1 5f8cda3774bd1434d6dc8487d398aa5e3f389d3f SHA256 9a18da138d15fcc4d2c828d455d800792771a9695dcdb72fbceaa3c19136754f
|
||||
68
app-crypt/hashcat-bin/hashcat-bin-0.38.ebuild
Normal file
68
app-crypt/hashcat-bin/hashcat-bin-0.38.ebuild
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=4
|
||||
|
||||
MY_P="hashcat-${PV}"
|
||||
|
||||
inherit eutils pax-utils
|
||||
DESCRIPTION="An multi-threaded multihash cracker"
|
||||
HOMEPAGE="http://hashcat.net/hashcat/"
|
||||
|
||||
SRC_URI="http://hashcat.net/files/${MY_P}.7z"
|
||||
|
||||
LICENSE="Artistic"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=""
|
||||
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 hashcat-cli64.bin
|
||||
fi
|
||||
if use amd64; then
|
||||
rm hashcat-cli32.bin
|
||||
fi
|
||||
|
||||
#I assume this is needed but I didn't check
|
||||
pax-mark m hashcat-cli*.bin
|
||||
|
||||
insinto /opt/${PN}
|
||||
doins -r "${S}"/*
|
||||
|
||||
dodir /usr/bin
|
||||
if [ -f "${ED}"/opt/hashcat-bin/hashcat-cli32.bin ]
|
||||
then
|
||||
fperms +x /opt/hashcat-bin/hashcat-cli32.bin
|
||||
#dosym /opt/hashcat-bin/hashcat-cli32.bin /usr/bin/hashcat-cli32.bin
|
||||
#workaround for need to be run from /opt/hashcat-bin
|
||||
echo '#! /bin/sh' > "${ED}"/usr/bin/hashcat-cli32.bin
|
||||
echo 'cd /opt/hashcat-bin' >> "${ED}"/usr/bin/hashcat-cli32.bin
|
||||
echo 'echo "Warning: hashcat-cli32.bin is running from $(pwd) so be careful of relative paths."' >> "${ED}"/usr/bin/hashcat-cli32.bin
|
||||
echo './hashcat-cli32.bin $@' >> "${ED}"/usr/bin/hashcat-cli32.bin
|
||||
fperms +x /usr/bin/hashcat-cli32.bin
|
||||
fi
|
||||
if [ -f "${ED}"/opt/hashcat-bin/hashcat-cli64.bin ]
|
||||
then
|
||||
fperms +x /opt/hashcat-bin/hashcat-cli64.bin
|
||||
#dosym /opt/hashcat-bin/hashcat-cli64.bin /usr/bin/hashcat-cli64.bin
|
||||
#workaround for need to be run from /opt/hashcat-bin
|
||||
echo '#! /bin/sh' > "${ED}"/usr/bin/hashcat-cli64.bin
|
||||
echo 'cd /opt/hashcat-bin' >> "${ED}"/usr/bin/hashcat-cli64.bin
|
||||
echo 'echo "Warning: hashcat-cli64.bin is running from $(pwd) so be careful of relative paths."' >> "${ED}"/usr/bin/hashcat-cli64.bin
|
||||
echo './hashcat-cli64.bin $@' >> "${ED}"/usr/bin/hashcat-cli64.bin
|
||||
fperms +x /usr/bin/hashcat-cli64.bin
|
||||
fi
|
||||
}
|
||||
Loading…
Reference in a new issue