pyrit-0.5.0.ebuild 813 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. PYTHON_COMPAT=( python2_7 )
  5. DISTUTILS_SINGLE_IMPL=1
  6. inherit distutils-r1
  7. MY_PN="${PN^}"
  8. DESCRIPTION="GPU-accelerated attack against WPA-PSK authentication"
  9. HOMEPAGE="https://github.com/JPaulMora/Pyrit"
  10. SRC_URI="https://github.com/JPaulMora/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
  11. LICENSE="GPL-3+"
  12. SLOT="0"
  13. KEYWORDS="~amd64 ~x86"
  14. IUSE="cuda opencl test"
  15. DEPEND="dev-libs/openssl
  16. net-libs/libpcap
  17. test? ( >=net-analyzer/scapy-2[${PYTHON_USEDEP}] )"
  18. RDEPEND=">=net-analyzer/scapy-2
  19. opencl? ( net-wireless/cpyrit-opencl )
  20. cuda? ( net-wireless/cpyrit-cuda )"
  21. S="${WORKDIR}/${MY_PN}-${PV}"
  22. pkg_setup() {
  23. python-single-r1_pkg_setup
  24. }
  25. src_test() {
  26. cd test
  27. "${PYTHON}" test_pyrit.py
  28. }