mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-19 05:11:05 +02:00
hashcat-gui-bin: drop binary feces
This commit is contained in:
parent
95d1f72650
commit
f5bf01f352
2 changed files with 0 additions and 101 deletions
|
|
@ -1,2 +0,0 @@
|
|||
DIST hashcat-gui-0.5.0.7z 31687632 RMD160 2c1040f7bee7292d5ec51d4167d7811d2f8a482c SHA1 2ec507176afde57ee627a2cff6ec09e694acce27 SHA256 8abc735ca5d325ba7f184239b1deef4651323db122d589d108a816957d300859
|
||||
EBUILD hashcat-gui-bin-0.5.0.ebuild 3219 RMD160 296305a527f67370530c8c08d8d5e51f2e451d1c SHA1 00d3233aa0f305be05b877cb05157e91aca2c4f9 SHA256 c024db866cfbb7cda837f55fc564b10e0f100e31f5db337e0c1cf0f1518fc526
|
||||
|
|
@ -1,99 +0,0 @@
|
|||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=4
|
||||
|
||||
MY_P="hashcat-gui-${PV}"
|
||||
|
||||
inherit eutils pax-utils
|
||||
DESCRIPTION="A gui for the *hashcat* suite of tools"
|
||||
HOMEPAGE="http://hashcat.net/hashcat-gui/"
|
||||
|
||||
SRC_URI="http://hashcat.net/files/${MY_P}.7z"
|
||||
|
||||
LICENSE="Artistic"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="+minimal"
|
||||
|
||||
RDEPEND="minimal? ( app-crypt/hashcat-bin
|
||||
app-crypt/oclhashcat-plus-bin
|
||||
app-crypt/oclhashcat-lite-bin )
|
||||
app-arch/bzip2
|
||||
sys-libs/zlib
|
||||
media-libs/fontconfig
|
||||
media-libs/freetype
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXau
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXdmcp
|
||||
x11-libs/libxcb
|
||||
dev-libs/expat
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/p7zip"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
RESTRICT="strip binchecks"
|
||||
|
||||
src_install() {
|
||||
dodoc docs/*
|
||||
rm -rf *.exe docs
|
||||
|
||||
#the author of hashcat-gui would prefer that all the hashcat tools are distributed with it,
|
||||
#and people in hell want ice water
|
||||
use minimal && rm -rf hashcat oclHashcat-lite oclHashcat-plus
|
||||
|
||||
if use x86; then
|
||||
rm hashcat-gui64.bin
|
||||
fi
|
||||
if use amd64; then
|
||||
rm hashcat-gui32.bin
|
||||
fi
|
||||
|
||||
#I assume this is needed but I didn't check
|
||||
pax-mark m hashcat-gui*.bin
|
||||
|
||||
insinto /opt/${PN}
|
||||
doins -r "${S}"/*
|
||||
|
||||
dodir /usr/bin
|
||||
if [ -f "${ED}"/opt/hashcat-gui-bin/hashcat-gui32.bin ]
|
||||
then
|
||||
fperms +x /opt/hashcat-gui-bin/hashcat-gui32.bin
|
||||
#dosym /opt/hashcat-gui-bin/hashcat-gui32.bin /usr/bin/hashcat-gui32.bin
|
||||
#workaround for need to be run from /opt/hashcat-bin
|
||||
echo '#! /bin/sh' > "${ED}"/usr/bin/hashcat-gui32.bin
|
||||
echo 'cd /opt/hashcat-bin' >> "${ED}"/usr/bin/hashcat-gui32.bin
|
||||
echo 'echo "Warning: hashcat-gui32.bin is running from $(pwd) so be careful of relative paths."' >> "${ED}"/usr/bin/hashcat-gui32.bin
|
||||
echo './hashcat-gui32.bin $@' >> "${ED}"/usr/bin/hashcat-gui32.bin
|
||||
fperms +x /usr/bin/hashcat-gui32.bin
|
||||
fi
|
||||
if [ -f "${ED}"/opt/hashcat-gui-bin/hashcat-gui64.bin ]
|
||||
then
|
||||
fperms +x /opt/hashcat-gui-bin/hashcat-gui64.bin
|
||||
#dosym /opt/hashcat-gui-bin/hashcat-gui64.bin /usr/bin/hashcat-gui64.bin
|
||||
#workaround for need to be run from /opt/hashcat-gui-bin
|
||||
echo '#! /bin/sh' > "${ED}"/usr/bin/hashcat-gui64.bin
|
||||
echo 'cd /opt/hashcat-gui-bin' >> "${ED}"/usr/bin/hashcat-gui64.bin
|
||||
echo 'echo "Warning: hashcat-gui64.bin is running from $(pwd) so be careful of relative paths."' >> "${ED}"/usr/bin/hashcat-gui64.bin
|
||||
echo './hashcat-gui64.bin $@' >> "${ED}"/usr/bin/hashcat-gui64.bin
|
||||
fperms +x /usr/bin/hashcat-gui64.bin
|
||||
fi
|
||||
if use minimal; then
|
||||
dosym /opt/hashcat-bin /opt/${PN}/hashcat
|
||||
dosym /opt/oclhashcat-lite-bin /opt/${PN}/oclHashcat-lite
|
||||
dosym /opt/oclhashcat-plus-bin /opt/${PN}/oclHashcat-plus
|
||||
ewarn "hashcat-gui *requires* you to use the bundled versions of the hashcat tools,"
|
||||
ewarn "however, we are using the latest version instead. If this breaks, reinstall"
|
||||
ewarn "with USE=-minimal"
|
||||
else
|
||||
ewarn "You have disabled the minimal use flag which means the bundled versions of"
|
||||
ewarn "the hashcat tools are installed, this greatly increases size so you may"
|
||||
ewarn "wish to consider keeping the default of USE=minimal"
|
||||
fi
|
||||
}
|
||||
Loading…
Reference in a new issue