diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-01-12 16:58:08 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-01-12 16:58:08 +0000 |
commit | c8a77dfe4d3d307c1d5dd2650b7297447d8b609d (patch) | |
tree | 9ea78393bc3ecd6ab4de449383d4e97e5f3648ae /app-crypt/hashcat | |
parent | 2891d29af8907ce881662f4a02844926d7a293c7 (diff) |
gentoo resync : 12.01.2019
Diffstat (limited to 'app-crypt/hashcat')
-rw-r--r-- | app-crypt/hashcat/Manifest | 2 | ||||
-rw-r--r-- | app-crypt/hashcat/hashcat-5.1.0.ebuild | 69 |
2 files changed, 71 insertions, 0 deletions
diff --git a/app-crypt/hashcat/Manifest b/app-crypt/hashcat/Manifest index c8751ea85448..6ee2d7f4f101 100644 --- a/app-crypt/hashcat/Manifest +++ b/app-crypt/hashcat/Manifest @@ -2,9 +2,11 @@ DIST hashcat-4.1.0.tar.gz 3956136 BLAKE2B f9d6f9322e4c50ee1e156c283da1257a24f0e2 DIST hashcat-4.2.0.tar.gz 3965021 BLAKE2B ad208f2debe1e4ece893e4a277b199962aa98aab57a2e78aef1d4177dcf7fc03bf262657dfe0f51c2ae845c8ed92232de7131f909d63bdc91e9f14e0b9602bb6 SHA512 686975db24737a718b484dd84b66807dfbe9694f1832da648b3c3b9fc8b859cd5c4c4d0aebf04ae862de38656d92c989e4e9515a07bec19b3779d74350beb0bd DIST hashcat-4.2.1.tar.gz 3966264 BLAKE2B 2034fff6aa8724cded0c8576cb4593d90f94eaea8f932e511ed82f2576ded2ffd6f686dac484e52a9ebb3029e90845469418ac414f2edf03e3fdc3350df8766f SHA512 a2cfc7e19e82b237892bacc79ca1a62a3b2ea598e4e5f60d4e275a0c128d865945595d8f918e3bb93bf62376f11f448ff53257faa12fd051dfc64973fbb6ed1e DIST hashcat-5.0.0.tar.gz 4019964 BLAKE2B 5d33bb2b0d82018d8ea6a906bee48375376879a47e5ca8f880d6fad6c6763d1ef90d44b228257021603e560acadf3d8fbfcbafdbd41dbad3733141d3c3957762 SHA512 090f07a011961a2c9a9bdf31e8a5efae4b443b6b205e964a6cd74bed6efe8fae2377f22ce7728ad7e732e9f943cf30da88066fe0990d085547f1e2ba000a3d95 +DIST hashcat-5.1.0.tar.gz 4266878 BLAKE2B 677554fc5d6c5a93d0f4955c2e3cb6a40913ca2f7d00a89cf0c00bb48cadcaca94d3fdf55b853208f9fda4ce1bcc13fed865c5128a7c429223bcf8b4b825a15b SHA512 90605c2bcd0ec275d2f6ec581899b95cdc320b1494613a19803192c8a08037a7829b3776ed42c58eb6551ec1a746f47f94ab5b273958ca74e0fc57315e209ece EBUILD hashcat-4.1.0.ebuild 1286 BLAKE2B 7389102e6de56b262f34a0a0605872ac61d97b062c343d7fbb92ecbc859f43dfa2251f91b2d30294c4e0fabc575328102fd69410aed9e389b04c9c5075fa6836 SHA512 05b38f2388ef2a71cc2fb5ff33ac0cebd534e43681c11a4a06707b05686d7e2a9731783090f9e1da858f78ab327b3a22ea406342a4afe6ee439f4a8c85d386a0 EBUILD hashcat-4.2.0.ebuild 1331 BLAKE2B 77912c87e618afd7fb5af50e3ab3ce1baf440264917748374959ee78b5d6de3357df9e10bc86f15d2ad82051ba7b3e01f0856590412276c763ffebca3ad75c83 SHA512 73864af8522408362ac12e501407ea9245a2987c540b707dddcc3bd4c60c7ebdc30f4fab7a4902d7044396e990a7ca544120a891f06662fa017cb15d81b99498 EBUILD hashcat-4.2.1.ebuild 1374 BLAKE2B 44dfa345b726341aca0a38eb19e6667d2824c7cd263ed2b7569b01912293172658cb33970ee037492be3ba1fbc13934f576184db2a916ed0fd1ed3c643e02b46 SHA512 c3329356ba1510391ce737f96654d4f22b7fb327da7b32e4701a446afcbae9e4c099d692b4f94bfcdefcaf8c32bd4930a4d5f7ff21ce5a402c43fc6991c0751a EBUILD hashcat-5.0.0.ebuild 1630 BLAKE2B 89726240ae3d2f0d08ba486ed68ede1e81ea7d843eb07a3386b2e29bc10a5367229ab782a949f3627ce16afed9a92e521b6528e18fe3ac67b30247327cc50fd3 SHA512 601e6741312cab658a22f425c79ef26105b70d8ea87e33f96061fb9bfead9e545a74f1c36b2477b97b87ce07942c50416c4491976cd089fc26121f25b74a3783 +EBUILD hashcat-5.1.0.ebuild 2219 BLAKE2B 040da29686e347a9add4f240cf51d8374c7264f5f9629b4949875f6c9f55bace4c2b203b659eef33f57ef5c3aac684480c10e96f9305dded18d814f76dca9769 SHA512 6e1a913fcc764fbd22c4d6cc2c8f47f914fe878761eb835992de5ce29b62d6831f9830b43e4373a2903a933ab52273fa3d1e33ba045cf5a7dcb962226148092a EBUILD hashcat-9999.ebuild 2219 BLAKE2B 6c64507eeca761a75359c2e8bdfe98e378d249dc6363e42d82f9dcc756b19e5148a43804f27def5a75e2eaff1c338c9e7105b3e3513a8e0a757226686e74abdc SHA512 f2290e2f8371d0c0210aad0fc8b56218efd622c2f9f8e1a62cfd65c92d32aaf1ab93f3257419d58d17bd955d43fc978a9305bfbcd5d197b3aa32cab77e188a13 MISC metadata.xml 395 BLAKE2B b058a0b0749da5d258660ddc67733d9f6ba09d10acf98ccb2c46b23534d09cd2865a6e37050b96f89dc97a9584e6791360398c41576224905b667a9b149fd3f7 SHA512 1d2ee684f0180752b2dd6eee437ce2714437775a0224a34c6ffd9f9b86ef8c375947b25f5a372358672a4c69516861fe1fc26d1dbd972684f2df725fba87698e diff --git a/app-crypt/hashcat/hashcat-5.1.0.ebuild b/app-crypt/hashcat/hashcat-5.1.0.ebuild new file mode 100644 index 000000000000..2b0f93496c24 --- /dev/null +++ b/app-crypt/hashcat/hashcat-5.1.0.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils pax-utils multilib + +DESCRIPTION="World's fastest and most advanced password recovery utility" +HOMEPAGE="https://github.com/hashcat/hashcat" +LICENSE="MIT" +SLOT="0" +if [ "${PV}" = "9999" ]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/hashcat/hashcat.git" + KEYWORDS="" +else + KEYWORDS="~amd64 ~x86" + SRC_URI="https://github.com/hashcat/hashcat/archive/v${PV}.tar.gz -> ${P}.tar.gz" +fi + +IUSE="brain video_cards_nvidia" +DEPEND="virtual/opencl + app-arch/lzma + brain? ( dev-libs/xxhash ) + video_cards_nvidia? ( >x11-drivers/nvidia-drivers-367.0 )" +RDEPEND="${DEPEND}" + +src_prepare() { + #remove bundled stuff + rm -r deps/OpenCL-Headers || die "Failed to remove bundled OpenCL Headers" + rm -r deps/xxHash || die "Failed to remove bundled xxHash" + #rm -r deps/LZMA-SDK || die "Failed to remove bundled LZMA-SDK" + #rm -r deps || die "Failed to remove bundled deps" + #do not strip + sed -i "/LFLAGS += -s/d" src/Makefile + #do not add random CFLAGS + sed -i "s/-O2//" src/Makefile || die + sed -i "#LZMA_SDK_INCLUDE#d" src/Makefile || die + export PREFIX=/usr + export LIBRARY_FOLDER="/usr/$(get_libdir)" + export DOCUMENT_FOLDER="/usr/share/doc/${P}" + eapply_user +} + +src_compile() { + emake SHARED=1 PRODUCTION=1 ENABLE_BRAIN=$(usex brain 1 0) USE_SYSTEM_LZMA=0 USE_SYSTEM_OPENCL=1 USE_SYSTEM_XXHASH=1 VERSION_PURE="${PV}" + pax-mark -mr hashcat +} + +src_test() { + if use video_cards_nvidia; then + addwrite /dev/nvidia0 + addwrite /dev/nvidiactl + addwrite /dev/nvidia-uvm + if [ ! -w /dev/nvidia0 ]; then + einfo "To run these tests, portage likely must be in the video group." + einfo "Please run \"gpasswd -a portage video\" if the tests will fail" + fi + #elif use vidia_cards_fglrx; then + # addwrite /dev/ati + fi + #this always exits with 255 despite success + #./hashcat -b -m 2500 || die "Test failed" + LD_PRELOAD=./libhashcat.so.${PV} ./hashcat -a 3 -m 1500 nQCk49SiErOgk || die "Test failed" +} + +src_install() { + emake DESTDIR="${ED}" SHARED=1 PRODUCTION=1 ENABLE_BRAIN=$(usex brain 1 0) USE_SYSTEM_LZMA=0 USE_SYSTEM_OPENCL=1 USE_SYSTEM_XXHASH=1 VERSION_PURE="${PV}" install +} |