* added pyrit-0.3

This commit is contained in:
grimmlin 2010-02-28 00:29:33 +00:00
parent 5b04a9de43
commit e3d0151ed2
3 changed files with 82 additions and 0 deletions

View file

@ -1,5 +1,7 @@
AUX pyrit-0.2.2.patch 1072 RMD160 a78dfe38760d6146848f054da2b2b2ea2abf9a8e SHA1 8848b76dda5d332975537021bb9d7996d7c17f91 SHA256 3c424fab44379b5e81f001887baf15ba0afc2e0466d29d612865303e689fa980
AUX pyrit-0.2.4.patch 1106 RMD160 ddb3374356d684376420eb6ca0032945f0bd9492 SHA1 4d4399a4e2b4c0fee932dad2ec4e9562a5fb6704 SHA256 6f0345c00c6dc7fc4b13a3b6ce94c030d2db568b1b772100bd68cb200dce0f43
AUX pyrit-0.3.patch 826 RMD160 62f810c2697cb3a2e6ea3dea565c9e6134c20d40 SHA1 b83721a565cb86ad5552fd2fdce23eaf1ef5c9c2 SHA256 4dd600140f6592f353dd96504b4381a32319a670ca168611a0f1d5e45a3c89c4
AUX pyrit-9999.patch 950 RMD160 4bade1fc92ab97c77d62f7d3ebee960e8b1b71f7 SHA1 8c83d40418b69088f0cfcc48336722889e5cb289 SHA256 663f821ee8e30b3f0e35d6415379b3268c5ada29d163fb21d9a3ba576698b0b6
EBUILD pyrit-0.2.4-r1.ebuild 1156 RMD160 931b385925e884fafd1e4d245d1e1f6ea27beafb SHA1 6108369f296a445af4ec79af7c239e8c58317747 SHA256 d0465f8cf70e2a137f791136b0c04535302b836a6610230ebe9ccc187b8f390b
EBUILD pyrit-0.3.ebuild 1148 RMD160 6cd54b5372655b703b0b61bb2487a8d705353795 SHA1 d89ba89e6b65d0df23c79349b6668546177c8cbb SHA256 8e850120842228177f41a6d6c2d3af65ef9bdf5562d8b3a6688b90d610184024
EBUILD pyrit-9999.ebuild 1212 RMD160 1a562f7931334cc71b1f6bc6bb1cbe5f5e0394ac SHA1 bf57a50d29ce2d4135ccb3aab6f918ff2799f5cf SHA256 538a4418df57b35b76da75ca994bb750140334447c627beea142c11ac8f8cfc6

View file

@ -0,0 +1,21 @@
Index: cpyrit_opencl/setup.py
===================================================================
--- cpyrit_opencl/setup.py (revision 225)
+++ cpyrit_opencl/setup.py (working copy)
@@ -32,7 +32,7 @@
OPENCL_INC_DIRS = []
for path in ('/usr/local/opencl/OpenCL/common/inc', \
'/opt/opencl/OpenCL/common/inc', \
- '/usr/local/opencl/include'):
+ '/opt/ati-stream-sdk/include'):
if os.path.exists(path):
OPENCL_INC_DIRS.append(path)
break
@@ -91,6 +91,7 @@
libraries = ['ssl', 'OpenCL', 'z'],
sources = ['_cpyrit_opencl.c'],
include_dirs = OPENCL_INC_DIRS,
+ library_dirs = ['/opt/ati-stream-sdk/lib'],
extra_compile_args = EXTRA_COMPILE_ARGS)
setup_args = dict(

View file

@ -0,0 +1,59 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit eutils python distutils subversion
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/@225"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="cuda stream"
DEPEND="dev-db/sqlite:3
dev-lang/python[sqlite]
stream? ( >=dev-util/ati-stream-sdk-bin-2.0
>=x11-drivers/ati-drivers-9.11 )
cuda? ( >=dev-util/nvidia-cuda-sdk-2.2
x11-drivers/nvidia-drivers )"
RDEPEND="${DEPEND}"
src_compile() {
epatch "${FILESDIR}/${P}.patch"
cd "${S}/pyrit"
distutils_src_compile
if use cuda; then
cd "${S}/cpyrit_cuda"
distutils_src_compile
fi
if use stream; then
cd "${S}/cpyrit_opencl"
distutils_src_compile
fi
}
src_install() {
cd "${S}/pyrit"
distutils_src_install
if use cuda; then
cd "${S}/cpyrit_cuda"
distutils_src_install
fi
if use stream; then
cd "${S}/cpyrit_opencl"
distutils_src_install
fi
}
pkg_postinst() {
python_mod_optimize
}
pkg_postrm() {
python_mod_cleanup
}