git: 28c3b8a7b9ef - main - misc/compat14x: Add the port by extracting it out of compat13x

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Mon, 05 May 2025 14:40:01 UTC
The branch main has been updated by arrowd:

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

commit 28c3b8a7b9ef98e53912ff675933332299d78a4d
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-04-30 16:03:22 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-05-05 14:39:58 +0000

    misc/compat14x: Add the port by extracting it out of compat13x
    
    Approved by:    des
    Differential Revision:  https://reviews.freebsd.org/D50086
---
 misc/Makefile                    |  1 +
 misc/compat14x/Makefile          | 39 +++++++++++++++++++++++++++++++++++++++
 misc/compat14x/distinfo          |  7 +++++++
 misc/compat14x/pkg-descr         | 12 ++++++++++++
 misc/compat14x/pkg-plist.aarch64 |  1 +
 misc/compat14x/pkg-plist.amd64   |  2 ++
 misc/compat14x/pkg-plist.i386    |  1 +
 7 files changed, 63 insertions(+)

diff --git a/misc/Makefile b/misc/Makefile
index 290412f1507f..2aee72a791f1 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -62,6 +62,7 @@
     SUBDIR += compat11x
     SUBDIR += compat12x
     SUBDIR += compat13x
+    SUBDIR += compat14x
     SUBDIR += compat4x
     SUBDIR += compat5x
     SUBDIR += compat6x
diff --git a/misc/compat14x/Makefile b/misc/compat14x/Makefile
new file mode 100644
index 000000000000..8b25f38d7f4a
--- /dev/null
+++ b/misc/compat14x/Makefile
@@ -0,0 +1,39 @@
+PORTNAME=	compat14x
+PORTVERSION=	14.2.1402000.20250430
+CATEGORIES=	misc
+MASTER_SITES=	LOCAL/arrowd
+PKGNAMESUFFIX=	-${ARCH}
+DISTNAME=	${PORTNAME}-${ARCH}-${PORTVERSION}
+
+MAINTAINER=	arrowd@FreeBSD.org
+COMMENT=	Convenience package to install the compat13x libraries
+
+LICENSE=	BSD2CLAUSE
+
+USES=		tar:xz
+NO_BUILD=	yes
+ONLY_FOR_ARCHS=	aarch64 amd64 i386
+PLIST=		${PKGDIR}/pkg-plist.${ARCH}
+TARGET_DIR=	${PREFIX}/lib/compat
+TARGET32_DIR=	${PREFIX}/lib32/compat
+USE_LDCONFIG=	${TARGET_DIR}
+
+.include <bsd.port.pre.mk>
+
+.if ${OSREL:R} < 14
+IGNORE=		is for FreeBSD 14.x and newer
+.endif
+
+.if ${ARCH} == amd64
+USE_LDCONFIG32=	${TARGET32_DIR}
+.endif
+
+do-install:
+	@${MKDIR} -m 0755 ${STAGEDIR}${TARGET_DIR}
+	(cd ${WRKSRC}/lib && ${INSTALL_LIB} *.so.* ${STAGEDIR}${TARGET_DIR})
+.if ${ARCH} == amd64
+	@${MKDIR} ${STAGEDIR}${TARGET32_DIR}
+	(cd ${WRKSRC}/lib32 && ${INSTALL_LIB} *.so.* ${STAGEDIR}${TARGET32_DIR})
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/misc/compat14x/distinfo b/misc/compat14x/distinfo
new file mode 100644
index 000000000000..8c5e86385efc
--- /dev/null
+++ b/misc/compat14x/distinfo
@@ -0,0 +1,7 @@
+TIMESTAMP = 1746026180
+SHA256 (compat14x-aarch64-14.2.1402000.20250430.tar.xz) = ab8ef228dfad1c1285f6a7736baf1dcd3d9a1331b5130aea852057a8f4b6f1ff
+SIZE (compat14x-aarch64-14.2.1402000.20250430.tar.xz) = 41772
+SHA256 (compat14x-amd64-14.2.1402000.20250430.tar.xz) = d2e9488f888352b44967c3181d446827751c7fcbba80f06861ce14f955cde332
+SIZE (compat14x-amd64-14.2.1402000.20250430.tar.xz) = 77684
+SHA256 (compat14x-i386-14.2.1402000.20250430.tar.xz) = c9919e9b26dc92946ae446a001a788c6273f8b14dba521b3192b07d1f09aa7f3
+SIZE (compat14x-i386-14.2.1402000.20250430.tar.xz) = 49244
diff --git a/misc/compat14x/pkg-descr b/misc/compat14x/pkg-descr
new file mode 100644
index 000000000000..e30901398aca
--- /dev/null
+++ b/misc/compat14x/pkg-descr
@@ -0,0 +1,12 @@
+This package provides the compat14x libraries for your
+system, so you can use legacy binaries that depend on them.
+
+Ports usage example:
+
+--
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 1500000
+LIB_DEPENDS+=	libmd.so.6:misc/compat14x
+.endif
+--
diff --git a/misc/compat14x/pkg-plist.aarch64 b/misc/compat14x/pkg-plist.aarch64
new file mode 100644
index 000000000000..251b34ef3b18
--- /dev/null
+++ b/misc/compat14x/pkg-plist.aarch64
@@ -0,0 +1 @@
+lib/compat/libmd.so.6
diff --git a/misc/compat14x/pkg-plist.amd64 b/misc/compat14x/pkg-plist.amd64
new file mode 100644
index 000000000000..836459079f4d
--- /dev/null
+++ b/misc/compat14x/pkg-plist.amd64
@@ -0,0 +1,2 @@
+lib/compat/libmd.so.6
+lib32/compat/libmd.so.6
diff --git a/misc/compat14x/pkg-plist.i386 b/misc/compat14x/pkg-plist.i386
new file mode 100644
index 000000000000..251b34ef3b18
--- /dev/null
+++ b/misc/compat14x/pkg-plist.i386
@@ -0,0 +1 @@
+lib/compat/libmd.so.6