git: 0146693b1a61 - main - 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:55:33 UTC
The branch main has been updated by yasu: URL: https://cgit.FreeBSD.org/ports/commit/?id=0146693b1a61ab6410b0009c11b7a69406c0aa27 commit 0146693b1a61ab6410b0009c11b7a69406c0aa27 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:54:14 +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 --- 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 b19a48847caa..58b1554f0953 100644 --- a/security/clamav-lts/Makefile +++ b/security/clamav-lts/Makefile @@ -24,7 +24,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 d03fa06b777f..a97925200d41 100644 --- a/security/clamav/Makefile +++ b/security/clamav/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