git: d6f122b4a29a - main - misc/hxtools: update the port to version 20231101

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Tue, 07 Nov 2023 21:32:17 UTC
The branch main has been updated by danfe:

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

commit d6f122b4a29a1e20ed953c2e8302c6ed3eead624
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2023-11-07 21:31:28 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2023-11-07 21:31:28 +0000

    misc/hxtools: update the port to version 20231101
    
    - As utmp_register(8) had been removed, GC the patch
    - The distfile can be also downloaded from Codeberg
    
    Reported by:    portscout
---
 misc/hxtools/Makefile                            |  5 +++--
 misc/hxtools/distinfo                            |  6 +++---
 misc/hxtools/files/patch-sadmin_utmp__register.c | 24 ------------------------
 misc/hxtools/pkg-plist                           |  2 --
 4 files changed, 6 insertions(+), 31 deletions(-)

diff --git a/misc/hxtools/Makefile b/misc/hxtools/Makefile
index cbb097968c5d..2c333335c55d 100644
--- a/misc/hxtools/Makefile
+++ b/misc/hxtools/Makefile
@@ -1,7 +1,8 @@
 PORTNAME=	hxtools
-PORTVERSION=	20230411
+PORTVERSION=	20231101
 CATEGORIES=	misc
-MASTER_SITES=	http://inai.de/files/hxtools/
+MASTER_SITES=	http://inai.de/files/hxtools/ \
+		https://codeberg.org/jengelh/hxtools/releases/download/rel-${PORTVERSION}/
 
 MAINTAINER=	danfe@FreeBSD.org
 COMMENT=	Collection of miscellaneous tools and scripts
diff --git a/misc/hxtools/distinfo b/misc/hxtools/distinfo
index 33b6c8dcae80..eeaf7282a932 100644
--- a/misc/hxtools/distinfo
+++ b/misc/hxtools/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1681210008
-SHA256 (hxtools-20230411.tar.zst) = 15266562661b339e054ab1e4f1830bd1ae43faf151401075e3b7d1fc788a10f7
-SIZE (hxtools-20230411.tar.zst) = 203185
+TIMESTAMP = 1698834182
+SHA256 (hxtools-20231101.tar.zst) = bf290bc023fcd52d86cb611e9b75fcec1aa48165e123484a85ee8442e2e19803
+SIZE (hxtools-20231101.tar.zst) = 201612
diff --git a/misc/hxtools/files/patch-sadmin_utmp__register.c b/misc/hxtools/files/patch-sadmin_utmp__register.c
deleted file mode 100644
index 69f0ca9dfee2..000000000000
--- a/misc/hxtools/files/patch-sadmin_utmp__register.c
+++ /dev/null
@@ -1,24 +0,0 @@
---- sadmin/utmp_register.c.orig	2020-07-12 09:44:16 UTC
-+++ sadmin/utmp_register.c
-@@ -71,8 +71,10 @@ static bool get_options(int *argc, const char ***argv)
- 		 .help = "Perform operation on lastlog"},
- 		{.sh = 'U', .type = HXTYPE_NONE, .ptr = &Opt.op_utmp,
- 		 .help = "Perform operation on UTMP"},
-+#if 0
- 		{.sh = 'W', .type = HXTYPE_NONE, .ptr = &Opt.op_wtmp,
- 		 .help = "Perform operation on WTMP"},
-+#endif
- 		{.sh = 'e', .type = HXTYPE_NONE, .ptr = &Opt.epid,
- 		 .help = "Encode PID into ut_id"},
- 		{.sh = 'h', .type = HXTYPE_STRING, .ptr = &Opt.host,
-@@ -87,8 +89,10 @@ static bool get_options(int *argc, const char ***argv)
- 		 .help = "Unique ID 2", .htyp = "sess"},
- 		{.sh = 'u', .type = HXTYPE_STRING, .ptr = &Opt.futmp,
- 		 .help = "Path to utmp"},
-+#if 0
- 		{.sh = 'w', .type = HXTYPE_STRING, .ptr = &Opt.fwtmp,
- 		 .help = "Path to wtmp"},
-+#endif
- 		HXOPT_AUTOHELP,
- 		HXOPT_TABLEEND,
- 	};
diff --git a/misc/hxtools/pkg-plist b/misc/hxtools/pkg-plist
index c0b0f84c441f..dad7c1b3b4b4 100644
--- a/misc/hxtools/pkg-plist
+++ b/misc/hxtools/pkg-plist
@@ -57,7 +57,6 @@ libexec/hxtools/psthreads
 libexec/hxtools/recursive_lower
 libexec/hxtools/rezip
 libexec/hxtools/sourcefuncsize
-libexec/hxtools/utmp_register
 libexec/hxtools/vcsaview
 man/man1/aumeta.1.gz
 man/man1/bin2c.1.gz
@@ -104,7 +103,6 @@ man/man1/xcp.1.gz
 man/man7/hxtools.7.gz
 man/man8/hxnetload.8.gz
 man/man8/logontime.8.gz
-man/man8/utmp_register.8.gz
 man/man8/vcsaview.8.gz
 man/man8/xfs_irecover.8.gz
 %%PORTDOCS%%%%DOCSDIR%%/changelog.rst