pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/60767: net/lft: update to 4.01 (from 3.80), add whob



>Number:         60767
>Category:       pkg
>Synopsis:       net/lft: update to 4.01 (from 3.80), add whob
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 22 16:40:00 +0000 2026
>Originator:     Victor O.
>Release:        pkgsrc-current (trunk) as of 2026-09-22; net/lft Makefile rev 1.15 (2026-03-20)
>Organization:
The Prefix WhoIs Project
>Environment:
N/A - reported by the upstream maintainer, not from a NetBSD machine. Verified against pkgsrc trunk net/lft/Makefile, distinfo and PLIST as of 2026-09-22.
>Description:
I am the upstream maintainer of LFT (Layer Four Traceroute), https://pwhois.org/lft/.
pkgsrc net/lft is at 3.80 (distfile lft-3.8, 2018). Upstream is at 4.01
(September 2026); ten releases have shipped in between.

Changes since 3.8, briefly: protocol, firewall-traversal and reliability
fixes; IPv6 end to end; ECMP path enumeration (--ecmp); a path-MTU
discovery mode; JSON/XML/GeoJSON/KML/SVG/GraphViz/Mermaid output; an
ncurses --watch mode with a path-change detector; whob --annotate; and a
hardened privilege model with bounds-checked parsers.
Release notes: https://pwhois.org/lft/changelog.html

Packaging notes for 4.01:
- libpcap remains the only hard dependency.
- Two optional libraries are new and enabled by default: c-ares
  (asynchronous DNS; --disable-async-dns turns it off) and ncurses
  (--watch display; --disable-ncurses turns it off). Upstream configure
  probes all three with pkg-config first, then falls back to link tests.
- The tarball also builds "whob" (prefix whois client) and ships whob.8.
  The pkgsrc package has never installed either; the patch adds them.
- Distfile: https://pwhois.org/get/lft-4.01.tar.gz, 517603 bytes,
  SHA512 8609a2269a10fb4c080913ea831f164424fe86fd6c930f55f246f8725694c24e
         a8f8c9b5671cc00675838220f5db31d3f7669c542aa42d28dd5e9612d6ed5476
  BLAKE2s 0b9ca2fc3b44a812b1b78e1a02fed08437a1dcb895f05f551a3947f6b99eb712
  Every older tarball remains available under /get/, and the old
  MASTER_SITES URL form (/dl/index.who?file=) still works too.
- The DISTNAME/PKGNAME split (lft-3.8 -> lft-3.80) is no longer needed;
  4.01 sorts correctly after 3.80 as a plain version.

I have built 4.01 from this tarball on macOS with c-ares and ncurses
detected, but I do not have a NetBSD machine, so the patch below is
untested on pkgsrc itself. It is a version bump plus two buildlinks and
two extra installed files; a pkgsrc developer with a bulk-build sandbox
should be able to confirm it quickly. Happy to fix anything
NetBSD-specific that turns up.
>How-To-Repeat:
cd /usr/pkgsrc/net/lft && make show-var VARNAME=PKGVERSION
  -> 3.80
Compare with https://pwhois.org/lft/ and https://pwhois.org/get/ (index of
release files), which show 4.01 as current. Also: pkg_info lft installs no
whob binary although the distfile builds one.
>Fix:
--- net/lft/Makefile	2026-09-21 14:13:51
+++ net/lft/Makefile	2026-09-21 14:13:51
@@ -1,9 +1,8 @@
 # $NetBSD: Makefile,v 1.15 2026/03/20 20:27:00 nia Exp $
 
-DISTNAME=	lft-3.8
-PKGNAME=	lft-3.80
+DISTNAME=	lft-4.01
 CATEGORIES=	net
-MASTER_SITES=	http://pwhois.org/dl/index.who?file=
+MASTER_SITES=	https://pwhois.org/get/
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	https://pwhois.org/lft/
@@ -11,7 +10,9 @@
 LICENSE=	lft-license
 
 USE_PKGLOCALEDIR=	yes
+USE_TOOLS+=		pkg-config
 GNU_CONFIGURE=		yes
+FAKE_NCURSES=		yes
 
 CFLAGS.SunOS+=		-Dalloca=__builtin_alloca
 
@@ -19,7 +20,11 @@
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/lft ${DESTDIR}${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/whob ${DESTDIR}${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/lft.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
+	${INSTALL_MAN} ${WRKSRC}/whob.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
 
 .include "../../net/libpcap/buildlink3.mk"
+.include "../../net/libcares/buildlink3.mk"
+.include "../../mk/curses.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
--- net/lft/PLIST	2026-09-21 14:13:51
+++ net/lft/PLIST	2026-09-21 14:13:51
@@ -1,3 +1,5 @@
 @comment $NetBSD: PLIST,v 1.1.1.1 2003/08/27 07:36:47 grant Exp $
 bin/lft
+bin/whob
 man/man8/lft.8
+man/man8/whob.8
--- net/lft/distinfo	2026-09-21 14:13:51
+++ net/lft/distinfo	2026-09-21 14:13:51
@@ -1,5 +1,5 @@
 $NetBSD: distinfo,v 1.9 2021/10/26 11:07:31 nia Exp $
 
-BLAKE2s (lft-3.8.tar.gz) = 742b989ef9fc91e54424ca925b32e74777dfbef2dfa3c488612469e5179886f6
-SHA512 (lft-3.8.tar.gz) = 13ea176362096cc8c20500d61969483642f5d003263b529ec8d601786f621341107859510f9cafa5d365417beafce897bcc9cd631171e291ca3dc07fec1bd483
-Size (lft-3.8.tar.gz) = 376731 bytes
+BLAKE2s (lft-4.01.tar.gz) = 0b9ca2fc3b44a812b1b78e1a02fed08437a1dcb895f05f551a3947f6b99eb712
+SHA512 (lft-4.01.tar.gz) = 8609a2269a10fb4c080913ea831f164424fe86fd6c930f55f246f8725694c24ea8f8c9b5671cc00675838220f5db31d3f7669c542aa42d28dd5e9612d6ed5476
+Size (lft-4.01.tar.gz) = 517603 bytes



Home | Main Index | Thread Index | Old Index