git: 74f44eaa464c - main - net-mgmt/mac-telnet: New port

From: Joe Marcus Clarke <marcus_at_FreeBSD.org>
Date: Thu, 08 Sep 2022 20:30:07 UTC
The branch main has been updated by marcus:

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

commit 74f44eaa464c3cffb50609ad7a90ca13b9d953f5
Author:     Joe Marcus Clarke <marcus@FreeBSD.org>
AuthorDate: 2022-09-08 20:25:53 +0000
Commit:     Joe Marcus Clarke <marcus@FreeBSD.org>
CommitDate: 2022-09-08 20:29:15 +0000

    net-mgmt/mac-telnet: New port
    
    Console tools for connecting to, and serving, devices using MikroTik RouterOS MAC-Telnet protocol.
---
 net-mgmt/Makefile             |  1 +
 net-mgmt/mac-telnet/Makefile  | 21 +++++++++++++++++++++
 net-mgmt/mac-telnet/distinfo  |  3 +++
 net-mgmt/mac-telnet/pkg-descr |  4 ++++
 net-mgmt/mac-telnet/pkg-plist | 11 +++++++++++
 5 files changed, 40 insertions(+)

diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile
index 0ac031657481..490078a21ce6 100644
--- a/net-mgmt/Makefile
+++ b/net-mgmt/Makefile
@@ -122,6 +122,7 @@
     SUBDIR += librenms
     SUBDIR += libsmi
     SUBDIR += lldpd
+    SUBDIR += mac-telnet
     SUBDIR += mbrowse
     SUBDIR += mdata-client
     SUBDIR += metronome
diff --git a/net-mgmt/mac-telnet/Makefile b/net-mgmt/mac-telnet/Makefile
new file mode 100644
index 000000000000..0a95a5fb8e86
--- /dev/null
+++ b/net-mgmt/mac-telnet/Makefile
@@ -0,0 +1,21 @@
+PORTNAME=	mac-telnet
+PORTVERSION=	0.4.5.a1
+CATEGORIES=	net-mgmt net
+
+MAINTAINER=	marcus@FreeBSD.org
+COMMENT=	MAC telnet client for connecting to MikroTik RouterOS devices
+WWW=		https://github.com/haakonnessjoen/MAC-Telnet
+
+LICENSE=	GPLv2
+
+USES=		autoreconf libtool pkgconfig gettext
+USE_GITHUB=	yes
+
+GH_ACCOUNT=	haakonnessjoen
+GH_PROJECT=	MAC-Telnet
+GH_TAGNAME=	42d6271
+
+GNU_CONFIGURE=	yes
+LDFLAGS+=	-L${LOCALBASE}/lib
+
+.include <bsd.port.mk>
diff --git a/net-mgmt/mac-telnet/distinfo b/net-mgmt/mac-telnet/distinfo
new file mode 100644
index 000000000000..807560486b57
--- /dev/null
+++ b/net-mgmt/mac-telnet/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1662668203
+SHA256 (haakonnessjoen-MAC-Telnet-0.4.5.a1-42d6271_GH0.tar.gz) = 815e5bc9db630b5733ac93263f2a740f33486c6be2dd8887eba7ff33a6e84a41
+SIZE (haakonnessjoen-MAC-Telnet-0.4.5.a1-42d6271_GH0.tar.gz) = 66424
diff --git a/net-mgmt/mac-telnet/pkg-descr b/net-mgmt/mac-telnet/pkg-descr
new file mode 100644
index 000000000000..221263d3bb4e
--- /dev/null
+++ b/net-mgmt/mac-telnet/pkg-descr
@@ -0,0 +1,4 @@
+Open source MAC Telnet client and server for connecting to MikroTik RouterOS
+devices and Posix machines via MAC address.
+
+Binaries are provided for both mac-telnet client and server.
diff --git a/net-mgmt/mac-telnet/pkg-plist b/net-mgmt/mac-telnet/pkg-plist
new file mode 100644
index 000000000000..90a18fa23f0a
--- /dev/null
+++ b/net-mgmt/mac-telnet/pkg-plist
@@ -0,0 +1,11 @@
+bin/macping
+bin/mactelnet
+bin/mndp
+etc/mactelnetd.users
+man/man1/macping.1.gz
+man/man1/mactelnet.1.gz
+man/man1/mactelnetd.1.gz
+man/man1/mndp.1.gz
+sbin/mactelnetd
+share/locale/bg/LC_MESSAGES/mactelnet.mo
+share/locale/nb/LC_MESSAGES/mactelnet.mo