hashcat in gentoo where it belongs

This commit is contained in:
Zero_Chaos 2013-04-23 02:50:21 +00:00
parent ace0f69e68
commit 87c47daaf2
2 changed files with 0 additions and 81 deletions

View file

@ -1,2 +0,0 @@
DIST hashcat-0.44.7z 1132252 SHA256 69c1d71ed4d46cc04b798b1ea1cd09b32398eef683445d8ad94a0cf083efed73 SHA512 3d1fbbb447e6c522a13ad3edff0f741c0c9107f297ab3a9f31b941ca66f1d7a5711c9c35cab3bad31499ba43e967f858cd96073d73c45e80c4228728599aab03 WHIRLPOOL 3e47815fa075e79127500e4075dabc42f28dcd4a0f2bf024f21bc0ebcddec2c148190639d85c0b6030275352000814a9531987246c439d08eb2861067039221e
EBUILD hashcat-bin-0.44.ebuild 2215 SHA256 359b54cbc7edab1635ef182b12cb190bd1908579c19f1468ee9ff6cc45230be8 SHA512 9c7fd292a07a0b38756032905d5c92b9cdda7b34cb19caa0906eebe10e72a3c2cd2315a98254ae31fe881bbc18d14df60704e95ed2641615993a33fb70ef8cc9 WHIRLPOOL de8ed231d471ce47de1e428c79d7b969c23e43ac89f6d49ff8e171f3a28606c754d0623f5b3b52dce0394d2fd83074b8576d721bd95466b28181d52c99120e54

View file

@ -1,79 +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/hashcat-bin/hashcat-bin-0.42.ebuild,v 1.1 2013/01/07 04:12:18 zerochaos Exp $
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 applies to this version per http://hashcat.net/forum/thread-1348.html
LICENSE="hashcat"
SLOT="0"
KEYWORDS="-* ~amd64 ~amd64-linux ~x64-macos ~x86 ~x86-linux"
IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}
app-arch/p7zip"
S="${WORKDIR}/${MY_P}"
RESTRICT="strip"
QA_PREBUILT="opt/${PN}/hashcat-cli*.bin
opt/${PN}/hashcat-cli64.app"
src_install() {
dodoc docs/*
rm -r *.exe docs || die
use x86 || { rm hashcat-cli32.bin || die; }
use amd64 || { rm hashcat-cli64.bin || die; }
use x64-macos || { rm hashcat-cli64.app || die; }
#I assume this is needed but I didn't check
pax-mark m hashcat-cli*.bin
insinto /opt/${PN}
doins -r "${S}"/*
dodir /opt/bin
if [ -f "${ED}"/opt/${PN}/hashcat-cli32.bin ]
then
fperms +x /opt/${PN}/hashcat-cli32.bin
cat <<-EOF > "${ED}"/opt/bin/hashcat-cli32.bin
#! /bin/sh
cd "${EPREFIX}"/opt/${PN}
echo "Warning: hashcat-cli32.bin is running from ${EPREFIX}/opt/${PN} so be careful of relative paths."
exec ./hashcat-cli32.bin \$@
EOF
fperms +x /opt/bin/hashcat-cli32.bin
fi
if [ -f "${ED}"/opt/${PN}/hashcat-cli64.bin ]
then
fperms +x /opt/${PN}/hashcat-cli64.bin
cat <<-EOF > "${ED}"/opt/bin/hashcat-cli64.bin
#! /bin/sh
cd "${EPREFIX}"/opt/${PN}
echo "Warning: hashcat-cli64.bin is running from ${EPREFIX}/opt/${PN} so be careful of relative paths."
exec ./hashcat-cli64.bin \$@
EOF
fperms +x /opt/bin/hashcat-cli64.bin
fi
if [ -f "${ED}"/opt/${PN}/hashcat-cli64.app ]
then
fperms +x /opt/${PN}/hashcat-cli64.app
cat <<-EOF > "${ED}"/opt/bin/hashcat-cli64.app
#! /bin/sh
cd "${EPREFIX}"/opt/${PN}
echo "Warning: hashcat-cli64.app is running from ${EPREFIX}/opt/${PN} so be careful of relative paths."
exec ./hashcat-cli64.app \$@
EOF
fperms +x /opt/bin/hashcat-cli64.app
fi
}