git: 3f33edbb30bd - main - misc/compat*x: Add an auxiliary target to regenerate distfiles
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 16 May 2025 10:04:25 UTC
The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=3f33edbb30bd63a3e465da3c067de31a313e5457 commit 3f33edbb30bd63a3e465da3c067de31a313e5457 Author: Gleb Popov <arrowd@FreeBSD.org> AuthorDate: 2025-05-16 09:40:47 +0000 Commit: Gleb Popov <arrowd@FreeBSD.org> CommitDate: 2025-05-16 10:04:18 +0000 misc/compat*x: Add an auxiliary target to regenerate distfiles Approved by: bapt Differential Revision: https://reviews.freebsd.org/D50372 --- misc/compat13x/Makefile | 7 +++++++ misc/compat4x/Makefile.makedist | 14 ++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/misc/compat13x/Makefile b/misc/compat13x/Makefile index f826b491abd2..a9bbabcc1899 100644 --- a/misc/compat13x/Makefile +++ b/misc/compat13x/Makefile @@ -20,6 +20,13 @@ TARGET32_DIR= ${PREFIX}/lib32/compat USE_LDCONFIG= ${TARGET_DIR} NO_SHLIB_REQUIRES_GLOB= *:32 +COMPAT_LIBS= libcrypto.so.111 \ + libdialog.so.9 \ + libnv.so.0 \ + libssl.so.111 + +.include "${.CURDIR}/../compat4x/Makefile.makedist" + .include <bsd.port.pre.mk> .if ${OSREL:R} < 13 diff --git a/misc/compat4x/Makefile.makedist b/misc/compat4x/Makefile.makedist new file mode 100644 index 000000000000..0e011f3ddeb3 --- /dev/null +++ b/misc/compat4x/Makefile.makedist @@ -0,0 +1,14 @@ +_VER= ${PORTVERSION:C/\..*//g}.${PORTVERSION:C/[^\.]*\.//:C/\..*//g} + +makedist: +.for lib in ${COMPAT_LIBS} + ${ECHO_CMD} ${lib} >> /tmp/compat-libs +.endfor +.for arch in ${ONLY_FOR_ARCHS} + cd /tmp && ${SH} ${PORTSDIR}/Tools/scripts/gen-compat.sh ${_VER} ${arch} /tmp/compat-libs +.endfor + @${ECHO_CMD} + @${ECHO_CMD} Now run + @${ECHO_CMD} 'mv /tmp/${PORTNAME}-* ${PORTSDIR}/distfiles/' + @${ECHO_CMD} adjust PORTVERSION accordingly and run + @${ECHO_CMD} ${MAKE} -C ${.CURDIR} makesum