git: 33a35d1c1c13 - main - lang/luajit-openresty: Fix broken symlink for luajit in bin

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Fri, 22 Sep 2023 05:08:12 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=33a35d1c1c1308a5eb6c4f85e557b6eedde8e496

commit 33a35d1c1c1308a5eb6c4f85e557b6eedde8e496
Author:     Valter Nazianzeno <manipuladordedados@gmail.com>
AuthorDate: 2023-09-20 17:56:21 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-09-22 04:56:49 +0000

    lang/luajit-openresty: Fix broken symlink for luajit in bin
    
    The port builds and installs fine, but it creates a broken symlink for
    the real file version.
    
    PR:             273986
    Approved by:    portmgr (build fix blanket)
---
 lang/luajit-openresty/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lang/luajit-openresty/Makefile b/lang/luajit-openresty/Makefile
index 205374825780..6f73e9739b36 100644
--- a/lang/luajit-openresty/Makefile
+++ b/lang/luajit-openresty/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	luajit
 DISTVERSIONPREFIX=	v
 DISTVERSION=	2.1-20230911
+PORTREVISION=	1
 CATEGORIES=	lang
 PKGNAMESUFFIX=	-openresty
 
@@ -41,7 +42,7 @@ USE_GCC=yes
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-${LUAJIT_SOVERSION}
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libluajit-5.1.so.${LUAJIT_SOVERSION}
-	${LN} -sf ${PORTNAME}-${LUAJIT_VERSION} \
+	${LN} -sf ${PORTNAME}-${LUAJIT_SOVERSION} \
 		${STAGEDIR}${PREFIX}/bin/${PORTNAME}
 	${INSTALL_MAN} ${WRKSRC}/etc/luajit.1 ${STAGEDIR}${MAN1PREFIX}/man/man1