hashkill: bump

This commit is contained in:
Anton Bolshakov 2013-08-17 15:12:47 +00:00
parent 69f5a4fc37
commit 74950273f1
2 changed files with 88 additions and 0 deletions

View file

@ -2,4 +2,5 @@ DIST hashkill-0.3.1.tar.gz 16872469 SHA256 1f72d60e45eb97f6408f9ae3d708f7f4ecb50
EBUILD hashkill-0.3.1-r1.ebuild 1364 SHA256 06684559859ee893e2f90c19da5dd67fa733aa4d41b4824ffc2c73f9f4a71cd4 SHA512 33f008f1073386e60763ff7734b7871215bf2ee73fd2857b516e60eda4ebb49418f03ba96409045c005456d0f51e17fb08ae552672694ce68943a0a3fa71a118 WHIRLPOOL d823e17a6887cde927230d9ea0ebcdad22188d09eb26bc007fe47afc7b511318013b864d0d23e6147fbecacc3a2bc0ce2e20d06b8588ceec32bf650256f68378
EBUILD hashkill-0.3.1_p20130427.ebuild 2311 SHA256 cd093cbf0ceb4bd2cd7b295ca972ba9b9112afc341119116e78f4b9022406a19 SHA512 4640064f5e57e73ce377dc956650c1894a69c3c2312ed0bf05a4d165c8e7c64a44069d55711029dd3ca29559a30290e60d1c6e52be4b6555263f825ddbff1457 WHIRLPOOL da5badb25758be9b4c3fecfe393bb3cf589445a7bb43cb8174cbfe63a013ebcd5bc69105c1d781985cac1cf49f92facb2a2aa04875851965ac491db1120a97af
EBUILD hashkill-0.3.1_p20130509.ebuild 2311 SHA256 4cbc0a682f983728a52d640b044737a6a4b7db38e18fcb06484171c9c33ec4a9 SHA512 3812a300a1fb8e10d684fc418eece9f268a23b1c697b82fdec6414f41a42a6cfa040f2c82f0cc5e686bb61569860d768c811ed03315b18580fff826b22f550e9 WHIRLPOOL fdfa1a27ddcd236e993acc1060a4a9461bf9438bb178e116464943ba0c425003eed201d22d4ac55001b2d668c75a9c37030d7e105eff54a3954cd14398ac841e
EBUILD hashkill-0.3.1_p20130730.ebuild 2311 SHA256 eb2391fbe67a48be7581c84bdfcdb879bb6d61202af957fcc026350f6bd9c711 SHA512 af827b330e5e4192b8d6f048db958584f11623c9a9af97c2f0415c1bab290967e2cb4811eefc66e29c211b3283b1b292dee313a3b73f19f50d8a39157e41b326 WHIRLPOOL dc4eda55de06a5927083272740dc72d848f0f2a4b46c736efb2be86c01b61949b12e5e089faa3147d15d5b859c89824433c80b2b597d67416dbdb0cbafa139f3
EBUILD hashkill-9999.ebuild 2245 SHA256 aa443e41c821c9c2811cd5053b0f5c317cafaaa0ac8bad9838cf45e22fc32d14 SHA512 5d166073d20f5df87983342f2ff4d5d57d43a759629c024dafd1cb57c419c21fa70aac5b5ec564785489d5c8d3c822c1e1760749fbea8048be3ca298cd7250a0 WHIRLPOOL 908f53301b11ce75801cc03cc63f5106424b3238a824f3e244ef2187a930a92aa9636b95275197b15d83f5c935df12464b72a32f114720b67c41cf840f44e96d

View file

@ -0,0 +1,87 @@
# 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="02ec3342ec124e3561b7429e78cac9bbdd6e3a86"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE_VIDEO_CARDS="video_cards_fglrx video_cards_nvidia"
IUSE="${IUSE_VIDEO_CARDS} opencl pax_kernel"
DEPEND="opencl? ( virtual/opencl-sdk )
video_cards_nvidia? ( x11-drivers/nvidia-drivers )
video_cards_fglrx? ( x11-drivers/ati-drivers )
dev-libs/json-c"
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
eautoreconf
}
src_configure() {
econf \
$(use_enable video_cards_nvidia nv-ocl) \
$(use_enable video_cards_fglrx amd-ocl)
#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
}