pentoo-overlay/net-wireless/wifitap/wifitap-0.4.2-r1.ebuild

41 lines
935 B
Bash

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 )
inherit python-single-r1
DESCRIPTION="A wireless tool to do direct connection to client without passing through an AP"
HOMEPAGE="http://sid.rstack.org/index.php/Wifitap_EN"
SHA="f7ac906855cadb1c5a0a619d1e9e924802a9d6c6"
SRC_URI="https://github.com/s0lst1c3/wifitap/archive/${SHA}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
S="${WORKDIR}"/"${PN}-${SHA}"
DEPEND="net-analyzer/scapy"
pkg_setup() {
python-single-r1_pkg_setup
}
src_prepare() {
python_fix_shebang "${S}"
default
}
src_install() {
python_newscript wifiarp.py wifiarp
python_newscript wifidns.py wifidns
python_newscript wifiping.py wifiping
python_newscript wifitap.py wifitap
# also install util.py, required by all scripts
python_domodule utils.py
dodoc AUTHORS README.md Changelog
}