pentoo: migrate to pyrit in gentoo

This commit is contained in:
blshkv 2016-05-22 11:02:13 +08:00
parent e458719a58
commit 25093f6c48
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
15 changed files with 22 additions and 348 deletions

View file

@ -1,39 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
PYTHON_DEPEND="2"
inherit eutils python distutils subversion 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/@294"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="!<app-crypt/pyrit-0.3-r1
>=dev-util/nvidia-cuda-sdk-2.2
x11-drivers/nvidia-drivers"
RDEPEND="${DEPEND}"
pkg_setup() {
append-ldflags $(no-as-needed)
python_set_active_version 2
python_pkg_setup
}
src_compile() {
cd "${S}/cpyrit_cuda"
distutils_src_compile
}
src_install() {
cd "${S}/cpyrit_cuda"
distutils_src_install
}

View file

@ -1,46 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
PYTHON_DEPEND="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/"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="!<app-crypt/pyrit-0.3-r1
>=dev-util/nvidia-cuda-sdk-3.0
x11-drivers/nvidia-drivers"
RDEPEND="${DEPEND}"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_compile() {
cd "${S}/cpyrit_cuda"
distutils_src_compile
}
src_install() {
cd "${S}/cpyrit_cuda"
distutils_src_install
}
pkg_postinst() {
python_mod_optimize $(python_get_sitedir)/cpyrit
}
pkg_postrm() {
python_mod_cleanup $(python_get_sitedir)/cpyrit
}

View file

@ -1,47 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
PYTHON_DEPEND="2"
inherit eutils python distutils subversion 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/@294"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="!<app-crypt/pyrit-0.3-r1
dev-db/sqlite:3
dev-lang/python[sqlite]
>=dev-util/ati-stream-sdk-bin-2.0
>=x11-drivers/ati-drivers-10.0"
RDEPEND="${DEPEND}"
pkg_setup() {
append-ldflags $(no-as-needed)
python_set_active_version 2
python_pkg_setup
}
src_compile() {
epatch "${FILESDIR}/${P}.patch"
cd "${S}/cpyrit_opencl"
distutils_src_compile
}
src_install() {
cd "${S}/cpyrit_opencl"
distutils_src_install
# Prevent revdep_rebuild from trying to rebuild when amd opencl is not enabled
dodir /etc/revdep-rebuild/
echo "SEARCH_DIRS_MASK=\"$(python_get_sitedir)/cpyrit/_cpyrit_opencl.so\"" > \
"${ED}"/etc/revdep-rebuild/71-${PN}
}

View file

@ -1,47 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
PYTHON_DEPEND="2"
inherit eutils python distutils subversion 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/@294"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="!<app-crypt/pyrit-0.3-r1
dev-db/sqlite:3
dev-lang/python[sqlite]
dev-util/ati-app-sdk-bin
>=x11-drivers/ati-drivers-10.0"
RDEPEND="${DEPEND}"
pkg_setup() {
append-ldflags $(no-as-needed)
python_set_active_version 2
python_pkg_setup
}
src_compile() {
epatch "${FILESDIR}/${P}.patch"
cd "${S}/cpyrit_opencl"
distutils_src_compile
}
src_install() {
cd "${S}/cpyrit_opencl"
distutils_src_install
# Prevent revdep_rebuild from trying to rebuild when amd opencl is not enabled
dodir /etc/revdep-rebuild/
echo "SEARCH_DIRS_MASK=\"$(python_get_sitedir)/cpyrit/_cpyrit_opencl.so\"" > \
"${ED}"/etc/revdep-rebuild/71-${PN}
}

View file

@ -1,46 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
PYTHON_DEPEND="2"
inherit eutils python distutils subversion 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/@294"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="!<app-crypt/pyrit-0.3-r1
dev-db/sqlite:3
dev-lang/python[sqlite]
>=x11-drivers/ati-drivers-10.0"
RDEPEND="${DEPEND}"
pkg_setup() {
append-ldflags $(no-as-needed)
python_set_active_version 2
python_pkg_setup
}
src_compile() {
epatch "${FILESDIR}/${P}.patch"
cd "${S}/cpyrit_opencl"
distutils_src_compile
}
src_install() {
cd "${S}/cpyrit_opencl"
distutils_src_install
# Prevent revdep_rebuild from trying to rebuild when amd opencl is not enabled
dodir /etc/revdep-rebuild/
echo "SEARCH_DIRS_MASK=\"$(python_get_sitedir)/cpyrit/_cpyrit_opencl.so\"" > \
"${ED}"/etc/revdep-rebuild/71-${PN}
}

View file

@ -1,42 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
PYTHON_DEPEND="2"
inherit eutils python distutils subversion 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/@294"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="!<app-crypt/pyrit-0.3-r1
dev-db/sqlite:3
dev-lang/python[sqlite]
>=dev-util/ati-stream-sdk-bin-2.0
>=x11-drivers/ati-drivers-10.0"
RDEPEND="${DEPEND}"
pkg_setup() {
append-ldflags $(no-as-needed)
python_set_active_version 2
python_pkg_setup
}
src_compile() {
epatch "${FILESDIR}/${P}.patch"
cd "${S}/cpyrit_opencl"
distutils_src_compile
}
src_install() {
cd "${S}/cpyrit_opencl"
distutils_src_install
}

View file

@ -1,45 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
PYTHON_DEPEND="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/"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="virtual/opencl-sdk"
RDEPEND="${DEPEND}"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_compile() {
epatch "${FILESDIR}/${P}.patch"
cd "${S}/cpyrit_opencl"
distutils_src_compile
}
src_install() {
cd "${S}/cpyrit_opencl"
distutils_src_install
}
pkg_postinst() {
python_mod_optimize cpyrit/cpyrit.py
}
pkg_postrm() {
python_mod_cleanup cpyrit/cpyrit.py
}

View file

@ -1,13 +0,0 @@
Index: cpyrit_opencl/setup.py
===================================================================
--- cpyrit_opencl/setup.py (revision 294)
+++ cpyrit_opencl/setup.py (working copy)
@@ -52,7 +52,7 @@
pass
for path in ('/usr/local/opencl/OpenCL/common/inc', \
'/opt/opencl/OpenCL/common/inc', \
- '/usr/local/opencl/include', \
+ '/opt/ati-stream-sdk/include', \
'/usr/local/cuda/include'):
if os.path.exists(path):
OPENCL_INC_DIRS.append(path)

View file

@ -1,12 +0,0 @@
Index: cpyrit_opencl/setup.py
===================================================================
--- cpyrit_opencl/setup.py (revision 304)
+++ cpyrit_opencl/setup.py (working copy)
@@ -53,6 +53,7 @@
for path in ('/usr/local/opencl/OpenCL/common/inc', \
'/opt/opencl/OpenCL/common/inc', \
'/usr/local/opencl/include', \
+ '/opt/ati-stream-sdk/include', \
'/usr/local/cuda/include'):
if os.path.exists(path):
OPENCL_INC_DIRS.append(path)

View file

@ -23,7 +23,7 @@ DEPEND=">=virtual/jre-1.5
extra? ( app-crypt/crunch
net-analyzer/wireshark
net-analyzer/hydra
app-crypt/pyrit )"
net-wireless/pyrit )"
RDEPEND="${DEPEND}"
src_install() {

View file

@ -21,7 +21,7 @@ DEPEND=""
RDEPEND="net-wireless/aircrack-ng
dev-python/pexpect
dict? ( sys-apps/cracklib-words )
extra? ( app-crypt/pyrit[cuda?]
extra? ( net-wireless/pyrit[cuda?]
net-wireless/cowpatty
net-analyzer/macchanger
net-wireless/reaver-wps-fork-t6x

View file

@ -1,6 +1,6 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# $Id$
EAPI="5"
@ -24,8 +24,10 @@ RDEPEND="${DEPEND}
app-crypt/hashcat-gui
)
!livecd-stage1? (
video_cards_nvidia? ( opencl? ( app-crypt/pyrit )
cuda? ( app-crypt/pyrit ) )
video_cards_nvidia? (
opencl? ( net-wireless/pyrit[opencl] )
cuda? ( net-wireless/pyrit[cuda] )
)
)
dict? ( app-dicts/raft-wordlists
app-misc/crunch )
@ -46,4 +48,3 @@ RDEPEND="${DEPEND}
#bad cert
# net-analyzer/thc-pptp-bruter

View file

@ -1,6 +1,6 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# $Id$
EAPI="5"
@ -10,7 +10,8 @@ HOMEPAGE="http://www.pentoo.ch"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE="+b43 cuda gps drivers livecd-stage1 minipentoo +wpe"
IUSE_VIDEO_CARDS="video_cards_fglrx video_cards_nvidia"
IUSE="+b43 cuda gps drivers livecd-stage1 minipentoo opencl +wpe ${IUSE_VIDEO_CARDS}"
PDEPEND="
|| ( net-wireless/hostapd[karma] net-wireless/hostapd[karma_cli] )
@ -23,7 +24,11 @@ PDEPEND="
!livecd-stage1? ( net-wireless/wifite )
!minipentoo? (
!livecd-stage1? ( cuda? ( app-crypt/pyrit )
!livecd-stage1? (
video_cards_nvidia? (
opencl? ( net-wireless/pyrit[opencl] )
cuda? ( net-wireless/pyrit[cuda] )
)
drivers? (
|| ( net-wireless/compat-wireless
net-wireless/compat-wireless-builder

View file

@ -33,6 +33,10 @@ net-wireless/aircrack-ng
~net-wireless/mfoc-0.10.7 ~amd64
~net-wireless/pyrit-0.4.0
~net-wireless/cpyrit-cuda-0.4.0
~net-wireless/cpyrit-opencl-0.4.0
net-wireless/multimode
#most of the pentoo-radio stuff has no stable at all so it all lives in here for now
net-wireless/gr-osmosdr

1
profiles/updates/Q2-2016 Normal file
View file

@ -0,0 +1 @@
move app-crypt/pyrit net-wireless/pyrit