hashcat-bin: bump

This commit is contained in:
Zero_Chaos 2012-03-24 02:09:30 +00:00
parent 0e7f076f31
commit e6a6dc1f90
2 changed files with 70 additions and 0 deletions

View file

@ -1,2 +1,4 @@
DIST hashcat-0.38.7z 784252 RMD160 945816ab4a49a53ab44315b63ad228e3f318465f SHA1 942a82743f4ab5394265b449ef55e7aea26f9b84 SHA256 0605e9cd8f3beba865b36b3fc3d9f46be0bd2eae472602cfcc02801e970683ec
DIST hashcat-0.39.7z 716387 RMD160 d5c8983c5938e273d055772a1ae59970e5109beb SHA1 baf0d3660cfc241c635f772eef1682980744521d SHA256 9d86cb175030de5b5872077028456f944c18e94749fc79cb63fb2f74106bed4e
EBUILD hashcat-bin-0.38.ebuild 2051 RMD160 aa93cdb9675271d93c4c3ec6384d8050058d64da SHA1 5f8cda3774bd1434d6dc8487d398aa5e3f389d3f SHA256 9a18da138d15fcc4d2c828d455d800792771a9695dcdb72fbceaa3c19136754f
EBUILD hashcat-bin-0.39.ebuild 2051 RMD160 aa93cdb9675271d93c4c3ec6384d8050058d64da SHA1 5f8cda3774bd1434d6dc8487d398aa5e3f389d3f SHA256 9a18da138d15fcc4d2c828d455d800792771a9695dcdb72fbceaa3c19136754f

View 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
}