Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Apr 2024 14:26:49 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 8948dc50e800 - main - devel/libinjection: Add missing USE_LDCONFIG
Message-ID:  <202404201426.43KEQnqa006973@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8948dc50e800278ce9ae3db594132656cdb6005e

commit 8948dc50e800278ce9ae3db594132656cdb6005e
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-04-20 14:22:15 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-04-20 14:25:35 +0000

    devel/libinjection: Add missing USE_LDCONFIG
    
    - Install shared library with suffixes
    - Bump PORTREVISION for package change
---
 devel/libinjection/Makefile  | 9 +++++++--
 devel/libinjection/pkg-plist | 2 ++
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/devel/libinjection/Makefile b/devel/libinjection/Makefile
index 97a2ddbd3f6d..9650caa588f5 100644
--- a/devel/libinjection/Makefile
+++ b/devel/libinjection/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	libinjection
 PORTVERSION=	3.10.0
-PORTREVISION=	2
 DISTVERSIONPREFIX=	v
+PORTREVISION=	3
 CATEGORIES=	devel
 
 MAINTAINER=	sunpoet@FreeBSD.org
@@ -13,8 +13,11 @@ LICENSE_FILE=	${WRKSRC}/../COPYING
 
 USES=		python:build shebangfix
 
+USE_LDCONFIG=	yes
 WRKSRC_SUBDIR=	src
 
+PLIST_SUB=	PORTVERSION=${PORTVERSION}
+
 USE_GITHUB=	yes
 
 SHEBANG_GLOB=	*.py
@@ -25,6 +28,8 @@ post-patch:
 do-install:
 	${INSTALL_DATA} ${WRKSRC}/libinjection*.h ${STAGEDIR}${PREFIX}/include/
 	${INSTALL_DATA} ${WRKSRC}/libinjection.a ${STAGEDIR}${PREFIX}/lib/libinjection.a
-	${INSTALL_LIB} ${WRKSRC}/libinjection.so ${STAGEDIR}${PREFIX}/lib/libinjection.so
+	${INSTALL_LIB} ${WRKSRC}/libinjection.so ${STAGEDIR}${PREFIX}/lib/libinjection.so.${PORTVERSION}
+	${LN} -s libinjection.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libinjection.so
+	${LN} -s libinjection.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libinjection.so.${PORTVERSION:R:R}
 
 .include <bsd.port.mk>
diff --git a/devel/libinjection/pkg-plist b/devel/libinjection/pkg-plist
index e3b386918e17..357df38a3adb 100644
--- a/devel/libinjection/pkg-plist
+++ b/devel/libinjection/pkg-plist
@@ -5,3 +5,5 @@ include/libinjection_sqli_data.h
 include/libinjection_xss.h
 lib/libinjection.a
 lib/libinjection.so
+lib/libinjection.so.3
+lib/libinjection.so.%%PORTVERSION%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202404201426.43KEQnqa006973>