responder-3.1.6.0.ebuild

This commit is contained in:
Anton Bolshakov 2025-07-11 10:16:35 +08:00
parent d5c30173ca
commit 01b923c48e
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
2 changed files with 50 additions and 0 deletions

View file

@ -1 +1,2 @@
DIST responder-3.1.5.0.tar.gz 778892 BLAKE2B 6e1d2c74cac9be542843a4cf0f6e571491e4f46179e5bd0e3569174ca7ca04f066e1b9a81c3053fc1ffc77a05a3aca2909389cdfbadaf7f70f8b03b2c340cdf4 SHA512 5e44c34901ce1de4e55b477c11ccfb6acd681b64e56c51807ccb352340cb838888ee2bdbdf3bb4bb011e0c2d15c9baadecba24896d4c641059ba87551ce35057
DIST responder-3.1.6.0.tar.gz 781512 BLAKE2B a26dcc3b9a8b935b11496bc818aa5f3b9abb6a936703b385d1d696c4c664333edc2bc5f5284fdae0c4530649b36ed758a0e8e3e50f1984b591a4adcd2e378da8 SHA512 1683c5b0047f52470b47fd0a27d1ec254c9b1aa77bb4c0545c6fb3f7af1c6d250526a821e689ce2746cbcc3a90edcd42ad6797edd7c15cabb5fcb5c067335d4e

View file

@ -0,0 +1,49 @@
# 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 x86"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="${PYTHON_DEPS}"
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}"
}