pyrit: version bump, the ebuild is .9999 ready

This commit is contained in:
Anton Bolshakov 2011-04-12 10:02:34 +00:00
parent d25c0f6d18
commit 255f33c549
2 changed files with 69 additions and 0 deletions

View file

@ -1,2 +1,4 @@
DIST pyrit-0.4.0.tar.gz 191614 RMD160 16438b6abee753581a74e7bc243244a560b9fdfb SHA1 3041c0d593c21df88f41416be872eca0997cf22b SHA256 eb1a21cb844b1ded3eab613a8e9d5e4ef901530b04668fb18fe82ed1b4afa7cc
EBUILD pyrit-0.3-r2.ebuild 948 RMD160 7c23b12e95884794f8291f27baf09b6e31418f0e SHA1 f0c7a03bf06530d474d00ea4c0aee244095c3072 SHA256 b3b00f94a0fe226628daa7c6ec66126a6f5f3c95e0abec8f0a32d3e3c25a17a1
EBUILD pyrit-0.4.0.ebuild 1374 RMD160 823b2bf48765fb3d6e0082bcbeb00b7e0ad998c9 SHA1 eb34bfbeb54a3537c01e2233c368a377f7d8971b SHA256 31b94409bb60b2189c51a9024231acdc870abca88306aac9616c34944b71f2ca
EBUILD pyrit-9999.ebuild 1014 RMD160 7694c57dbd7ee7a42b4e7ffb0674679a51d9a87a SHA1 d8ed45c11bf5c3490ca92c44bc18da9f6c35a5a4 SHA256 c32155d5b1ce1e1b41ed93d8a285db689f30baf7d85bbf49f6b66a9a56f81597

View file

@ -0,0 +1,67 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
PYTHON_DEPEND="2"
PYTHON_USE_WITH="sqlite"
inherit eutils python distutils
# flag-o-matic
DESCRIPTION="A GPU-based WPA-PSK and WPA2-PSK cracking tool"
HOMEPAGE="http://code.google.com/p/pyrit/"
LICENSE="GPL-3"
SLOT="0"
if [[ ${PV} == "9999" ]] ; then
inherit subversion
ESVN_REPO_URI="http://pyrit.googlecode.com/svn/trunk/"
KEYWORDS="~arm ~amd64 ~x86"
IUSE="calpp cuda opencl"
DEPEND="
calpp? ( app-crypt/cpyrit-calpp )
opencl? ( =app-crypt/cpyrit_opencl-9999 )
cuda? ( =app-crypt/cpyrit_cuda-9999 )"
else
SRC_URI="http://pyrit.googlecode.com/files/${P}.tar.gz"
KEYWORDS="amd64 arm ppc x86"
IUSE="cuda opencl"
DEPEND="!<app-crypt/pyrit-0.3-r1
opencl? ( ~app-crypt/cpyrit_opencl-0.3 )
cuda? ( ~app-crypt/cpyrit_cuda-0.3 )"
fi
RDEPEND="net-analyzer/scapy
dev-db/sqlite:3
${DEPEND}"
#pkg_setup() {
# append-ldflags $(no-as-needed)
# python_set_active_version 2
# python_pkg_setup
#}
src_compile() {
# pyrit fails with --as-needed will investigate properly later
# filter-ldflags -Wl,--as-needed
cd "${S}/pyrit"
distutils_src_compile
}
src_install() {
cd "${S}/pyrit"
distutils_src_install
}
pkg_postinst() {
python_mod_optimize {pyrit_cli.py,cpyrit}
}
pkg_postrm() {
python_mod_cleanup {pyrit_cli.py,cpyrit}
}