commit: 2882380fdaccd3fe6b0550bca33ecd23264c89b5 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Feb 16 12:44:28 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Feb 16 12:44:28 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2882380f
net-analyzer/dsniff: add 2.4_beta1_p34 * Update to Debian patchset 34 * Build w/ -std=gnu17 & filter LTO (we already have way too many patches in the heap from Debian, not adding more; dead upstream) Closes: https://bugs.gentoo.org/946622 Signed-off-by: Sam James <sam <AT> gentoo.org> net-analyzer/dsniff/Manifest | 1 + net-analyzer/dsniff/dsniff-2.4_beta1_p34.ebuild | 83 +++++++++++++++++++++++++ 2 files changed, 84 insertions(+) diff --git a/net-analyzer/dsniff/Manifest b/net-analyzer/dsniff/Manifest index f299e852f03d..b2e7c1ce8794 100644 --- a/net-analyzer/dsniff/Manifest +++ b/net-analyzer/dsniff/Manifest @@ -1,3 +1,4 @@ DIST dsniff_2.4b1+debian-30.debian.tar.xz 30788 BLAKE2B 8605b1dcca36f626f31410d88d25a57e6661b57b941155cdbde951991b09fb2dd7c147b1fdd1a22eded1cf904c890317b1844a7829cd6e43fd2fc5defc79b5f3 SHA512 45ffe34fcd30cd1461a354891b9d5567038cc176dbfa79c67020075cd40ae09b7092954925019e583d0d69cae76a558049b489745454a8034ce3e9e832c58f64 DIST dsniff_2.4b1+debian-31.debian.tar.xz 30848 BLAKE2B 46bdfa08170fbfbba35fcc67340fc35352ef276dd5e8e00a540da39d28364c3198198eefeb6b85cb05e74d3785fc61c7e8e58d6ce37e0b62e6018e4842d938ad SHA512 da927bb887db6761a07dc2460bdeb834b386ccc5b8aa50ebce804ee130f89379268412cddd83ad64cc763e98e2f42a7efc23b7ca77db59445533272cb408088f +DIST dsniff_2.4b1+debian-34.debian.tar.xz 31148 BLAKE2B 09b605065d8e03ea5c2f9083420feca3a05d4453ca7a46f2886766f34aed23e3cb83d73f12dbb633c1142d187b66a5508b3c583582e1902d4957e3813ed9929a SHA512 f539d59d931acc7fba97f079a33301b415d6dc769bf2ca3f1b3bf0fcfdf9cfc3c2454e017f5c47d39bcc5f47b91f70f6e2abc8cdeae631aa72946eb84b6bebf5 DIST dsniff_2.4b1+debian.orig.tar.gz 130220 BLAKE2B e6953a5bfc5331b030e1a5335987c51fa4cf2c644fc4e7ac9aefe17f52373a1f66ccef36c5d9136542f68a475350138b1f3e501bc9494a0fd4988c7c5a7b2eef SHA512 09c3a864f112f81b8fdf93436886b14eb8f603ec751b13f18cf027307f24098c018eacf98b3ae353731a0cf6f1c9cacfafbb534a0db8b9f0cc793e7515c41b5a diff --git a/net-analyzer/dsniff/dsniff-2.4_beta1_p34.ebuild b/net-analyzer/dsniff/dsniff-2.4_beta1_p34.ebuild new file mode 100644 index 000000000000..4aa1cdbcd003 --- /dev/null +++ b/net-analyzer/dsniff/dsniff-2.4_beta1_p34.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic toolchain-funcs + +MY_PV="${PV/_beta/b}" +MY_PV="${MY_PV/_p*/}" +MY_PV="$(ver_rs 1 '.' "${MY_PV}")" +# 2.4_beta1_p30 -> 2.4beta1-30 +MY_DEB_PV="$(ver_cut 1-2)$(ver_cut 3-4)-$(ver_cut 6)" + +DESCRIPTION="A collection of tools for network auditing and penetration testing" +HOMEPAGE="https://monkey.org/~dugsong/dsniff/" +SRC_URI="mirror://debian/pool/main/${PN::1}/${PN}/${PN}_${MY_PV}+debian.orig.tar.gz + mirror://debian/pool/main/${PN::1}/${PN}/${PN}_${MY_PV}+debian-${PV/*_p}.debian.tar.xz" +S="${WORKDIR}/${P/_beta1*/}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="X" + +# There's a berkdb configure option but we get a build failure if +# we try to disable it. Not clear how useful the package is +# without it anyway. +RDEPEND=" + net-libs/libpcap + >=net-libs/libnet-1.1.2.1-r1 + >=net-libs/libnids-1.21 + net-libs/libnsl:= + net-libs/libtirpc:= + dev-libs/openssl:= + >=sys-libs/db-4:= + X? ( x11-libs/libXmu ) +" +DEPEND=" + ${DEPEND} + net-libs/rpcsvc-proto +" +# Calls rpcgen during build +BDEPEND="net-libs/rpcsvc-proto" + +PATCHES=( + "${WORKDIR}"/debian/patches/ + "${FILESDIR}"/${PN}-2.4_beta1_p30-httppostfix.patch + "${FILESDIR}"/${PN}-2.4_beta1_p30-libdir-configure.patch + "${FILESDIR}"/${PN}-2.4_beta1_p30-respect-AR.patch +) + +src_prepare() { + default + + mv configure.{in,ac} || die + eautoreconf +} + +src_configure() { + # bug #946622 + append-flags -std=gnu17 + # Opt_dns clash (not worth reporting/patching; we already have + # a huge heap of patches from Debian) + filter-lto + + tc-export AR + + econf \ + $(use_with X x) +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + emake install install_prefix="${D}" + + dodir /etc/dsniff + cp "${ED}"/usr/share/dsniff/{dnsspoof.hosts,dsniff.{magic,services}} \ + "${ED}"/etc/dsniff/ || die + dodoc CHANGES README TODO +}
