git: 1b9758d4745f - main - net/freebsd-routed: Add net/freebsd-routed

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Tue, 16 Apr 2024 03:11:34 UTC
The branch main has been updated by cy:

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

commit 1b9758d4745fc2c0d6b0675c9b92f399a5e38b5b
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2024-04-16 03:09:45 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2024-04-16 03:11:28 +0000

    net/freebsd-routed: Add net/freebsd-routed
    
    This new port contains the legacy FreeBSD routed which will be removed
    from FreeBSD-15.
---
 net/Makefile                         |  1 +
 net/freebsd-routed/Makefile          | 30 ++++++++++++++++++++++++++++++
 net/freebsd-routed/distinfo          |  3 +++
 net/freebsd-routed/files/Makefile.in |  5 +++++
 net/freebsd-routed/pkg-descr         |  2 ++
 net/freebsd-routed/pkg-plist         |  7 +++++++
 6 files changed, 48 insertions(+)

diff --git a/net/Makefile b/net/Makefile
index ba0339a42455..72020e02c566 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -156,6 +156,7 @@
     SUBDIR += foreman-proxy
     SUBDIR += fort
     SUBDIR += fping
+    SUBDIR += freebsd-routed
     SUBDIR += freebsd-telnetd
     SUBDIR += freebsd-uucp
     SUBDIR += freediameter
diff --git a/net/freebsd-routed/Makefile b/net/freebsd-routed/Makefile
new file mode 100644
index 000000000000..e06610043e49
--- /dev/null
+++ b/net/freebsd-routed/Makefile
@@ -0,0 +1,30 @@
+PORTNAME=	freebsd-routed
+DISTVERSIONPREFIX=	v
+DISTVERSION=	15.0
+CATEGORIES=	net
+
+MAINTAINER=	cy@FreeBSD.org
+COMMENT=	FreeBSD routed
+WWW=		https://github.com/cschuber/freebsd-routed
+
+LICENSE=	BSD3CLAUSE
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	cschuber
+GH_TAGNAME=	32fa35d
+GH_PROJECT=	freebsd-routed
+
+USES=		uidfix
+
+MAKE_ARGS+=		BINOWN=${BINOWN} BINMODE=${BINMODE}
+MAKE_ENV+=		MAKESYSPATH=/usr/src/share/mk \
+			BINDIR=${PREFIX}/sbin \
+			MANDIR=${PREFIX}/share/man/man \
+			MK_WERROR=no
+
+# WRKSRC_SUBDIR=		sbin/routed
+
+post-patch:
+	@${CP} ${FILESDIR}/Makefile.in ${WRKSRC}/Makefile
+
+.include <bsd.port.mk>
diff --git a/net/freebsd-routed/distinfo b/net/freebsd-routed/distinfo
new file mode 100644
index 000000000000..9ad73710e032
--- /dev/null
+++ b/net/freebsd-routed/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1713236471
+SHA256 (cschuber-freebsd-routed-v15.0-32fa35d_GH0.tar.gz) = 6ab614badd1439df68a8bc7faec24977b65ec3d5e952aaf2201fb34969d7f72d
+SIZE (cschuber-freebsd-routed-v15.0-32fa35d_GH0.tar.gz) = 123758
diff --git a/net/freebsd-routed/files/Makefile.in b/net/freebsd-routed/files/Makefile.in
new file mode 100644
index 000000000000..4504a415951d
--- /dev/null
+++ b/net/freebsd-routed/files/Makefile.in
@@ -0,0 +1,5 @@
+.include <src.opts.mk>
+
+SUBDIR=	sbin/routed \
+
+.include <bsd.prog.mk>
diff --git a/net/freebsd-routed/pkg-descr b/net/freebsd-routed/pkg-descr
new file mode 100644
index 000000000000..dca8fa579f41
--- /dev/null
+++ b/net/freebsd-routed/pkg-descr
@@ -0,0 +1,2 @@
+FreeBSD-routed: This is/was FreeBSD sbin/routed prior to its removal
+in FreeBSD-15.
diff --git a/net/freebsd-routed/pkg-plist b/net/freebsd-routed/pkg-plist
new file mode 100644
index 000000000000..d1df4befbc43
--- /dev/null
+++ b/net/freebsd-routed/pkg-plist
@@ -0,0 +1,7 @@
+sbin/routed
+sbin/rtquery
+share/licenses/freebsd-routed-15.0/catalog.mk
+share/licenses/freebsd-routed-15.0/LICENSE
+share/licenses/freebsd-routed-15.0/BSD3CLAUSE
+share/man/man8/routed.8.gz
+share/man/man8/rtquery.8.gz