git: 8f0444bf17e1 - main - misc/gnu-watch: Update to 4.0.6

From: Emanuel Haupt <ehaupt_at_FreeBSD.org>
Date: Sat, 20 Jun 2026 11:56:29 UTC
The branch main has been updated by ehaupt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8f0444bf17e14874dc6d3224c48401636e06112d

commit 8f0444bf17e14874dc6d3224c48401636e06112d
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2026-06-20 11:56:22 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2026-06-20 11:56:22 +0000

    misc/gnu-watch: Update to 4.0.6
---
 misc/gnu-watch/Makefile                | 14 ++++++--------
 misc/gnu-watch/distinfo                |  6 +++---
 misc/gnu-watch/files/patch-src_watch.c | 10 ++++++++++
 3 files changed, 19 insertions(+), 11 deletions(-)

diff --git a/misc/gnu-watch/Makefile b/misc/gnu-watch/Makefile
index cbab2312345c..57c66acfb194 100644
--- a/misc/gnu-watch/Makefile
+++ b/misc/gnu-watch/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	watch
 DISTVERSIONPREFIX=	v
-DISTVERSION=	3.3.17
-PORTREVISION=	1
+DISTVERSION=	4.0.6
 CATEGORIES=	misc
 PKGNAMEPREFIX=	gnu-
 
@@ -17,10 +16,9 @@ USE_CSTD=	gnu99
 USE_GITLAB=	yes
 GL_ACCOUNT=	procps-ng
 GL_PROJECT=	procps
-GL_TAGNAME=	19a508ea121c0c4ac6d0224575a036de745eaaf8
 GNU_CONFIGURE=	yes
 
-ALL_TARGET=	watch
+ALL_TARGET=	src/watch
 
 PLIST_FILES=	bin/${PKGBASE} \
 		share/man/man1/gnu-watch.1.gz
@@ -37,9 +35,9 @@ post-patch:
 	${REINPLACE_CMD} 's/ncursesw/${NCURSES_IMPL}/g' ${WRKSRC}/configure.ac
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} \
-		${STAGEDIR}${PREFIX}/bin/${PKGBASE}
-	${INSTALL_MAN} ${WRKSRC}/watch.1 \
-		${STAGEDIR}${PREFIX}/share/man/man1/${PKGBASE}.1
+	${INSTALL_PROGRAM} ${WRKSRC}/src/watch \
+		${STAGEDIR}${PREFIX}/bin/gnu-watch
+	${INSTALL_MAN} ${WRKSRC}/man/watch.1 \
+		${STAGEDIR}${PREFIX}/share/man/man1/gnu-watch.1
 
 .include <bsd.port.mk>
diff --git a/misc/gnu-watch/distinfo b/misc/gnu-watch/distinfo
index bf1c5410fc18..023c9111b1cd 100644
--- a/misc/gnu-watch/distinfo
+++ b/misc/gnu-watch/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1617891544
-SHA256 (procps-ng-procps-19a508ea121c0c4ac6d0224575a036de745eaaf8_GL0.tar.gz) = 682767b21f8c98694588b4173f49d1fd701201d3371fd6b03f861b44dce23c90
-SIZE (procps-ng-procps-19a508ea121c0c4ac6d0224575a036de745eaaf8_GL0.tar.gz) = 1410418
+TIMESTAMP = 1781953336
+SHA256 (procps-v4.0.6.tar.bz2) = 144410bd111330b191d4384ba6e8b4861390c644b7188e9487f779116b35a33c
+SIZE (procps-v4.0.6.tar.bz2) = 1576563
diff --git a/misc/gnu-watch/files/patch-src_watch.c b/misc/gnu-watch/files/patch-src_watch.c
new file mode 100644
index 000000000000..f2026231b982
--- /dev/null
+++ b/misc/gnu-watch/files/patch-src_watch.c
@@ -0,0 +1,10 @@
+--- src/watch.c.orig	2026-01-29 09:10:29 UTC
++++ src/watch.c
+@@ -49,6 +49,7 @@
+ #include <sys/ioctl.h>
+ #include <sys/time.h>
+ #include <sys/wait.h>
++#include <sys/stat.h>
+ #include <termios.h>
+ #include <time.h>
+ #include <unistd.h>