From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id DEFB41381F3 for ; Mon, 29 Apr 2013 17:40:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 61A14E096D; Mon, 29 Apr 2013 17:40:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EF0D8E096D for ; Mon, 29 Apr 2013 17:40:11 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E7CD133DD28 for ; Mon, 29 Apr 2013 17:40:10 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 2326) id A89E02171D; Mon, 29 Apr 2013 17:40:09 +0000 (UTC) From: "Richard Farina (zerochaos)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, zerochaos@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in app-crypt/oclhashcat-lite-bin: oclhashcat-lite-bin-0.15.ebuild ChangeLog X-VCS-Repository: gentoo-x86 X-VCS-Files: oclhashcat-lite-bin-0.15.ebuild ChangeLog X-VCS-Directories: app-crypt/oclhashcat-lite-bin X-VCS-Committer: zerochaos X-VCS-Committer-Name: Richard Farina Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Message-Id: <20130429174009.A89E02171D@flycatcher.gentoo.org> Date: Mon, 29 Apr 2013 17:40:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 7cd210d7-d3fa-43c5-8278-3093adf97814 X-Archives-Hash: 84339883cdce15575b3ad37fc1c0eed6 zerochaos 13/04/29 17:40:09 Modified: oclhashcat-lite-bin-0.15.ebuild ChangeLog Log: ebuild cleanup, fix tests, fix running as user (Portage version: 2.1.11.55/cvs/Linux x86_64, signed Manifest commit with key DD11F94A) Revision Changes Path 1.2 app-crypt/oclhashcat-lite-bin/oclhashcat-lite-bin-0.15.ebuild file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/oclhashcat-lite-bin/oclhashcat-lite-bin-0.15.ebuild?rev=1.2&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/oclhashcat-lite-bin/oclhashcat-lite-bin-0.15.ebuild?rev=1.2&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/oclhashcat-lite-bin/oclhashcat-lite-bin-0.15.ebuild?r1=1.1&r2=1.2 Index: oclhashcat-lite-bin-0.15.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/app-crypt/oclhashcat-lite-bin/oclhashcat-lite-bin-0.15.ebuild,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- oclhashcat-lite-bin-0.15.ebuild 23 Apr 2013 02:49:26 -0000 1.1 +++ oclhashcat-lite-bin-0.15.ebuild 29 Apr 2013 17:40:09 -0000 1.2 @@ -1,6 +1,6 @@ # 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 $ +# $Header: /var/cvsroot/gentoo-x86/app-crypt/oclhashcat-lite-bin/oclhashcat-lite-bin-0.15.ebuild,v 1.2 2013/04/29 17:40:09 zerochaos Exp $ EAPI=5 @@ -32,28 +32,7 @@ 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 +src_prepare() { if use x86; then rm oclHashcat-lite64.bin || die rm cudaHashcat-lite64.bin || die @@ -71,8 +50,39 @@ 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 + + pax-mark r *Hashcat-lite*.bin +} + +src_test() { + printf "%02x" ${PV#0.} > "${S}"/eula.accepted + if use video_cards_nvidia; then + addwrite /dev/nvidia0 + addwrite /dev/nvidiactl + 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 + if use amd64; then + ./cudaHashcat-lite64.bin 6fc33db981c6c55189bbda9625eacd6d + elif use x86; then + ./cudaHashcat-lite32.bin 6fc33db981c6c55189bbda9625eacd6d + fi + fi + if use video_cards_fglrx; then + addwrite /dev/ati + if use amd64; then + ./oclHashcat-lite64.bin 6fc33db981c6c55189bbda9625eacd6d + elif use x86; then + ./oclHashcat-lite32.bin 6fc33db981c6c55189bbda9625eacd6d + fi + fi + rm eula.accepted cudaHashcat-lite.restore +} + +src_install() { + dodoc docs/* + rm -r "${S}"/*.exe "${S}"/*.cmd "${S}"/docs || die insinto /opt/${PN} doins -r "${S}"/* @@ -125,7 +135,8 @@ done fperms +x /opt/bin/oclhashcat-lite - fowners root:video /opt/${PN} + fowners -R root:video /opt/${PN} + fperms g+w /opt/${PN} einfo "oclhashcat-lite can be run as user if you are in the video group" } 1.8 app-crypt/oclhashcat-lite-bin/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/oclhashcat-lite-bin/ChangeLog?rev=1.8&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/oclhashcat-lite-bin/ChangeLog?rev=1.8&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/oclhashcat-lite-bin/ChangeLog?r1=1.7&r2=1.8 Index: ChangeLog =================================================================== RCS file: /var/cvsroot/gentoo-x86/app-crypt/oclhashcat-lite-bin/ChangeLog,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- ChangeLog 23 Apr 2013 02:49:26 -0000 1.7 +++ ChangeLog 29 Apr 2013 17:40:09 -0000 1.8 @@ -1,6 +1,10 @@ # 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.7 2013/04/23 02:49:26 zerochaos Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-crypt/oclhashcat-lite-bin/ChangeLog,v 1.8 2013/04/29 17:40:09 zerochaos Exp $ + + 29 Apr 2013; Rick Farina + oclhashcat-lite-bin-0.15.ebuild: + ebuild cleanup, fix tests, fix running as user *oclhashcat-lite-bin-0.15 (23 Apr 2013)