commit:     1a64d26ee5a5aaaad860dd68a1f2756abdc2b3a0
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 21 19:31:08 2025 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Mon Apr 21 19:32:37 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a64d26e

net-analyzer/dhcpdump: add 1.9, use new upstream

Use new upstream from the fork [1]. It looks maintained, is used by
fedora, debian, nix.

[1] https://github.com/bbonev/dhcpdump

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 net-analyzer/dhcpdump/Manifest            |  1 +
 net-analyzer/dhcpdump/dhcpdump-1.9.ebuild | 30 ++++++++++++++++++++++++++++++
 net-analyzer/dhcpdump/metadata.xml        | 19 +++++++++++--------
 3 files changed, 42 insertions(+), 8 deletions(-)

diff --git a/net-analyzer/dhcpdump/Manifest b/net-analyzer/dhcpdump/Manifest
index b52390457a84..e66319d9349f 100644
--- a/net-analyzer/dhcpdump/Manifest
+++ b/net-analyzer/dhcpdump/Manifest
@@ -1 +1,2 @@
 DIST dhcpdump-1.8.tar.gz 10740 BLAKE2B 
f87f1db539b06cffd68395982476bd7bfcad4e41d86aea7f3be357a07d597cdb34e8888eaf90e6dc11db0252dce418a3b1ad8a00b0d3a7c7faab48f14c6aec85
 SHA512 
52cd63d581a3c530c2f5baa66808d5b0241853651c720bd513b769b8301b4dff9c87243787014aea98a5b3ebed86ec317b58d262bf5031015141a4da50fb76e6
+DIST dhcpdump-1.9.tar.xz 11520 BLAKE2B 
a1749a27695aa88dbac46062ed67a45ea2dba500e56220d6f200c92e7ea379d085150c32d1499d4209b1fd774ad7a517f4e49a6221dfce066691077808100abb
 SHA512 
352737e4e4ecc0d3ca80f881b09981bd3998d42f0141fc71f429d99057f49bdeb233ea64888b603470424f99eabd2575d2d92945dd7f606875ec5bc3b6efe7f4

diff --git a/net-analyzer/dhcpdump/dhcpdump-1.9.ebuild 
b/net-analyzer/dhcpdump/dhcpdump-1.9.ebuild
new file mode 100644
index 000000000000..c4ae92ec34a6
--- /dev/null
+++ b/net-analyzer/dhcpdump/dhcpdump-1.9.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="DHCP Packet Analyzer/tcpdump postprocessor"
+HOMEPAGE="https://github.com/bbonev/dhcpdump 
https://www.mavetju.org/unix/general.php";
+SRC_URI="https://github.com/bbonev/${PN}/releases/download/v${PV}/${P}.tar.xz";
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~x86"
+
+# for pod2man
+BDEPEND="dev-lang/perl"
+DEPEND="net-libs/libpcap"
+RDEPEND="${DEPEND}"
+
+src_compile() {
+       tc-export CC
+       emake
+}
+
+src_install() {
+       dobin ${PN}
+       doman ${PN}.8
+       einstalldocs
+}

diff --git a/net-analyzer/dhcpdump/metadata.xml 
b/net-analyzer/dhcpdump/metadata.xml
index 4a2aa198f9ce..4edd4225e6b2 100644
--- a/net-analyzer/dhcpdump/metadata.xml
+++ b/net-analyzer/dhcpdump/metadata.xml
@@ -1,12 +1,15 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
 <pkgmetadata>
-<maintainer type="project">
-       <email>net...@gentoo.org</email>
-       <name>Gentoo network monitoring and analysis project</name>
-</maintainer>
-<longdescription>
-This command parses the output of tcpdump to display the
-dhcp-packets for easier checking and debugging.
-</longdescription>
+       <maintainer type="project">
+               <email>net...@gentoo.org</email>
+               <name>Gentoo network monitoring and analysis project</name>
+       </maintainer>
+       <longdescription>
+       This command parses the output of tcpdump to display the
+       dhcp-packets for easier checking and debugging.
+       </longdescription>
+       <upstream>
+               <remote-id type="github">bbonev/dhcpdump</remote-id>
+       </upstream>
 </pkgmetadata>

Reply via email to