hashkill: bump

This commit is contained in:
Anton Bolshakov 2014-02-04 09:11:49 +00:00
parent f1399d68be
commit 52f88e39a2
2 changed files with 93 additions and 0 deletions

View file

@ -1,4 +1,5 @@
DIST hashkill-0.3.1.tar.gz 16872469 SHA256 1f72d60e45eb97f6408f9ae3d708f7f4ecb50fc8be43ab2fc4e199800b1c2bdd SHA512 696a6621d3b6c03f08021dd3a4e2716038e9e49ecf5347068d9e1b25d607decaf4d28b7aeb617aebcd26ea24e726f87229b5d02fbd54c7f4aa189c194e629c83 WHIRLPOOL 678cbada15e1b5ddb2335958c1860e1c6339140c53aad04c23373fc6242f5a99f4b0557e4b2a8c3bef35984000bf0149fc80def4e365eae1aeab2d33ba54f743
EBUILD hashkill-0.3.1-r1.ebuild 1371 SHA256 464e24c12324293746e9de8cc90c8fd32db6e229f3e82b9f42e8fe4ecf6fface SHA512 be6504d9e44d7606f1199c9dba6c595991c1726ee143b307558988de8b3f9f76d17df6d6344e5600f67e755ad44c215b6f8c8f438a92e14803b1a1192250aba8 WHIRLPOOL 99980f8ed836e3c2b6d7549788d99c078be630be9deafcc2d80e5fc4af5a0055d13fed68582d66f26f0cc10f1b45946227f708da97d326cfc778592bdb98c954
EBUILD hashkill-0.3.1_p20131031.ebuild 2471 SHA256 63659060cc51ae8614569553a432cbac190d36efaf2788c447d2b8319e42a387 SHA512 452fc33c974ba248459d798c0a5829084cdc2c0382d8c3ce82e4834bff11eb96a3d866e2dfee6c1a603e020e3e3e21513cb6deab2089f564022638dcb6c8bf10 WHIRLPOOL b3fc8d21b554231945b27c75bce416afaf19e9cff914c5a0d17b2b74136c1cdb83835e06fccc6d4f8d2ab8989fa7e26c83a4b462b62691727322225ac5a04c7b
EBUILD hashkill-0.3.1_p20140106.ebuild 2471 SHA256 3333c3c204ed10eb8208499f878da9c3f9532434528de6f9a68cabb9aeae836e SHA512 724e1437069d7f0ebf4a7157e14663ac2063264d52de7a0c158da6d28768eb8918bf710c5b3e93262b7de89d35b39787ed7efd7035062de4b401b4e7324f1377 WHIRLPOOL 34d996190db6cbfe151074f49f80eff86176be15262d749e8a677bbe6498c9335d0a6594e913ebbf3bbce769469c6b6931d57ff8cb2528f81f411947ae8c1be6
EBUILD hashkill-9999.ebuild 2245 SHA256 aa443e41c821c9c2811cd5053b0f5c317cafaaa0ac8bad9838cf45e22fc32d14 SHA512 5d166073d20f5df87983342f2ff4d5d57d43a759629c024dafd1cb57c419c21fa70aac5b5ec564785489d5c8d3c822c1e1760749fbea8048be3ca298cd7250a0 WHIRLPOOL 908f53301b11ce75801cc03cc63f5106424b3238a824f3e244ef2187a930a92aa9636b95275197b15d83f5c935df12464b72a32f114720b67c41cf840f44e96d

View file

@ -0,0 +1,92 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit git-2 autotools pax-utils toolchain-funcs
DESCRIPTION="Multi-threaded password recovery tool with multi-GPU support"
HOMEPAGE="http://www.gat3way.eu/hashkill"
EGIT_REPO_URI="git://github.com/gat3way/hashkill.git"
EGIT_COMMIT="4ffd5451f48e0574da53d073839aa3dfa819c349"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE_VIDEO_CARDS="video_cards_fglrx video_cards_nvidia"
IUSE="${IUSE_VIDEO_CARDS} opencl pax_kernel json"
DEPEND="opencl? ( virtual/opencl-sdk )
video_cards_nvidia? ( x11-drivers/nvidia-drivers )
video_cards_fglrx? ( x11-drivers/ati-drivers )
json? ( <dev-libs/json-c-0.11 )"
RDEPEND="${DEPEND}"
pkg_setup() {
if use video_cards_nvidia; then
if [ ! -w /dev/nvidia0 ]; then
einfo "To compile this package portage likely must be in the video group."
einfo "Please run \"gpasswd -a portage video\" if build fails."
fi
fi
if use video_cards_fglrx; then
if [ ! -w /dev/ati ]; then
einfo "To compile this package portage likely must be in the video group."
einfo "Please run \"gpasswd -a portage video\" if build fails."
fi
fi
}
src_prepare() {
if use pax_kernel; then
sed -e "s|amd-compiler$|amd-compiler \
\n\t\t paxctl -m amd-compiler |g" -i src/kernels/compiler/Makefile
sed -e "s|nvidia-compiler$|nvidia-compiler \
\n\t\t paxctl -m nvidia-compiler |g" -i src/kernels/compiler/Makefile
fi
#bug https://github.com/gat3way/hashkill/issues/53
use json || sed -e 's|JS_LIBS="-ljson"|JS_LIBS=""|g' -i json.m4
eautoreconf
}
src_configure() {
econf \
$(use_enable video_cards_nvidia nv-ocl) \
$(use_enable video_cards_fglrx amd-ocl) \
$(use_with json)
#the following might fail if gcc is built with USE="multislot"
if has_version sys-devel/gcc[-lto]; then
einfo "Warning: compiling without LTO optimisaiton"
sed -i 's| -flto -fwhole-program||g' src/Makefile
fi
}
src_compile() {
#the way opencl is doing compilation it requires this no matter what for both devices for enumeration
# Upstream bug https://github.com/gat3way/hashkill/issues/35
# we need write access to nvidia devices
addwrite /dev/nvidia0
addwrite /dev/nvidiactl
# we need write access to ati devices
addwrite /dev/ati
emake
}
src_test() {
cd tests
./test.sh
}
src_install() {
if use pax_kernel; then
pax-mark m src/hashkill
fi
emake DESTDIR="${D}" install
dodoc README
}