diff --git a/security/clamav/Makefile b/security/clamav/Makefile index 037c7ca58488..1ba7ad8b2daf 100644 --- a/security/clamav/Makefile +++ b/security/clamav/Makefile @@ -1,133 +1,133 @@ PORTNAME= clamav -DISTVERSION= 0.104.0 +DISTVERSION= 0.104.1 PORTEPOCH= 1 CATEGORIES= security MASTER_SITES= https://www.clamav.net/downloads/production/ MAINTAINER= yasu@FreeBSD.org -COMMENT= Command line virus scanner written entirely in C +COMMENT= Open-source (GPL) anti-virus engine (Regular Feature Release) LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING.txt LIB_DEPENDS= libcurl.so:ftp/curl \ libjson-c.so:devel/json-c \ libmspack.so:archivers/libmspack \ libpcre2-8.so:devel/pcre2 USES= cmake cpe gnome iconv ncurses pkgconfig ssl USE_GNOME= libxml2 USE_LDCONFIG= yes USE_RC_SUBR= clamav-clamd clamav-freshclam CMAKE_ARGS= -DDATABASE_DIRECTORY:STRING=${_DBDIR} CMAKE_ON= ENABLE_EXTERNAL_MSPACK TEST_TARGET= check CONFLICTS_INSTALL= clamav-[0-9]* SUB_FILES= pkg-message SUB_LIST+= CHMOD=${CHMOD} \ CHOWN=${CHOWN} \ CLAMAV_CLAMD_PIDFILE=${_CLAMAV_CLAMD_PIDFILE} \ CLAMAV_CLAMD_SOCKET=${_CLAMAV_CLAMD_SOCKET} \ CLAMAV_MILTER_SOCKET=${_CLAMAV_MILTER_SOCKET} \ CLAMAVGROUP=${_CLAMAVGROUP} \ CLAMAVUSER=${_CLAMAVUSER} \ DBDIR=${_DBDIR} \ LOGDIR=${_LOGDIR} \ RUNDIR=${_RUNDIR} USERS= ${_CLAMAVUSER} GROUPS= ${_CLAMAVGROUP} mail PLIST_SUB+= CLAMAVGROUP=${_CLAMAVGROUP} \ CLAMAVUSER=${_CLAMAVUSER} \ DBDIR=${_DBDIR} \ LOGDIR=${_LOGDIR} \ RUNDIR=${_RUNDIR} OPTIONS_DEFINE= ARC ARJ DOCS EXPERIMENTAL LHA MILTER STDERR TESTS UNRAR UNZOO OPTIONS_DEFAULT= ARC ARJ MILTER UNRAR UNZOO OPTIONS_SUB= yes ARC_DESC= Enable arch archives support ARJ_DESC= Enable arj archives support EXPERIMENTAL_DESC= Build experimental code LHA_DESC= Enable lha archives support MILTER_DESC= Compile the milter interface STDERR_DESC= Print logs to stderr instead of stdout TESTS_DESC= Build with test enabled (`make test` requires it) UNZOO_DESC= Enable zoo archives support ARC_RUN_DEPENDS= arc:archivers/arc ARJ_RUN_DEPENDS= arj:archivers/arj EXPERIMENTAL_CMAKE_BOOL= ENABLE_EXPERIMENTAL LHA_RUN_DEPENDS= lha:archivers/lha .if !exists(/usr/lib/libmilter.so) MILTER_LIB_DEPENDS= libmilter.so:mail/libmilter .endif MILTER_USE= RC_SUBR=clamav-milter .if !exists(/usr/lib/libmilter.so) MILTER_USE+= localbase .endif MILTER_CMAKE_BOOL= ENABLE_MILTER STDERR_EXTRA_PATCHES= ${FILESDIR}/extra-patch-common_output.c TESTS_BUILD_DEPENDS= ${LOCALBASE}/include/check.h:devel/check TESTS_USES= python:build TESTS_CMAKE_BOOL= ENABLE_TESTS UNRAR_CMAKE_BOOL= ENABLE_UNRAR UNZOO_RUN_DEPENDS= unzoo:archivers/unzoo _CLAMAVUSER= clamav _CLAMAVGROUP= clamav _CLAMAV_CLAMD_SOCKET?= ${_RUNDIR}/clamd.sock _CLAMAV_CLAMD_PIDFILE?= ${_RUNDIR}/clamd.pid _CLAMAV_MILTER_SOCKET?= ${_RUNDIR}/clmilter.sock _DBDIR= /var/db/clamav _LOGDIR= /var/log/clamav _RUNDIR= /var/run/clamav _SED_CONF= -E -e 's|^\#?(Example)$$|\#\1|' -e \ 's|^\#?((Update)?LogFile) .*/([a-z]+\.log)$$|\1 ${_LOGDIR}/\3|' \ -e 's|^\#?(PidFile) .*/([a-z\-]+\.pid)$$|\1 ${_RUNDIR}/\2|' -e \ 's|^\#?(LocalSocket) .*$$|\1 ${_CLAMAV_CLAMD_SOCKET}|' -e \ 's|^\#?(User) .*$$|\1 ${_CLAMAVUSER}|' -e \ 's|^\#?(AllowSupplementaryGroups).*$$|\1 yes|' -e \ 's|^\#?(ScanMail).*$$|\1 yes|' -e \ 's|^\#?(DatabaseDirectory) .*$$|\1 ${_DBDIR}|' -e \ 's|^\#?(DatabaseOwner) .*$$|\1 ${_CLAMAVUSER}|' -e \ 's|^\#?(FixStaleSocket).*$$|\1 yes|' -e \ 's|^\#?(NotifyClamd) .*$$|\1 ${PREFIX}/etc/clamd.conf|' -e \ 's|^\#?(MilterSocket) */tmp.*$$|\1 ${_CLAMAV_MILTER_SOCKET}|' \ -e 's|^\#?(ClamdSocket).*$$|\1 unix:${_CLAMAV_CLAMD_SOCKET}|' post-patch: @${REINPLACE_CMD} ${_SED_CONF} \ ${WRKSRC}/etc/clamd.conf.sample \ ${WRKSRC}/etc/freshclam.conf.sample \ ${WRKSRC}/etc/clamav-milter.conf.sample post-install: ${INSTALL_DATA} ${INSTALL_WRKSRC}/clamav-config.h ${STAGEDIR}${PREFIX}/include @${MKDIR} ${STAGEDIR}${_DBDIR} \ ${STAGEDIR}${_LOGDIR} \ ${STAGEDIR}${_RUNDIR} post-install-DOCS-on: ${MV} ${STAGEDIR}${PREFIX}/share/doc/ClamAV ${STAGEDIR}${DOCSDIR} post-install-DOCS-off: ${RM} -r ${STAGEDIR}${PREFIX}/share/doc/ClamAV pre-test-TESTS-off: @${ECHO_MSG} '******************************************************************' && \ ${ECHO_MSG} '***** You need to enable TESTS option to execute `make test` *****' && \ ${ECHO_MSG} '******************************************************************' && \ ${FALSE} .include diff --git a/security/clamav/distinfo b/security/clamav/distinfo index e578511dfc6c..60b1e206a767 100644 --- a/security/clamav/distinfo +++ b/security/clamav/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1631019092 -SHA256 (clamav-0.104.0.tar.gz) = a079d64cd55d6184510adfe0f341b2f278f7fb1bcc080d28d374298160f19cb2 -SIZE (clamav-0.104.0.tar.gz) = 11896747 +TIMESTAMP = 1635961222 +SHA256 (clamav-0.104.1.tar.gz) = b7e6b709ab6c8a8eddb8c32b04c3e5df38adcae459b4ecd9bc1febaca9be57c0 +SIZE (clamav-0.104.1.tar.gz) = 11953064 diff --git a/security/clamav/files/patch-cmake_FindCURSES.cmake b/security/clamav/files/patch-cmake_FindCURSES.cmake new file mode 100644 index 000000000000..6ebeacc46f48 --- /dev/null +++ b/security/clamav/files/patch-cmake_FindCURSES.cmake @@ -0,0 +1,15 @@ +--- cmake/FindCURSES.cmake.orig 2021-11-02 19:09:25 UTC ++++ cmake/FindCURSES.cmake +@@ -58,7 +58,11 @@ if(NCURSES_NOT_FOUND EQUAL -1) + set(HAVE_LIBNCURSES 1) + set(CURSES_INCLUDE "") + +- set(CURSES_LIBRARY ${PC_NCurses_LINK_LIBRARIES}) ++ find_library(CURSES_LIBRARY ++ NAMES ncurses ++ PATHS ${PC_NCurses_LIBRARY_DIRS} ++ ) ++ + set(CURSES_VERSION ${PC_NCurses_VERSION}) + + include(FindPackageHandleStandardArgs) diff --git a/security/clamav/pkg-descr b/security/clamav/pkg-descr index 5227cb3413dc..4f2f846671be 100644 --- a/security/clamav/pkg-descr +++ b/security/clamav/pkg-descr @@ -1,8 +1,9 @@ -This the stable version of Clam Antivirus. -Clam Antivirus is command line virus scanner written entirely in C -and its database is kept up to date. It also detects polymorphic -viruses, scans compressed files and supported by AMaViS. -Optionally you can use the clamav-milter interface to connect -clamav with sendmail. +ClamAV is an open-source (GPL) anti-virus engine used in a variety of +situations, including email and web scanning, and endpoint +security. It provides many utilities for users, including a flexible +and scalable multi-threaded daemon, a command-line scanner and an +advanced tool for automatic database updates. + +This is Regular (non-LTS) Feature Release of ClamAV. WWW: https://www.clamav.net/