git: 9bbfd2ca4a73 - 2023Q3 - security/{clamav,clamav-lts}: Fix build with non-default openssl setting
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 12 Sep 2023 11:57:55 UTC
The branch 2023Q3 has been updated by yasu: URL: https://cgit.FreeBSD.org/ports/commit/?id=9bbfd2ca4a73abf419e99bc8b13dc3eecf8efaff commit 9bbfd2ca4a73abf419e99bc8b13dc3eecf8efaff Author: Yasuhiro Kimura <yasu@FreeBSD.org> AuthorDate: 2023-09-12 11:39:21 +0000 Commit: Yasuhiro Kimura <yasu@FreeBSD.org> CommitDate: 2023-09-12 11:57:34 +0000 security/{clamav,clamav-lts}: Fix build with non-default openssl setting Add arguments to CMAKE_ARGS that specify paths related to openssl so header files and libraies of selected openssl stack are used instead of the ones of base system. PR: 273659 Reported by: doctor@doctor.nl2k.ab.ca, Andrey Pevnev MFH: 2023Q3 (cherry picked from commit 0146693b1a61ab6410b0009c11b7a69406c0aa27) --- security/clamav-lts/Makefile | 6 +++++- security/clamav/Makefile | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/security/clamav-lts/Makefile b/security/clamav-lts/Makefile index d2c37efd35f8..8af9efaa992d 100644 --- a/security/clamav-lts/Makefile +++ b/security/clamav-lts/Makefile @@ -23,7 +23,11 @@ USE_GNOME= libxml2 USE_LDCONFIG= yes USE_RC_SUBR= clamav-clamd clamav-freshclam -CMAKE_ARGS= -DDATABASE_DIRECTORY:STRING=${_DBDIR} +CMAKE_ARGS= -DDATABASE_DIRECTORY:STRING=${_DBDIR} \ + -DOPENSSL_CRYPTO_LIBRARY=${OPENSSLLIB}/libcrypto.so \ + -DOPENSSL_INCLUDE_DIR=${OPENSSLINC} \ + -DOPENSSL_ROOT_DIR=${OPENSSLBASE} \ + -DOPENSSL_SSL_LIBRARY=${OPENSSLLIB}/libssl.so CMAKE_ON= ENABLE_EXTERNAL_MSPACK TEST_TARGET= check diff --git a/security/clamav/Makefile b/security/clamav/Makefile index 457e954fbcfc..9e7b029d948e 100644 --- a/security/clamav/Makefile +++ b/security/clamav/Makefile @@ -22,7 +22,11 @@ USE_GNOME= libxml2 USE_LDCONFIG= yes USE_RC_SUBR= clamav-clamd clamav-freshclam -CMAKE_ARGS= -DDATABASE_DIRECTORY:STRING=${_DBDIR} +CMAKE_ARGS= -DDATABASE_DIRECTORY:STRING=${_DBDIR} \ + -DOPENSSL_CRYPTO_LIBRARY=${OPENSSLLIB}/libcrypto.so \ + -DOPENSSL_INCLUDE_DIR=${OPENSSLINC} \ + -DOPENSSL_ROOT_DIR=${OPENSSLBASE} \ + -DOPENSSL_SSL_LIBRARY=${OPENSSLLIB}/libssl.so CMAKE_ON= ENABLE_EXTERNAL_MSPACK TEST_TARGET= check