diff options
author | Rick Farina <zerochaos@gentoo.org> | 2013-04-23 02:49:26 +0000 |
---|---|---|
committer | Rick Farina <zerochaos@gentoo.org> | 2013-04-23 02:49:26 +0000 |
commit | c45e7bf9e074927ee955e9bd21b2ceece9ee72ec (patch) | |
tree | 351bfeb595bf0efd8ad74e9e78fbe71657b47efd /app-crypt | |
parent | Version bump (diff) | |
download | gentoo-2-c45e7bf9e074927ee955e9bd21b2ceece9ee72ec.tar.gz gentoo-2-c45e7bf9e074927ee955e9bd21b2ceece9ee72ec.tar.bz2 gentoo-2-c45e7bf9e074927ee955e9bd21b2ceece9ee72ec.zip |
version bump and some minor improvements
(Portage version: 2.1.11.55/cvs/Linux x86_64, signed Manifest commit with key DD11F94A)
Diffstat (limited to 'app-crypt')
-rw-r--r-- | app-crypt/oclhashcat-lite-bin/ChangeLog | 8 | ||||
-rw-r--r-- | app-crypt/oclhashcat-lite-bin/metadata.xml | 1 | ||||
-rw-r--r-- | app-crypt/oclhashcat-lite-bin/oclhashcat-lite-bin-0.15.ebuild | 139 |
3 files changed, 147 insertions, 1 deletions
diff --git a/app-crypt/oclhashcat-lite-bin/ChangeLog b/app-crypt/oclhashcat-lite-bin/ChangeLog index 7032223d0daa..56d0e7bce9dc 100644 --- a/app-crypt/oclhashcat-lite-bin/ChangeLog +++ b/app-crypt/oclhashcat-lite-bin/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-crypt/oclhashcat-lite-bin # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/oclhashcat-lite-bin/ChangeLog,v 1.6 2013/03/11 14:38:46 chithanh Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-crypt/oclhashcat-lite-bin/ChangeLog,v 1.7 2013/04/23 02:49:26 zerochaos Exp $ + +*oclhashcat-lite-bin-0.15 (23 Apr 2013) + + 23 Apr 2013; Rick Farina <zerochaos@gentoo.org> + +oclhashcat-lite-bin-0.15.ebuild, metadata.xml: + version bump and some minor improvements 11 Mar 2013; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> -oclhashcat-lite-bin-0.10.ebuild, -oclhashcat-lite-bin-0.13.ebuild: diff --git a/app-crypt/oclhashcat-lite-bin/metadata.xml b/app-crypt/oclhashcat-lite-bin/metadata.xml index 88e9eb110229..8006cb0e3265 100644 --- a/app-crypt/oclhashcat-lite-bin/metadata.xml +++ b/app-crypt/oclhashcat-lite-bin/metadata.xml @@ -6,5 +6,6 @@ <email>zerochaos@gentoo.org</email> <name>Rick Farina</name> </maintainer> +<use><flag name="virtualcl">Support for Mosix VirtualCL Clustering Platform</flag></use> </pkgmetadata> diff --git a/app-crypt/oclhashcat-lite-bin/oclhashcat-lite-bin-0.15.ebuild b/app-crypt/oclhashcat-lite-bin/oclhashcat-lite-bin-0.15.ebuild new file mode 100644 index 000000000000..87dcdaffaa6d --- /dev/null +++ b/app-crypt/oclhashcat-lite-bin/oclhashcat-lite-bin-0.15.ebuild @@ -0,0 +1,139 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/oclhashcat-lite-bin/oclhashcat-lite-bin-0.15.ebuild,v 1.1 2013/04/23 02:49:26 zerochaos Exp $ + +EAPI=5 + +inherit eutils pax-utils + +DESCRIPTION="An opencl hash cracker" +HOMEPAGE="http://hashcat.net/oclhashcat-lite/" +MY_P="oclHashcat-lite-${PV}" +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 ~x86" + +IUSE_VIDEO_CARDS="video_cards_fglrx + video_cards_nvidia" + +IUSE="virtualcl ${IUSE_VIDEO_CARDS}" + +RDEPEND="sys-libs/zlib + video_cards_nvidia? ( >=x11-drivers/nvidia-drivers-310.32 ) + video_cards_fglrx? ( =x11-drivers/ati-drivers-13.1 )" +DEPEND="${RDEPEND} + app-arch/p7zip" + +S="${WORKDIR}/${MY_P}" + +RESTRICT="strip" +QA_PREBUILT="*Hashcat-lite*.bin" + +src_test() { + printf "%02x" ${PV#0.} > "${S}"/eula.accepted + if use video_cards_nvidia; then + if [ ! -w /dev/nvidia0 ]; then + einfo "To run these tests, portage likely must be in the video group." + einfo "Please run \"passwd -a portage video\" if the tests will fail" + fi + ./cudaExample0.sh || die + ./cudaExample400.sh || die + ./cudaExample500.sh || die + fi + if use video_cards_fglrx; then + ./oclExample0.sh || die + ./oclExample400.sh || die + ./oclExample500.sh || die + fi + rm "${S}"/eula.accepted +} + +src_install() { + dodoc docs/* + rm -r "${S}"/*.exe "${S}"/*.cmd "${S}"/docs || die + if use x86; then + rm oclHashcat-lite64.bin || die + rm cudaHashcat-lite64.bin || die + fi + if use amd64; then + rm oclHashcat-lite32.bin || die + rm cudaHashcat-lite32.bin || die + fi + if ! use video_cards_fglrx; then + rm -r kernels/4098 || die + rm oclHashcat-lite*.bin || die + fi + if ! use video_cards_nvidia; then + rm -r kernels/4318 || die + rm cudaHashcat-lite*.bin || die + fi + use virtualcl || { rm vclHashcat-lite* || die; } + #I assume this is needed but I didn't check + pax-mark m *Hashcat-lite*.bin + + insinto /opt/${PN} + doins -r "${S}"/* + + dodir /opt/bin + + cat <<-EOF > "${ED}"/opt/bin/oclhashcat-lite + #! /bin/sh + echo "oclHashcat-lite and all related files have been installed in /opt/${PN}" + echo "Please run one of the following binaries to use gpu accelerated hashcat:" + EOF + + for x in oclHashcat-lite64.bin oclHashcat-lite32.bin cudaHashcat-lite64.bin cudaHashcat-lite32.bin vclHashcat-lite64.bin vclHashcat-lite32.bin + do + if [ -f "${ED}"/opt/${PN}/${x} ] + then + case "${x}" in + oclHashcat-lite64.bin) + echo "echo '64 bit ATI accelerated \"oclHashcat-lite64.bin\"'" >> "${ED}"/opt/bin/oclhashcat-lite + ;; + oclHashcat-lite32.bin) + echo "echo '32 bit ATI accelerated \"oclHashcat-lite32.bin\"'" >> "${ED}"/opt/bin/oclhashcat-lite + ;; + cudaHashcat-lite64.bin) + echo "echo '64 bit NVIDIA accelerated \"cudaHashcat-lite64.bin\"'" >> "${ED}"/opt/bin/oclhashcat-lite + ;; + cudaHashcat-lite32.bin) + echo "echo '32 bit NVIDIA accelerated \"cudaHashcat-lite32.bin\"'" >> "${ED}"/opt/bin/oclhashcat-lite + ;; + vclHashcat-lite64.bin) + echo "echo '64 bit VirtualCL Cluster support \"vclHashcat-lite64.bin\"'" >> "${ED}"/opt/bin/oclhashcat-lite + ;; + vclHashcat-lite32.bin) + echo "echo '32 bit VirtualCL Cluster support \"vclHashcat-lite32.bin\"'" >> "${ED}"/opt/bin/oclhashcat-lite + ;; + esac + + fperms +x /opt/${PN}/${x} + + cat <<-EOF > "${ED}"/opt/bin/${x} + #! /bin/sh + cd /opt/${PN} + echo "Warning: ${x} is running from /opt/${PN} so be careful of relative paths." + exec ./${x} "\$@" + EOF + + fperms +x /opt/bin/${x} + + fi + done + + fperms +x /opt/bin/oclhashcat-lite + fowners root:video /opt/${PN} + einfo "oclhashcat-lite can be run as user if you are in the video group" +} + +pkg_preinst() { + #I feel so dirty doing this + #first we remove the eula.accepted because it cannot properly handle and empty or old one (crash or doesn't run at all) + rm -f "${EROOT}"/opt/${PN}/eula.accepted + #next we remove any compiled kernel files as these get built on first run only if they aren't there because there are no timestamp checks + rm -f "${EROOT}"/opt/${PN}/kernels/{4318,4098}/"*.kernel" + #have mercy on my soul +} |