git: 909a9752d8f8 - main - net/eternalterminal: Update to 6.1.9

From: Li-Wen Hsu <lwhsu_at_FreeBSD.org>
Date: Mon, 10 Jan 2022 19:50:54 UTC
The branch main has been updated by lwhsu:

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

commit 909a9752d8f8db2f54923ca92a75ad454e6f3d03
Author:     Will Tisdale <willtisdale@gmail.com>
AuthorDate: 2022-01-10 19:49:16 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2022-01-10 19:50:31 +0000

    net/eternalterminal: Update to 6.1.9
    
    Take maintainership
    
    PR:             260736
---
 net/eternalterminal/Makefile  | 25 ++++++++++++++++---------
 net/eternalterminal/distinfo  |  6 +++---
 net/eternalterminal/pkg-descr |  2 +-
 net/eternalterminal/pkg-plist |  7 +++++++
 4 files changed, 27 insertions(+), 13 deletions(-)

diff --git a/net/eternalterminal/Makefile b/net/eternalterminal/Makefile
index 22b315379b29..d8e9de2238b0 100644
--- a/net/eternalterminal/Makefile
+++ b/net/eternalterminal/Makefile
@@ -1,10 +1,9 @@
 PORTNAME=	eternalterminal
 DISTVERSIONPREFIX=	et-v
-DISTVERSION=	5.1.9
-PORTREVISION=	10
+DISTVERSION=	6.1.9
 CATEGORIES=	net
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	willtisdale@gmail.com
 COMMENT=	Remote shell that reconnects without interrupting session
 
 LICENSE=	APACHE20
@@ -13,7 +12,8 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 LIB_DEPENDS=	libgflags.so:devel/gflags \
 		libglog.so:devel/glog \
 		libprotobuf.so:devel/protobuf \
-		libsodium.so:security/libsodium
+		libsodium.so:security/libsodium \
+		libunwind.so:devel/libunwind
 
 USES=		cmake compiler:c++11-lang ncurses
 USE_GITHUB=	yes
@@ -22,10 +22,17 @@ GH_PROJECT=	EternalTerminal
 
 CONFLICTS_INSTALL=	linux-enemyterritory # bin/et
 
-PLIST_FILES=	bin/et \
-		bin/etserver \
-		bin/etterminal \
-		bin/htm \
-		bin/htmd
+CMAKE_ARGS+=	-DDISABLE_VCPKG:BOOL=ON
+CONFIGURE_ENV+=	VCPKG_FORCE_SYSTEM_BINARIES=1
+
+post-patch:
+	@${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},' ${WRKSRC}/rc.d/etserver
+
+post-install:
+	${MKDIR} ${STAGEDIR}${PREFIX}/etc/etserver
+	${INSTALL_DATA} ${WRKSRC}/etc/et.cfg \
+		${STAGEDIR}${PREFIX}/etc/etserver/et.cfg.sample
+	${INSTALL_SCRIPT} ${WRKSRC}/rc.d/etserver \
+		${STAGEDIR}${PREFIX}/etc/rc.d
 
 .include <bsd.port.mk>
diff --git a/net/eternalterminal/distinfo b/net/eternalterminal/distinfo
index dc283b8ea51e..f98a26dae6d8 100644
--- a/net/eternalterminal/distinfo
+++ b/net/eternalterminal/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1551212353
-SHA256 (MisterTea-EternalTerminal-et-v5.1.9_GH0.tar.gz) = 37b9bd33ed3edc88cedf2c4168246e23818ccd4e08731d0698d8d133dd3b1147
-SIZE (MisterTea-EternalTerminal-et-v5.1.9_GH0.tar.gz) = 275464
+TIMESTAMP = 1640637057
+SHA256 (MisterTea-EternalTerminal-et-v6.1.9_GH0.tar.gz) = b0b758ee57c53d82a4908b12e182bb61778ed685750c61304f0aa99ff174bd8d
+SIZE (MisterTea-EternalTerminal-et-v6.1.9_GH0.tar.gz) = 21655801
diff --git a/net/eternalterminal/pkg-descr b/net/eternalterminal/pkg-descr
index cd3e96c32a91..b32917eb2dec 100644
--- a/net/eternalterminal/pkg-descr
+++ b/net/eternalterminal/pkg-descr
@@ -2,4 +2,4 @@ EternalTerminal is a remote shell that automatically reconnects without
 interrupting the session. It uses ssh under-the-hood for handshake and
 encryption. Connection is via TCP unlike UDP based remote shells such as mosh.
 
-WWW: https://mistertea.github.io/EternalTerminal/
+WWW: https://eternalterminal.dev/
diff --git a/net/eternalterminal/pkg-plist b/net/eternalterminal/pkg-plist
new file mode 100644
index 000000000000..1bca03d07a9a
--- /dev/null
+++ b/net/eternalterminal/pkg-plist
@@ -0,0 +1,7 @@
+bin/et
+bin/etserver
+bin/etterminal
+bin/htm
+bin/htmd
+@sample etc/etserver/et.cfg.sample
+etc/rc.d/etserver