pyrit: stable and 9999 ebuilds are merged

This commit is contained in:
Anton Bolshakov 2011-04-15 04:59:26 +00:00
parent 705d2ddf6c
commit 4c16e834be
2 changed files with 35 additions and 13 deletions

View file

@ -1,4 +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
EBUILD pyrit-9999.ebuild 1374 RMD160 823b2bf48765fb3d6e0082bcbeb00b7e0ad998c9 SHA1 eb34bfbeb54a3537c01e2233c368a377f7d8971b SHA256 31b94409bb60b2189c51a9024231acdc870abca88306aac9616c34944b71f2ca

View file

@ -2,31 +2,53 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
EAPI=3
inherit eutils python distutils subversion flag-o-matic
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/"
ESVN_REPO_URI="http://pyrit.googlecode.com/svn/trunk/"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~arm ~amd64 ~x86"
IUSE="calpp cuda opencl"
DEPEND="dev-db/sqlite:3
dev-lang/python[sqlite]
net-analyzer/scapy
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"
RDEPEND="${DEPEND}"
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
# filter-ldflags -Wl,--as-needed
cd "${S}/pyrit"
distutils_src_compile
}
@ -37,9 +59,9 @@ src_install() {
}
pkg_postinst() {
python_mod_optimize $(python_get_sitedir)/{pyrit_cli.py,cpyrit}
python_mod_optimize {pyrit_cli.py,cpyrit}
}
pkg_postrm() {
python_mod_cleanup $(python_get_sitedir)/{pyrit_cli.py,cpyrit}
python_mod_cleanup {pyrit_cli.py,cpyrit}
}