fern-wifi-cracker: bump to 3.0; project ported from Python 2.x to Python 3

This commit is contained in:
Yury Martynov 2019-10-05 22:14:33 +03:00
parent ffee7105a0
commit 528501d0bf
No known key found for this signature in database
GPG key ID: EBE62DD0CCEAE19E
2 changed files with 89 additions and 0 deletions

View file

@ -1 +1,2 @@
DIST fern-wifi-cracker-2.9.tar.gz 739349 BLAKE2B 1e3eef80b9a58778eaf7499e4d0eb7aa1a132a7e3ede4610d3fe1d533615267b633d28ddb21864ff287f0a0b4cdc5aecac83896c2d384bb8d0c2f6132ede7ac2 SHA512 25cae2c29186cbb0a0aa81cfc624b261ce86240ae5cd6c220e89a3a5cad43b4da35e4c981c93ee25443bea9afd6fb6422c25553de85bfa44bbf7a798f5fe6bb6
DIST fern-wifi-cracker-3.0.tar.gz 739360 BLAKE2B dc5b5131276ed6defb6eb332ccd3b249d0234d712f0658fead4c41da7d93a2813e59ac8ffbd85ec95ce3160ee67271d9be2c8c92b46b41e00c0956f6c8fffd4a SHA512 e104b9aed517ffd158c83bda24f2496cbb33eeb4b54adfe0963a7d176cadacd374b495fd3f2d936d4e32f28c96831957ddbd264f8bfe9d9a8e181f139ef4e98a

View file

@ -0,0 +1,88 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{5,6,7} )
PYTHON_REQ_USE="sqlite"
inherit eutils desktop python-single-r1 xdg-utils
DESCRIPTION="Wireless tool for WEP/WPA cracking and WPS keys recovery"
HOMEPAGE="https://github.com/savio-code/fern-wifi-cracker"
SRC_URI="https://github.com/savio-code/fern-wifi-cracker/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="dict policykit"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}]
net-analyzer/macchanger
net-wireless/aircrack-ng
>=net-analyzer/scapy-2.4.3[${PYTHON_USEDEP}]
dict? ( sys-apps/cracklib-words )
|| ( net-wireless/reaver-wps-fork-t6x net-wireless/reaver )
policykit? ( sys-auth/polkit )"
S="${WORKDIR}/${P}/Fern-Wifi-Cracker"
pkg_setup() {
python_setup
}
src_prepare() {
# disable updates
sed \
-e "s|self.connect(self.update_button|#self.connect(self.update_button|" \
-i core/fern.py || die
sed \
-e "s|thread.start_new_thread(self.update_initializtion_check|#thread.start_new_thread(self.update_initializtion_check|" \
-i core/fern.py || die
python_fix_shebang "${S}"
default
}
src_install() {
insinto "/usr/share/fern-wifi-cracker"
doins -r *
python_optimize "${ED%/}/usr/share/fern-wifi-cracker"
dosym "../fern-wifi-cracker/resources/icon.png" "/usr/share/pixmaps/${PN}.png"
make_wrapper $PN \
"python3 /usr/share/fern-wifi-cracker/execute.py"
if use policykit; then
insinto "/usr/share/polkit-1/actions/"
doins "${FILESDIR}"/com.fern-pro.pkexec.fern-wifi-cracker.policy
make_desktop_entry \
"pkexec /usr/bin/${PN}" \
"Fern Wifi Cracker" \
"${PN}" \
"System;Security;X-Pentoo;X-Penetration;X-Wireless;"
else
make_desktop_entry \
"$PN" \
"Fern Wifi Cracker" \
"$PN" \
"System;Security;X-Pentoo;X-Penetration;X-Wireless;"
fi
dodoc ../README.md
}
pkg_postinst() {
xdg_icon_cache_update
xdg_desktop_database_update
}
pkg_postrm() {
xdg_icon_cache_update
xdg_desktop_database_update
}