From 00e708dba1a20b12378f3d72ee4b851e448b8f50 Mon Sep 17 00:00:00 2001 From: Zero_Chaos Date: Fri, 16 Mar 2012 05:21:18 +0000 Subject: [PATCH] hashcat-gui-bin: allow users to waste huge amounts of hdd space for no reason other than shitty coding --- app-crypt/hashcat-gui-bin/Manifest | 2 +- .../hashcat-gui-bin-0.5.0.ebuild | 26 ++++++++++++++----- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/app-crypt/hashcat-gui-bin/Manifest b/app-crypt/hashcat-gui-bin/Manifest index 5147f430d..521bce32f 100644 --- a/app-crypt/hashcat-gui-bin/Manifest +++ b/app-crypt/hashcat-gui-bin/Manifest @@ -1,2 +1,2 @@ DIST hashcat-gui-0.5.0.7z 31687632 RMD160 2c1040f7bee7292d5ec51d4167d7811d2f8a482c SHA1 2ec507176afde57ee627a2cff6ec09e694acce27 SHA256 8abc735ca5d325ba7f184239b1deef4651323db122d589d108a816957d300859 -EBUILD hashcat-gui-bin-0.5.0.ebuild 2708 RMD160 ad8614795f705a15de0f1913f5cd0add3c5e56cc SHA1 7e22aae319fcaa8de7fc37cbec19915252180566 SHA256 ce3219647466d83407710340d23bea17ca937d666117a26a2420ef993ce9bc7c +EBUILD hashcat-gui-bin-0.5.0.ebuild 3219 RMD160 296305a527f67370530c8c08d8d5e51f2e451d1c SHA1 00d3233aa0f305be05b877cb05157e91aca2c4f9 SHA256 c024db866cfbb7cda837f55fc564b10e0f100e31f5db337e0c1cf0f1518fc526 diff --git a/app-crypt/hashcat-gui-bin/hashcat-gui-bin-0.5.0.ebuild b/app-crypt/hashcat-gui-bin/hashcat-gui-bin-0.5.0.ebuild index 39eeb6a86..e43724e12 100644 --- a/app-crypt/hashcat-gui-bin/hashcat-gui-bin-0.5.0.ebuild +++ b/app-crypt/hashcat-gui-bin/hashcat-gui-bin-0.5.0.ebuild @@ -16,11 +16,11 @@ LICENSE="Artistic" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="+minimal" -RDEPEND="app-crypt/hashcat-bin +RDEPEND="minimal? ( app-crypt/hashcat-bin app-crypt/oclhashcat-plus-bin - app-crypt/oclhashcat-lite-bin + app-crypt/oclhashcat-lite-bin ) app-arch/bzip2 sys-libs/zlib media-libs/fontconfig @@ -42,9 +42,12 @@ 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 - rm -rf *.exe docs hashcat oclHashcat-lite oclHashcat-plus + use minimal && rm -rf hashcat oclHashcat-lite oclHashcat-plus + if use x86; then rm hashcat-gui64.bin fi @@ -81,7 +84,16 @@ src_install() { echo './hashcat-gui64.bin $@' >> "${ED}"/usr/bin/hashcat-gui64.bin fperms +x /usr/bin/hashcat-gui64.bin fi - 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 + 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 }