git: 980965c53a1c - main - net/ndisc6: Update 1.0.7 => 1.0.8, take maintainership

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Wed, 13 Aug 2025 14:53:22 UTC
The branch main has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=980965c53a1c59f4ca0606f05b5ed4c20748f45c

commit 980965c53a1c59f4ca0606f05b5ed4c20748f45c
Author:     takefu <takefu@airport.fm>
AuthorDate: 2025-08-13 14:37:38 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-08-13 14:52:53 +0000

    net/ndisc6: Update 1.0.7 => 1.0.8, take maintainership
    
    Changelog:
    https://git.remlab.net/gitweb/?p=ndisc6.git;a=blob;f=NEWS;hb=refs/tags/v1.0.8
    
    Replace gettext with gettext-runtime: the port does not use the tool
    components - it only links with libintl.
    Reduce the number of install command calls.
    
    PR:             288829
    Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org>
---
 net/ndisc6/Makefile                                    | 18 ++++++------------
 net/ndisc6/distinfo                                    |  6 +++---
 .../files/{patch-src-ndisc.c => patch-src_ndisc.c}     | 13 +++++++++++--
 3 files changed, 20 insertions(+), 17 deletions(-)

diff --git a/net/ndisc6/Makefile b/net/ndisc6/Makefile
index 4e3aacd07893..c6dc7f1f3b88 100644
--- a/net/ndisc6/Makefile
+++ b/net/ndisc6/Makefile
@@ -1,11 +1,9 @@
 PORTNAME=	ndisc6
-PORTVERSION=	1.0.7
-PORTREVISION=	1
+DISTVERSION=	1.0.8
 CATEGORIES=	net
-MASTER_SITES=	http://www.remlab.net/files/ndisc6/ \
-		http://people.via.ecp.fr/~rem/www.remlab.net/files/ndisc6/
+MASTER_SITES=	http://www.remlab.net/files/ndisc6/
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	takefu@airport.fm
 COMMENT=	IPv6 network diagnostic tools
 WWW=		https://www.remlab.net/ndisc6/
 
@@ -15,25 +13,21 @@ USES=		compiler:c11 localbase perl5 tar:bzip2
 USE_RC_SUBR=	rdnssd
 
 GNU_CONFIGURE=	yes
-GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
 CONFIGURE_ARGS=	--disable-suid-install \
 		--localstatedir="${PREFIX}/var"
 CONFIGURE_ENV=	PERL=${LOCALBASE}/bin/perl
 MAKE_ENV=	CHOWNPROG=:
+PORTDOCS=	AUTHORS NEWS README
 
 OPTIONS_DEFINE=	DOCS NLS
 OPTIONS_SUB=	yes
 
-NLS_USES=		gettext
+NLS_USES=		gettext-runtime
 NLS_CONFIGURE_ENABLE=	nls
 NLS_LDFLAGS=		-lintl
 
-PORTDOCS=	AUTHORS NEWS README
-
 post-install:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for file in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
-.endfor
+	${INSTALL_DATA} ${PORTDOCS:M*:C|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>
diff --git a/net/ndisc6/distinfo b/net/ndisc6/distinfo
index d6cfee417fa5..a652f106a0fb 100644
--- a/net/ndisc6/distinfo
+++ b/net/ndisc6/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1679850838
-SHA256 (ndisc6-1.0.7.tar.bz2) = edc431d70510d7321a5a39d243de0d0f63846dc9145b3b549c7348cc2bc96609
-SIZE (ndisc6-1.0.7.tar.bz2) = 262144
+TIMESTAMP = 1755061334
+SHA256 (ndisc6-1.0.8.tar.bz2) = 1f2fb2dc1172770aa5a09d39738a44d8b753cc5e2e25e306ca78682f9fea0b4f
+SIZE (ndisc6-1.0.8.tar.bz2) = 262355
diff --git a/net/ndisc6/files/patch-src-ndisc.c b/net/ndisc6/files/patch-src_ndisc.c
similarity index 63%
rename from net/ndisc6/files/patch-src-ndisc.c
rename to net/ndisc6/files/patch-src_ndisc.c
index 08d52dc50c91..053a8e8380de 100644
--- a/net/ndisc6/files/patch-src-ndisc.c
+++ b/net/ndisc6/files/patch-src_ndisc.c
@@ -1,6 +1,15 @@
---- src/ndisc.c.orig	2016-12-07 16:43:04 UTC
+--- src/ndisc.c.orig	2023-11-10 15:28:07 UTC
 +++ src/ndisc.c
-@@ -532,7 +532,7 @@ parseadv (const uint8_t *buf, size_t len, const struct
+@@ -451,7 +451,7 @@ parsednssl (const uint8_t *opt)
+ parsednssl (const uint8_t *opt)
+ {
+ 	const uint8_t *base;
+-	uint8_t optlen = opt[1];
++	uint16_t optlen = opt[1];
+ 	if (optlen < 2)
+ 		return -1;
+ 
+@@ -559,7 +559,7 @@ parseadv (const uint8_t *buf, size_t len, const struct
  		printf (_("Stateful other conf.      :          %3s\n"),
  		        gettext ((v & ND_RA_FLAG_OTHER) ? N_ ("Yes") : N_("No")));
  		printf (_("Mobile home agent         :          %3s\n"),