SUMMARY="An open source antivirus engine" DESCRIPTION="ClamAV is an open source antivirus engine for detecting \ trojans, viruses, malware & other malicious threats." HOMEPAGE="https://www.clamav.net" COPYRIGHT="2001-2007 Tomasz Kojm 2007-2023 Cisco Systems" PACKAGER="Luca D'Amico " LICENSE="GNU GPL v2" REVISION="1" SOURCE_URI="https://github.com/Cisco-Talos/clamav/archive/refs/tags/clamav-$portVersion.tar.gz" CHECKSUM_SHA256="dd08785ac50f80bf85b490bd4e79c3b19fe5b90089872c0c04f5205180e9f910" SOURCE_DIR="clamav-clamav-$portVersion" ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" GLOBAL_WRITABLE_FILES=" settings/clamav/clamd.conf keep-old settings/clamav/freshclam.conf keep-old " PROVIDES=" clamav$secondaryArchSuffix = $portVersion cmd:clambc$secondaryArchSuffix = $portVersion cmd:clamconf$secondaryArchSuffix = $portVersion cmd:clamd$secondaryArchSuffix = $portVersion cmd:clamdscan$secondaryArchSuffix = $portVersion cmd:clamdtop$secondaryArchSuffix = $portVersion cmd:clamscan$secondaryArchSuffix = $portVersion cmd:clamsubmit$secondaryArchSuffix = $portVersion cmd:freshclam$secondaryArchSuffix = $portVersion cmd:sigtool$secondaryArchSuffix = $portVersion lib:libclamav$secondaryArchSuffix = $portVersion lib:libclamunrar$secondaryArchSuffix = $portVersion lib:libclamunrar_iface$secondaryArchSuffix = $portVersion lib:libfreshclam$secondaryArchSuffix = $portVersion " REQUIRES=" haiku$secondaryArchSuffix lib:libbz2$secondaryArchSuffix lib:libcrypto$secondaryArchSuffix lib:libcurl$secondaryArchSuffix lib:libiconv$secondaryArchSuffix lib:libjson_c$secondaryArchSuffix lib:libmspack$secondaryArchSuffix lib:libncurses$secondaryArchSuffix lib:libpcre2_8$secondaryArchSuffix lib:libssl$secondaryArchSuffix lib:libxml2$secondaryArchSuffix lib:libz$secondaryArchSuffix " PROVIDES_devel=" clamav${secondaryArchSuffix}_devel = $portVersion cmd:clamav_config$secondaryArchSuffix = $portVersion devel:libclamav$secondaryArchSuffix = $portVersion devel:libclamav_rust$secondaryArchSuffix devel:libclamunrar$secondaryArchSuffix = $portVersion devel:libclamunrar_iface$secondaryArchSuffix = $portVersion devel:libfreshclam$secondaryArchSuffix = $portVersion " REQUIRES_devel=" clamav$secondaryArchSuffix == $portVersion base " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libbz2$secondaryArchSuffix devel:libcheck$secondaryArchSuffix devel:libcrypto$secondaryArchSuffix >= 3 devel:libcurl$secondaryArchSuffix devel:libiconv$secondaryArchSuffix devel:libjson_c$secondaryArchSuffix devel:libmspack$secondaryArchSuffix devel:libncurses$secondaryArchSuffix devel:libpcre2_8$secondaryArchSuffix devel:libpthread_stubs$secondaryArchSuffix devel:libssl$secondaryArchSuffix >= 3 devel:libxml2$secondaryArchSuffix devel:libz$secondaryArchSuffix " BUILD_PREREQUIRES=" pytest_python310 cmd:cargo$secondaryArchSuffix cmd:cmake cmd:dot cmd:doxygen cmd:gcc$secondaryArchSuffix cmd:make cmd:python3 " BUILD() { cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \ $cmakeDirArgs \ -DCMAKE_EXE_LINKER_FLAGS="-lbe" \ -DENABLE_MILTER=OFF \ -DENABLE_EXTERNAL_MSPACK=ON \ -DAPP_CONFIG_DIRECTORY=$settingsDir/clamav \ -DDATABASE_DIRECTORY=$settingsDir/clamav/db \ -DENABLE_DOXYGEN=ON make -C build } INSTALL() { make -C build install prepareInstalledDevelLibs libclamav \ libclamunrar \ libclamunrar_iface \ libfreshclam \ libclamav_rust fixPkgconfig packageEntries devel "$developDir" \ $binDir/clamav-config # install conf files sed -i -e "/# Comment or remove the line below./d" \ -e "/Example/d" \ -e "s|#DatabaseDirectory /var/lib/clamav|DatabaseDirectory /boot/system/settings/clamav/db|" \ $settingsDir/clamav/clamd.conf.sample sed -i -e "/# Comment or remove the line below./d" \ -e "/Example/d" \ -e "s|#DatabaseDirectory /var/lib/clamav|DatabaseDirectory /boot/system/settings/clamav/db|" \ -e "s|#DatabaseOwner clamav|DatabaseOwner user|" \ $settingsDir/clamav/freshclam.conf.sample mv $settingsDir/clamav/clamd.conf.sample $settingsDir/clamav/clamd.conf mv $settingsDir/clamav/freshclam.conf.sample $settingsDir/clamav/freshclam.conf }