From 17e82681588151572e451b0daf68fd568531d3e4 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 15 Dec 2023 08:46:53 +0000 Subject: gentoo auto-resync : 15:12:2023 - 08:46:53 --- net-analyzer/dsniff/Manifest | 3 + net-analyzer/dsniff/dsniff-2.4_beta1_p31.ebuild | 74 ++++++++++++++++++++++ .../files/dsniff-2.4_beta1_p31-c99-fixes.patch | 36 +++++++++++ 3 files changed, 113 insertions(+) create mode 100644 net-analyzer/dsniff/dsniff-2.4_beta1_p31.ebuild create mode 100644 net-analyzer/dsniff/files/dsniff-2.4_beta1_p31-c99-fixes.patch (limited to 'net-analyzer/dsniff') diff --git a/net-analyzer/dsniff/Manifest b/net-analyzer/dsniff/Manifest index 005687fac447..55a4eab54c17 100644 --- a/net-analyzer/dsniff/Manifest +++ b/net-analyzer/dsniff/Manifest @@ -1,7 +1,10 @@ AUX dsniff-2.4_beta1_p30-httppostfix.patch 635 BLAKE2B 1bec7f7441b80b4c3e965395d8b81a47a0b2df1eaa6b54aad3afc4e18a862e191e2cc03f7f2d85f34c819b800a0e54dc38f9d139d5c25f48181695eaedeb6566 SHA512 40c02577a4f1bb0cfdd93019ce968751dbdb55af059dd4537c9eea7103e6d5c89e34bf7bf934a259dd4cf0b78b4a76a7d2cfc44ce2a75eee0e1f460e8defbd04 AUX dsniff-2.4_beta1_p30-libdir-configure.patch 3810 BLAKE2B dfa3813f013bd3ec0a527ed48d57d545f439dea42243798c8bd85672d17f57391a74c7d86fb87bab88233b45531acef3ee4c8b7b4398208df1deae091dc1e382 SHA512 80719d441ea45a78b3bab7f0fb5747f88d7cd8dc8c96ffc3ec2ffcb6f5ac02f8c889a8538b0ed8b82146cd7200efefd7318950372f27e6d28fd1dff72934e558 AUX dsniff-2.4_beta1_p30-respect-AR.patch 508 BLAKE2B 585b4e0b959b037f695e191577db9ad99f41e579d1f047810999dfa39101380235b8641e9893ff9de323b00c2376c3cf96b2ba5788786c03d05df7748038c688 SHA512 2a408236f750d47b68b883d55dcf3bb0a2b50c74cf636f2aa61999972081ce6f96186a4fd6fa566928b3d0bbe2dcc14c0f715701e2b4ec417e8f9f5cc0d154e3 +AUX dsniff-2.4_beta1_p31-c99-fixes.patch 877 BLAKE2B 8332eb26db5b6bbc092aa35946e7a27a86967f581ee3e96b35155ff93125ab421ac5499a4a5a0b7fbb91ce134a4b0edf4bbbc6f58727ac280633ac5e36c2bdd2 SHA512 294ea0397de5e8d006455714a2f88359e3b160172df457ab7b75d9a888611bc039a643fd566e806e0f56f8e3675e7836a2d007c882c3bef08cdbfeb6cb3b7158 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.orig.tar.gz 130220 BLAKE2B e6953a5bfc5331b030e1a5335987c51fa4cf2c644fc4e7ac9aefe17f52373a1f66ccef36c5d9136542f68a475350138b1f3e501bc9494a0fd4988c7c5a7b2eef SHA512 09c3a864f112f81b8fdf93436886b14eb8f603ec751b13f18cf027307f24098c018eacf98b3ae353731a0cf6f1c9cacfafbb534a0db8b9f0cc793e7515c41b5a EBUILD dsniff-2.4_beta1_p30.ebuild 1716 BLAKE2B 604355e16c5721effd2188c483816bf9c3b28c8ffdd3f132c4e6d311852bf158df21436c53fd4c75080d4d82d404124a1a6ca5520cf9c98d52d388ef06263e74 SHA512 41177a0f130770934bfd7c8eb7fdc7d802561f097c6b7e075f78aa37bdd106b61e21988f6228807e50f3530963cb6acf982001ac67f448e9083e24931537ba5c +EBUILD dsniff-2.4_beta1_p31.ebuild 1767 BLAKE2B 6d278c25bd66f7985fce8443d1647ec84d218208e1c225ddb6dd185bbc5ddda1b7b55a9bfde534388056944ae551e38a4472562f995e2f2aa0838b1dae4619c6 SHA512 a1c241dd5a2393526e09ecddc4b1aca07f04e2b8d8a20e762e0da3350aa92c6e888750e2b985d1524fff25dd43bc6ca6e90a1339b4b95c93264c2244ce843550 MISC metadata.xml 853 BLAKE2B d91a9dd0cebe081176b43f3c480532ce6e55fd995c1c24a55cc8dfd4738bd04b82f88fa4422d12c55320c8360003fe5fa0ee1cfcbbec36a102ce68776d9586e1 SHA512 8138c27c6025549ae01ce3c766c1afb52e40f2cd386e27678b43da956b6cf9c42710d293067375d7b79171a0d1d8c5f80264f3d27aacd112a93c84eedd17266e diff --git a/net-analyzer/dsniff/dsniff-2.4_beta1_p31.ebuild b/net-analyzer/dsniff/dsniff-2.4_beta1_p31.ebuild new file mode 100644 index 000000000000..f7cbbc6b9514 --- /dev/null +++ b/net-analyzer/dsniff/dsniff-2.4_beta1_p31.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools 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 + "${FILESDIR}"/${PN}-2.4_beta1_p31-c99-fixes.patch +) + +src_prepare() { + default + + mv configure.{in,ac} || die + eautoreconf +} + +src_configure() { + 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 +} diff --git a/net-analyzer/dsniff/files/dsniff-2.4_beta1_p31-c99-fixes.patch b/net-analyzer/dsniff/files/dsniff-2.4_beta1_p31-c99-fixes.patch new file mode 100644 index 000000000000..f77d21ea9510 --- /dev/null +++ b/net-analyzer/dsniff/files/dsniff-2.4_beta1_p31-c99-fixes.patch @@ -0,0 +1,36 @@ +# Gentoo bug: https://bugs.gentoo.org/919503 + +diff --git a/tcpkill.c b/tcpkill.c +index 1a64d40..de7ad00 100644 +--- a/tcpkill.c ++++ b/tcpkill.c +@@ -19,6 +19,7 @@ + #include + #include + #include ++#include + + #include "pcaputil.h" + #include "version.h" +@@ -84,7 +85,7 @@ tcp_kill_cb(u_char *user, const struct pcap_pkthdr *pcap, const u_char *pkt) + if (libnet_write(l) < 0) + warn("write"); + +- fprintf(stderr, "%s R %lu:%lu(0) win 0\n", ctext, seq, seq); ++ fprintf(stderr, "%s R %"PRIu32":%"PRIu32"(0) win 0\n", ctext, seq, seq); + } + } + +diff --git a/urlsnarf.c b/urlsnarf.c +index f46ccf8..d57b9dd 100644 +--- a/urlsnarf.c ++++ b/urlsnarf.c +@@ -341,7 +341,7 @@ main(int argc, char *argv[]) + } + + struct pcap_pkthdr *h; +- u_char *d; ++ const u_char *d; + int rc; + while ((rc = pcap_next_ex(p, &h, &d)) == 1) { + tt = h->ts.tv_sec; -- cgit v1.2.3