git: f48d73a6fd84 - main - net-mgmt/mac-telnet: Update to 0.5.1

From: Joe Marcus Clarke <marcus_at_FreeBSD.org>
Date: Wed, 19 Jun 2024 15:07:45 UTC
The branch main has been updated by marcus:

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

commit f48d73a6fd848e28578ddd4ccb4cce070801a4f2
Author:     Joe Marcus Clarke <marcus@FreeBSD.org>
AuthorDate: 2024-06-19 15:06:20 +0000
Commit:     Joe Marcus Clarke <marcus@FreeBSD.org>
CommitDate: 2024-06-19 15:06:20 +0000

    net-mgmt/mac-telnet: Update to 0.5.1
    
    The versioning changed, and this seems to be the new regular version
    cadence, so bump PORTEPOCH.
---
 net-mgmt/mac-telnet/Makefile                       |  7 ++++---
 net-mgmt/mac-telnet/distinfo                       |  6 +++---
 net-mgmt/mac-telnet/files/patch-config_Makefile.am | 13 +++++++++----
 3 files changed, 16 insertions(+), 10 deletions(-)

diff --git a/net-mgmt/mac-telnet/Makefile b/net-mgmt/mac-telnet/Makefile
index 796f289dd96c..c4419d4c3f9c 100644
--- a/net-mgmt/mac-telnet/Makefile
+++ b/net-mgmt/mac-telnet/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	mac-telnet
-PORTVERSION=	1.0.0.a1
-PORTREVISION=	1
+PORTVERSION=	0.5.1
+PORTEPOCH=	1
 CATEGORIES=	net-mgmt net
 
 MAINTAINER=	marcus@FreeBSD.org
@@ -14,11 +14,12 @@ USE_GITHUB=	yes
 
 GH_ACCOUNT=	haakonnessjoen
 GH_PROJECT=	MAC-Telnet
-GH_TAGNAME=	c3dc451
+GH_TAGNAME=	v0.5.1
 
 GNU_CONFIGURE=	yes
 GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
 LDFLAGS+=	-L${LOCALBASE}/lib
+CPPFLAGS+=	-I${LOCALBASE}/include
 CONFIGURE_ENV+=	CRYPTO_CFLAGS="-I${OPENSSLINC}" CRYPTO_LIBS="-L${OPENSSLLIB} -lssl -lcrypto"
 
 post-install:
diff --git a/net-mgmt/mac-telnet/distinfo b/net-mgmt/mac-telnet/distinfo
index 0fa68f6454d1..436a0630279b 100644
--- a/net-mgmt/mac-telnet/distinfo
+++ b/net-mgmt/mac-telnet/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1665515368
-SHA256 (haakonnessjoen-MAC-Telnet-1.0.0.a1-c3dc451_GH0.tar.gz) = 4d13000895cd1c98b531641fce324194f37e63c705ff01362c32d85134733678
-SIZE (haakonnessjoen-MAC-Telnet-1.0.0.a1-c3dc451_GH0.tar.gz) = 66505
+TIMESTAMP = 1718808101
+SHA256 (haakonnessjoen-MAC-Telnet-0.5.1-v0.5.1_GH0.tar.gz) = 38967c20741f0e49d2aa5a39a94b80353587b5c5c6ced5082892f6a9929043e5
+SIZE (haakonnessjoen-MAC-Telnet-0.5.1-v0.5.1_GH0.tar.gz) = 73097
diff --git a/net-mgmt/mac-telnet/files/patch-config_Makefile.am b/net-mgmt/mac-telnet/files/patch-config_Makefile.am
index 2fb5393598e9..891423d0a35d 100644
--- a/net-mgmt/mac-telnet/files/patch-config_Makefile.am
+++ b/net-mgmt/mac-telnet/files/patch-config_Makefile.am
@@ -1,11 +1,16 @@
---- config/Makefile.am.orig	2022-09-21 17:00:22 UTC
+--- config/Makefile.am.orig	2024-04-22 19:18:06 UTC
 +++ config/Makefile.am
-@@ -1,5 +1,5 @@
+@@ -1,9 +1,9 @@ dist_sysconf_DATA = mactelnetd.users
+ if INSTALL_CONFIG
  dist_sysconf_DATA = mactelnetd.users
  
 -install-exec-hook:
--	       chmod 600 $(DESTDIR)$(sysconfdir)/mactelnetd.users
--				 chown root $(DESTDIR)$(sysconfdir)/mactelnetd.users
+-	chmod 600 $(DESTDIR)$(sysconfdir)/mactelnetd.users
+-		chown root $(DESTDIR)$(sysconfdir)/mactelnetd.users
 +#install-exec-hook:
 +#	       chmod 600 $(DESTDIR)$(sysconfdir)/mactelnetd.users
 +#				 chown root $(DESTDIR)$(sysconfdir)/mactelnetd.users
+ else
+ dist_sysconf_DATA =
+ endif
+\ No newline at end of file