deleted file mode 100644
@@ -1,156 +0,0 @@
-SUMMARY = "ClamAV anti-virus utility for Unix - command-line interface"
-DESCRIPTION = "ClamAV is an open source antivirus engine for detecting trojans, viruses, malware & other malicious threats."
-HOMEPAGE = "http://www.clamav.net/index.html"
-SECTION = "security"
-LICENSE = "LGPL-2.1-only"
-
-DEPENDS = "glibc llvm libtool db openssl zlib curl libxml2 bison pcre2 json-c libcheck"
-
-COMPATIBLE_HOST:libc-musl:class-target = "null"
-
-LIC_FILES_CHKSUM = "file://COPYING.txt;beginline=2;endline=3;md5=f7029fbbc5898b273d5902896f7bbe17"
-
-# July 30th, 2022
-SRCREV = "563ba93052f3b7b46fb8725a65ee6299a9c332cf"
-
-SRC_URI = "git://github.com/Cisco-Talos/clamav;branch=rel/0.104;protocol=https \
- file://clamd.conf \
- file://freshclam.conf \
- file://volatiles.03_clamav \
- file://tmpfiles.clamav \
- file://headers_fixup.patch \
- file://oe_cmake_fixup.patch \
-"
-
-LEAD_SONAME = "libclamav.so"
-SO_VER = "9.6.0"
-
-BINCONFIG = "${bindir}/clamav-config"
-
-inherit cmake chrpath pkgconfig useradd systemd multilib_header multilib_script
-
-UPSTREAM_CHECK_COMMITS = "1"
-
-CLAMAV_UID ?= "clamav"
-CLAMAV_GID ?= "clamav"
-
-MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/clamav-config"
-
-EXTRA_OECMAKE = " -DCMAKE_BUILD_TYPE=Release -DOPTIMIZE=ON -DENABLE_JSON_SHARED=OFF \
- -DCLAMAV_GROUP=${CLAMAV_GID} -DCLAMAV_USER=${CLAMAV_UID} \
- -DENABLE_TESTS=OFF -DBUILD_SHARED_LIBS=ON \
- -DDISABLE_MPOOL=ON -DENABLE_FRESHCLAM_DNS_FIX=ON \
- "
-
-PACKAGECONFIG ?= " clamonacc \
- ${@bb.utils.contains("DISTRO_FEATURES", "systemd", "systemd", "", d)}"
-
-PACKAGECONFIG[milter] = "-DENABLE_MILTER=ON ,-DENABLE_MILTER=OFF, curl, curl"
-PACKAGECONFIG[clamonacc] = "-DENABLE_CLAMONACC=ON ,-DENABLE_CLAMONACC=OFF,"
-PACKAGECONFIG[unrar] = "-DENABLE_UNRAR=ON ,-DENABLE_UNRAR=OFF,"
-PACKAGECONFIG[systemd] = "-DENABLE_SYSTEMD=ON -DSYSTEMD_UNIT_DIR=${systemd_system_unitdir}, -DENABLE_SYSTEMD=OFF, systemd"
-
-export OECMAKE_C_FLAGS += " -I${STAGING_INCDIR} -L ${RECIPE_SYSROOT}${nonarch_libdir} -L${STAGING_LIBDIR} -lpthread"
-
-do_install:append () {
- install -d ${D}/${sysconfdir}
- install -d -o ${PN} -g ${CLAMAV_GID} ${D}/${localstatedir}/lib/clamav
- install -d ${D}${sysconfdir}/clamav ${D}${sysconfdir}/default/volatiles
-
- install -m 644 ${UNPACKDIR}/clamd.conf ${D}/${prefix}/${sysconfdir}
- install -m 644 ${UNPACKDIR}/freshclam.conf ${D}/${prefix}/${sysconfdir}
- install -m 0644 ${UNPACKDIR}/volatiles.03_clamav ${D}${sysconfdir}/default/volatiles/03_clamav
- sed -i -e 's#${STAGING_DIR_HOST}##g' ${D}${libdir}/pkgconfig/libclamav.pc
- rm ${D}/${libdir}/libclamav.so
- if [ "${INSTALL_CLAMAV_CVD}" = "1" ]; then
- install -m 666 ${S}/clamav_db/* ${D}/${localstatedir}/lib/clamav/.
- fi
-
- rm ${D}/${libdir}/libfreshclam.so
-
- if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)};then
- install -d ${D}${sysconfdir}/tmpfiles.d
- install -m 0644 ${UNPACKDIR}/tmpfiles.clamav ${D}${sysconfdir}/tmpfiles.d/clamav.conf
- fi
- oe_multilib_header clamav-types.h
-}
-
-pkg_postinst:${PN} () {
- if [ -z "$D" ]; then
- if command -v systemd-tmpfiles >/dev/null; then
- systemd-tmpfiles --create ${sysconfdir}/tmpfiles.d/clamav.conf
- elif [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then
- ${sysconfdir}/init.d/populate-volatile.sh update
- fi
- fi
-}
-
-PACKAGES += "${PN}-daemon ${PN}-clamdscan ${PN}-freshclam ${PN}-libclamav"
-
-FILES:${PN} = "${bindir}/clambc ${bindir}/clamscan ${bindir}/clamsubmit ${sbindir}/clamonacc \
- ${bindir}/*sigtool ${mandir}/man1/clambc* ${mandir}/man1/clamscan* \
- ${mandir}/man1/sigtool* ${mandir}/man1/clambsubmit* \
- ${docdir}/clamav/*"
-
-FILES:${PN}-clamdscan = " ${bindir}/clamdscan \
- ${docdir}/clamdscan/* \
- ${mandir}/man1/clamdscan* \
- "
-
-FILES:${PN}-daemon = "${bindir}/clamconf ${bindir}/clamdtop ${sbindir}/clamd \
- ${mandir}/man1/clamconf* ${mandir}/man1/clamdtop* \
- ${mandir}/man5/clamd* ${mandir}/man8/clamd* \
- ${sysconfdir}/clamd.conf* \
- /usr/etc/clamd.conf* \
- ${systemd_system_unitdir}/clamav-daemon/* \
- ${docdir}/clamav-daemon/* ${sysconfdir}/clamav-daemon \
- ${sysconfdir}/logcheck/ignore.d.server/clamav-daemon \
- ${systemd_system_unitdir}/clamav-daemon.service \
- ${systemd_system_unitdir}/clamav-clamonacc.service \
- "
-
-FILES:${PN}-freshclam = "${bindir}/freshclam \
- ${sysconfdir}/freshclam.conf* \
- /usr/etc/freshclam.conf* \
- ${sysconfdir}/clamav ${sysconfdir}/default/volatiles \
- ${sysconfdir}/tmpfiles.d/*.conf \
- ${localstatedir}/lib/clamav \
- ${docdir}/${PN}-freshclam ${mandir}/man1/freshclam.* \
- ${mandir}/man5/freshclam.conf.* \
- ${systemd_system_unitdir}/clamav-freshclam.service"
-
-FILES:${PN}-dev = " ${bindir}/clamav-config ${libdir}/*.la \
- ${libdir}/pkgconfig/*.pc \
- ${mandir}/man1/clamav-config.* \
- ${includedir}/*.h ${docdir}/libclamav* \
- ${libdir}/libmspack.so"
-
-FILES:${PN}-staticdev = "${libdir}/*.a"
-
-FILES:${PN}-libclamav = "${libdir}/libclamav.so* ${libdir}/libclammspack.so* \
- ${libdir}/libfreshclam.so* ${docdir}/libclamav/* \
- ${libdir}/libmspack* "
-
-FILES:${PN}-doc = "${mandir}/man/* \
- ${datadir}/man/* \
- ${docdir}/* "
-
-USERADD_PACKAGES = "${PN}-freshclam "
-GROUPADD_PARAM:${PN}-freshclam = "--system ${CLAMAV_UID}"
-USERADD_PARAM:${PN}-freshclam = "--system -g ${CLAMAV_GID} --home-dir \
- ${localstatedir}/lib/${BPN} \
- --no-create-home --shell /sbin/nologin ${PN}"
-
-RPROVIDES:${PN} += "${PN}-systemd"
-RREPLACES:${PN} += "${PN}-systemd"
-RCONFLICTS:${PN} += "${PN}-systemd"
-SYSTEMD_PACKAGES = "${PN}-daemon ${PN}-freshclam"
-SYSTEMD_SERVICE:${PN}-daemon = "clamav-daemon.service"
-SYSTEMD_SERVICE:${PN}-freshclam = "clamav-freshclam.service"
-
-INSANE_SKIP:${PN}-libclamav += "dev-so"
-
-RDEPENDS:${PN} = "openssl ncurses-libncurses libxml2 libbz2 ncurses-libtinfo curl libpcre2 clamav-libclamav"
-RRECOMMENDS:${PN} = "clamav-freshclam"
-RDEPENDS:${PN}-freshclam = "clamav"
-RDEPENDS:${PN}-daemon = "clamav clamav-freshclam"
deleted file mode 100644
@@ -1,58 +0,0 @@
-Fixes checks not needed do to glibc 2.33
-
-Upstream-Status: Pending
-Signed-off-by: Armin Kuster <akuster808@gmail.com>
-
-Index: git/CMakeLists.txt
-===================================================================
---- git.orig/CMakeLists.txt
-+++ git/CMakeLists.txt
-@@ -443,8 +443,6 @@ check_include_file("stdlib.h"
- check_include_file("string.h" HAVE_STRING_H)
- check_include_file("strings.h" HAVE_STRINGS_H)
- check_include_file("sys/cdefs.h" HAVE_SYS_CDEFS_H)
--check_include_file("sys/dl.h" HAVE_SYS_DL_H)
--check_include_file("sys/fileio.h" HAVE_SYS_FILIO_H)
- check_include_file("sys/mman.h" HAVE_SYS_MMAN_H)
- check_include_file("sys/param.h" HAVE_SYS_PARAM_H)
- check_include_file("sys/queue.h" HAVE_SYS_QUEUE_H)
-@@ -479,8 +477,6 @@ endif()
-
- # int-types variants
- check_include_file("inttypes.h" HAVE_INTTYPES_H)
--check_include_file("sys/inttypes.h" HAVE_SYS_INTTYPES_H)
--check_include_file("sys/int_types.h" HAVE_SYS_INT_TYPES_H)
- check_include_file("stdint.h" HAVE_STDINT_H)
-
- # this hack required to silence warnings on systems with inttypes.h
-@@ -608,17 +604,11 @@ check_type_size("time_t" SIZEOF_TIME_T)
- # Checks for library functions.
- include(CheckSymbolExists)
- check_symbol_exists(_Exit "stdlib.h" HAVE__EXIT)
--check_symbol_exists(accept4 "sys/types.h" HAVE_ACCEPT4)
- check_symbol_exists(snprintf "stdio.h" HAVE_SNPRINTF)
--check_symbol_exists(stat64 "sys/stat.h" HAVE_STAT64)
--check_symbol_exists(strcasestr "string.h" HAVE_STRCASESTR)
- check_symbol_exists(strerror_r "string.h" HAVE_STRERROR_R)
--check_symbol_exists(strlcat "string.h" HAVE_STRLCAT)
--check_symbol_exists(strlcpy "string.h" HAVE_STRLCPY)
- check_symbol_exists(strndup "string.h" HAVE_STRNDUP)
- check_symbol_exists(strnlen "string.h" HAVE_STRNLEN)
--check_symbol_exists(strnstr "string.h" HAVE_STRNSTR)
--check_symbol_exists(sysctlbyname "sysctl.h" HAVE_SYSCTLBYNAME)
-+check_symbol_exists(strcasecmp "string.h" HAVE_STRNCMP)
- check_symbol_exists(timegm "time.h" HAVE_TIMEGM)
- check_symbol_exists(vsnprintf "stdio.h" HAVE_VSNPRINTF)
-
-@@ -632,10 +622,9 @@ else()
- check_symbol_exists(fseeko "stdio.h" HAVE_FSEEKO)
- check_symbol_exists(getaddrinfo "netdb.h" HAVE_GETADDRINFO)
- check_symbol_exists(getpagesize "unistd.h" HAVE_GETPAGESIZE)
-- check_symbol_exists(mkstemp "unistd.h" HAVE_MKSTEMP)
- check_symbol_exists(poll "poll.h" HAVE_POLL)
-- check_symbol_exists(setgroups "unistd.h" HAVE_SETGROUPS)
- check_symbol_exists(setsid "unistd.h" HAVE_SETSID)
-+ set(HAVE_SYSCONF_SC_PAGESIZE 1)
- endif()
-
- include(CheckSymbolExists)
deleted file mode 100644
@@ -1,39 +0,0 @@
-Issue with rpath including /usr/lib and crosscompile checkes causing oe configure to fail
-
-Use oe's cmake rpath framework and exclude some of the cmake checks that fail in our env
-
-Upstream-Status: Inappropriate [configuration]
-Singed-off-by: Armin Kuster <akuster808@gmail.com>
-
-Index: git/CMakeLists.txt
-===================================================================
---- git.orig/CMakeLists.txt
-+++ git/CMakeLists.txt
-@@ -162,12 +162,6 @@ endif()
-
- include(GNUInstallDirs)
-
--if(CMAKE_INSTALL_FULL_LIBDIR)
-- set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_FULL_LIBDIR}")
--else()
-- set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
--endif()
--
- if(C_LINUX)
- if(CMAKE_COMPILER_IS_GNUCXX)
- # Set _GNU_SOURCE for O_LARGEFILE, O_CLOEXEC, O_DIRECTORY, O_NOFOLLOW, etc flags on older systems
-@@ -581,14 +575,8 @@ include(TestInline)
- include(CheckFileOffsetBits)
- # Determine how to pack structs on this platform.
- include(CheckStructPacking)
--# Check for signed right shift implementation.
--include(CheckSignedRightShift)
- # Check if systtem fts implementation available
- include(CheckFTS)
--# Check if uname(2) follows POSIX standard.
--include(CheckUnamePosix)
--# Check support for file descriptor passing
--include(CheckFDPassing)
-
- # Check if big-endian
- include(TestBigEndian)
Remove the legacy ClamAV 0.104.4 recipe and its associated patches as it has been replaced by the modern 1.4.3 version. Removed files: - clamav_0.104.4.bb - Obsolete recipe - CVE-2024-20505.patch - Security patch (fixed in 1.4.3) - CVE-2024-20506.patch - Security patch (fixed in 1.4.3) - headers_fixup.patch - Build fix (not needed in 1.4.3) - oe_cmake_fixup.patch - Build fix (not needed in 1.4.3) Rationale: - ClamAV 0.104.4 reached end-of-life and is no longer maintained - Security vulnerabilities are addressed in 1.4.3 - Patches are obsolete with the new CMake-based build system Signed-off-by: Hemant Jadhav <hemant.jadhav@emerson.com> --- recipes-scanners/clamav/clamav_0.104.4.bb | 156 ------------------ .../clamav/files/headers_fixup.patch | 58 ------- .../clamav/files/oe_cmake_fixup.patch | 39 ----- 3 files changed, 253 deletions(-) delete mode 100644 recipes-scanners/clamav/clamav_0.104.4.bb delete mode 100644 recipes-scanners/clamav/files/headers_fixup.patch delete mode 100644 recipes-scanners/clamav/files/oe_cmake_fixup.patch