git: 1fd0fb4a67f2 - main - misc/compat15x: Add new port

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Sat, 13 Dec 2025 12:10:46 UTC
The branch main has been updated by arrowd:

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

commit 1fd0fb4a67f27e64fa2d4df03164896e4c9a4261
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-12-13 12:05:14 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-12-13 12:10:34 +0000

    misc/compat15x: Add new port
---
 misc/Makefile                        |  1 +
 misc/compat15x/Makefile              | 55 ++++++++++++++++++++++++++++++++++++
 misc/compat15x/distinfo              |  9 ++++++
 misc/compat15x/pkg-descr             | 12 ++++++++
 misc/compat15x/pkg-plist.aarch64     |  2 ++
 misc/compat15x/pkg-plist.amd64       |  4 +++
 misc/compat15x/pkg-plist.powerpc64   |  4 +++
 misc/compat15x/pkg-plist.powerpc64le |  2 ++
 8 files changed, 89 insertions(+)

diff --git a/misc/Makefile b/misc/Makefile
index 895094ad6fce..a1ceed0025e3 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -66,6 +66,7 @@
     SUBDIR += compat12x
     SUBDIR += compat13x
     SUBDIR += compat14x
+    SUBDIR += compat15x
     SUBDIR += compat4x
     SUBDIR += compat5x
     SUBDIR += compat6x
diff --git a/misc/compat15x/Makefile b/misc/compat15x/Makefile
new file mode 100644
index 000000000000..65ce7d37ca21
--- /dev/null
+++ b/misc/compat15x/Makefile
@@ -0,0 +1,55 @@
+PORTNAME=	compat15x
+PORTVERSION=	15.0.1500068.20251213
+CATEGORIES=	misc
+MASTER_SITES=	LOCAL/arrowd
+PKGNAMESUFFIX=	-${ARCH}
+DISTNAME=	${PORTNAME}-${ARCH}-${PORTVERSION}
+
+MAINTAINER=	arrowd@FreeBSD.org
+COMMENT=	Convenience package to install the compat15x libraries
+
+LICENSE=	BSD2CLAUSE
+
+USES=		tar:xz
+NO_BUILD=	yes
+ONLY_FOR_ARCHS=	aarch64 amd64 powerpc64 powerpc64le
+PLIST=		${PKGDIR}/pkg-plist.${ARCH}
+TARGET_DIR=	${PREFIX}/lib/compat
+TARGET32_DIR=	${PREFIX}/lib32/compat
+USE_LDCONFIG=	${TARGET_DIR}
+
+COMPAT_LIBS=	libtpool.so.2 \
+		libuutil.so.2
+
+OPTIONS_DEFINE=	COMPAT32
+OPTIONS_DEFAULT=COMPAT32
+OPTIONS_EXCLUDE_aarch64=COMPAT32
+OPTIONS_EXCLUDE_i386=COMPAT32
+OPTIONS_EXCLUDE_powerpc=COMPAT32
+OPTIONS_EXCLUDE_powerpc64le=COMPAT32
+COMPAT32_DESC=	Install 32-bit compat libraries
+OPTIONS_SUB=	yes
+
+.include "${.CURDIR}/../compat4x/Makefile.makedist"
+
+.include <bsd.port.pre.mk>
+
+.if ${OSREL:R} < 15
+IGNORE=		is for FreeBSD 15.x and newer
+.endif
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MCOMPAT32}
+USE_LDCONFIG32=	${TARGET32_DIR}
+.endif
+
+do-install:
+	@${MKDIR} -m 0755 ${STAGEDIR}${TARGET_DIR}
+	(cd ${WRKSRC}/lib && ${INSTALL_LIB} *.so.* ${STAGEDIR}${TARGET_DIR})
+
+do-install-COMPAT32-on:
+	@${MKDIR} ${STAGEDIR}${TARGET32_DIR}
+	(cd ${WRKSRC}/lib32 && ${INSTALL_LIB} *.so.* ${STAGEDIR}${TARGET32_DIR})
+
+.include <bsd.port.post.mk>
diff --git a/misc/compat15x/distinfo b/misc/compat15x/distinfo
new file mode 100644
index 000000000000..334b47738e31
--- /dev/null
+++ b/misc/compat15x/distinfo
@@ -0,0 +1,9 @@
+TIMESTAMP = 1765627127
+SHA256 (compat15x-aarch64-15.0.1500068.20251213.tar.xz) = 4f355f169f8f2550c6e3abd94c7a9565bc66d111f6be3aa1b3cba964dc0e57b8
+SIZE (compat15x-aarch64-15.0.1500068.20251213.tar.xz) = 19956
+SHA256 (compat15x-amd64-15.0.1500068.20251213.tar.xz) = e1b081491d8be8edfc6afedafc4553abaed1cd8abb3e7fb1f28dcd367fd1a944
+SIZE (compat15x-amd64-15.0.1500068.20251213.tar.xz) = 21740
+SHA256 (compat15x-powerpc64-15.0.1500068.20251213.tar.xz) = c442e7c2d756f98c3e778b3f9a9f5986c715cea36dde6759071953ab8501aaab
+SIZE (compat15x-powerpc64-15.0.1500068.20251213.tar.xz) = 20868
+SHA256 (compat15x-powerpc64le-15.0.1500068.20251213.tar.xz) = 454981717576dddb46098868c75b8efada9aa3c9af20361a8439ca396f26c830
+SIZE (compat15x-powerpc64le-15.0.1500068.20251213.tar.xz) = 12824
diff --git a/misc/compat15x/pkg-descr b/misc/compat15x/pkg-descr
new file mode 100644
index 000000000000..e30901398aca
--- /dev/null
+++ b/misc/compat15x/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/compat15x/pkg-plist.aarch64 b/misc/compat15x/pkg-plist.aarch64
new file mode 100644
index 000000000000..1afdb5a82492
--- /dev/null
+++ b/misc/compat15x/pkg-plist.aarch64
@@ -0,0 +1,2 @@
+lib/compat/libtpool.so.2
+lib/compat/libuutil.so.2
diff --git a/misc/compat15x/pkg-plist.amd64 b/misc/compat15x/pkg-plist.amd64
new file mode 100644
index 000000000000..676b50ba1b74
--- /dev/null
+++ b/misc/compat15x/pkg-plist.amd64
@@ -0,0 +1,4 @@
+lib/compat/libtpool.so.2
+lib/compat/libuutil.so.2
+%%COMPAT32%%lib32/compat/libtpool.so.2
+%%COMPAT32%%lib32/compat/libuutil.so.2
diff --git a/misc/compat15x/pkg-plist.powerpc64 b/misc/compat15x/pkg-plist.powerpc64
new file mode 100644
index 000000000000..676b50ba1b74
--- /dev/null
+++ b/misc/compat15x/pkg-plist.powerpc64
@@ -0,0 +1,4 @@
+lib/compat/libtpool.so.2
+lib/compat/libuutil.so.2
+%%COMPAT32%%lib32/compat/libtpool.so.2
+%%COMPAT32%%lib32/compat/libuutil.so.2
diff --git a/misc/compat15x/pkg-plist.powerpc64le b/misc/compat15x/pkg-plist.powerpc64le
new file mode 100644
index 000000000000..1afdb5a82492
--- /dev/null
+++ b/misc/compat15x/pkg-plist.powerpc64le
@@ -0,0 +1,2 @@
+lib/compat/libtpool.so.2
+lib/compat/libuutil.so.2