mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
net-analyzer/responder: needs aioquic and netifaces
Responder needs the aioquic and netifaces packages to run. These are both available in the Gentoo repo, but aioquic does not have an x86 keyword, so it has been removed here as well. Signed-off-by: Joel Anderson <joel@goatshriek.com>
This commit is contained in:
parent
cb02517742
commit
c1ce7d278f
1 changed files with 53 additions and 0 deletions
53
net-analyzer/responder/responder-3.1.6.0-r1.ebuild
Normal file
53
net-analyzer/responder/responder-3.1.6.0-r1.ebuild
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
|
||||
inherit python-single-r1
|
||||
|
||||
DESCRIPTION="LLMNR, NBT-NS and MDNS poisoner, HTTP/SMB/MSSQL/FTP/LDAP rogue authentication"
|
||||
HOMEPAGE="https://github.com/lgandx/Responder"
|
||||
SRC_URI="https://github.com/lgandx/Responder/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/Responder-${PV}"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND="${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/aioquic[${PYTHON_USEDEP}]
|
||||
>=dev-python/netifaces-0.10.4[${PYTHON_USEDEP}]
|
||||
')"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
python_fix_shebang "${S}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir /usr/$(get_libdir)/${PN}
|
||||
cp -R * "${ED}"/usr/$(get_libdir)/${PN} || die "Copy files failed"
|
||||
|
||||
# dosym "${EPREFIX}"/usr/$(get_libdir)/${PN}/Responder.py /usr/sbin/responder
|
||||
dosym -r "${EPREFIX}"/usr/$(get_libdir)/${PN}/Report.py /usr/bin/responder_report
|
||||
dosym -r "${EPREFIX}"/usr/$(get_libdir)/${PN}/DumpHash.py /usr/bin/responder_dumphash
|
||||
|
||||
newsbin - responder <<-EOF
|
||||
#!/bin/sh
|
||||
cd /usr/$(get_libdir)/responder
|
||||
${EPYTHON} ./Responder.py \${@}
|
||||
EOF
|
||||
|
||||
python_optimize "${ED}/usr/$(get_libdir)/${PN}"
|
||||
}
|
||||
Loading…
Reference in a new issue