Index: head/security/clamav/Makefile =================================================================== --- head/security/clamav/Makefile (revision 467146) +++ head/security/clamav/Makefile (revision 467147) @@ -1,208 +1,206 @@ # Created by: markun@onohara.to # $FreeBSD$ PORTNAME= clamav -PORTVERSION= 0.99.4 +PORTVERSION= 0.100.0 CATEGORIES= security MASTER_SITES= http://www.clamav.net/downloads/production/ MAINTAINER= ler@FreeBSD.org COMMENT= Command line virus scanner written entirely in C LICENSE= GPLv2 LIB_DEPENDS= libltdl.so:devel/libltdl \ libcurl.so:ftp/curl OPTIONS_DEFINE= ARC ARJ LHA UNZOO UNRAR TESTS MILTER LDAP ICONV STDERR \ EXPERIMENTAL DOCS IPV6 DMG_XAR JSON PCRE ARC_DESC= Enable arch archives support ARJ_DESC= Enable arj archives support LHA_DESC= Enable lha archives support UNZOO_DESC= Enable zoo archives support TESTS_DESC= Run compile-time tests (req. python) MILTER_DESC= Compile the milter interface STDERR_DESC= Print logs to stderr instead of stdout EXPERIMENTAL_DESC= Build experimental code DMG_XAR_DESC= Enable DMG and XAR archives support OPTIONS_DEFAULT= ARC ARJ UNZOO UNRAR DMG_XAR \ JSON PCRE ARC_RUN_DEPENDS= arc:archivers/arc ARJ_RUN_DEPENDS= arj:archivers/arj LHA_RUN_DEPENDS= lha:archivers/lha UNZOO_RUN_DEPENDS= unzoo:archivers/unzoo JSON_LIB_DEPENDS= libjson-c.so:devel/json-c PCRE_LIB_DEPENDS= libpcre.so:devel/pcre UNRAR_CONFIGURE_ENABLE= unrar MILTER_CONFIGURE_ENABLE=milter TESTS_CONFIGURE_ENABLE= check JSON_CONFIGURE_WITH= libjson PCRE_CONFIGURE_WITH= pcre TESTS_BUILD_DEPENDS= ${LOCALBASE}/include/check.h:devel/check ICONV_CONFIGURE_ON= --with-iconv ICONV_CONFIGURE_OFF= --without-iconv ICONV_USES= iconv EXPERIMENTAL_CONFIGURE_ENABLE= experimental IPV6_CONFIGURE_ENABLE= ipv6 DMG_XAR_CONFIGURE_ENABLE= xml DMG_XAR_USE= GNOME=libxml2 USES= cpe gmake libtool ncurses pathfix ssl GNU_CONFIGURE= yes USE_LDCONFIG= yes INSTALL_TARGET= install-strip USE_RC_SUBR= clamav-clamd clamav-freshclam PORTDOCS= * DBDIR= /var/db/clamav LOGDIR= /var/log/clamav RUNDIR= /var/run/clamav PLIST_SUB+= DBDIR=${DBDIR} \ LOGDIR=${LOGDIR} \ RUNDIR=${RUNDIR} \ CLAMAVUSER=${CLAMAVUSER} \ CLAMAVGROUP=${CLAMAVGROUP} PY_NO_THREAD= ${WRKDIR}/.python-has-no-threads OPTIONS_SUB= yes CONFIGURE_ARGS= --libdir=${PREFIX}/lib \ --with-dbdir=${DBDIR} \ --with-zlib=/usr \ --disable-clamuko \ --disable-clamav \ --enable-bigstack \ --enable-readdir_r \ --enable-gethostbyname_r \ --disable-dependency-tracking \ --disable-zlib-vcheck \ - --enable-clamdtop \ - --disable-llvm + --enable-clamdtop CPPFLAGS+= -I${LOCALBASE}/include # This port has a problem with -pthread, # force to use -lthr until it's not fixed. LDFLAGS+= -lthr -L${LOCALBASE}/lib CONFLICTS?= clamav-milter-[0-9]* CLAMAVUSER?= clamav CLAMAVGROUP?= clamav CLAMAV_CLAMD_SOCKET?= ${RUNDIR}/clamd.sock CLAMAV_CLAMD_PIDFILE?= ${RUNDIR}/clamd.pid CLAMAV_MILTER_SOCKET?= ${RUNDIR}/clmilter.sock SUB_FILES= pkg-deinstall SUB_LIST+= DBDIR=${DBDIR} \ LOGDIR=${LOGDIR} \ RUNDIR=${RUNDIR} \ CHMOD=${CHMOD} \ CHOWN=${CHOWN} \ CLAMAVUSER=${CLAMAVUSER} \ CLAMAVGROUP=${CLAMAVGROUP} \ CLAMAV_CLAMD_SOCKET=${CLAMAV_CLAMD_SOCKET} \ CLAMAV_CLAMD_PIDFILE=${CLAMAV_CLAMD_PIDFILE} \ CLAMAV_MILTER_SOCKET=${CLAMAV_MILTER_SOCKET} 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}|' PLIST_SUB+= CLAMAVUSER=${CLAMAVUSER} \ CLAMAVGROUP=${CLAMAVGROUP} .include .if ${CLAMAVUSER} == "clamav" USERS= clamav .endif .if ${CLAMAVGROUP} == "clamav" GROUPS= clamav mail .endif . if ${PORT_OPTIONS:MTESTS} USES+= python:build . endif .if ${PORT_OPTIONS:MMILTER} USE_RC_SUBR+= clamav-milter . if ${PORT_OPTIONS:MLDAP} && exists(${LOCALBASE}/lib/libldap.so) USE_OPENLDAP= yes LDFLAGS+= -lldap . endif . if !exists(/usr/lib/libmilter.a) || exists(${LOCALBASE}/lib/libmilter.a) BUILD_DEPENDS+= ${LOCALBASE}/lib/libmilter.a:mail/libmilter CONFIGURE_ARGS+=--with-sendmail=${LOCALBASE}/sbin/sendmail LDFLAGS+= -L${LOCALBASE}/lib . else CONFIGURE_ARGS+=--with-sendmail=/usr/sbin/sendmail . endif .endif .if ${PORT_OPTIONS:MSTDERR} EXTRA_PATCHES+= ${FILESDIR}/extra-patch-shared_output.c .endif .include .if ${ARCH} == "i386" CFLAGS+= -march=i486 .endif post-patch: @${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|-lthr|g' \ -e 's|LC_REVISION=22|LC_REVISION=24|' \ ${WRKSRC}/${CONFIGURE_SCRIPT} @${REINPLACE_CMD} ${SED_CONF} \ ${WRKSRC}/etc/clamd.conf.sample \ ${WRKSRC}/etc/freshclam.conf.sample \ ${WRKSRC}/etc/clamav-milter.conf.sample @${REINPLACE_CMD} -e 's|0x100000000|0x100000000ULL|g' \ ${WRKSRC}/libclamunrar/unrar.c .if ${PORT_OPTIONS:MTESTS} pre-configure: @if ! ${PYTHON_CMD} -c "import thread" >/dev/null 2>&1; then \ ${ECHO_MSG} ""; \ ${ECHO_MSG} "==========================================================================="; \ ${ECHO_MSG} "= Unit tests REQUIRES python built with thread support, and yours is not. ="; \ ${ECHO_MSG} "= It will not be called during this build ="; \ ${ECHO_MSG} "==========================================================================="; \ ${ECHO_MSG} ""; \ ${TOUCH} ${PY_NO_THREAD}; \ fi .endif .if ${PORT_OPTIONS:MTESTS} post-build: @if [ ! -f "${PY_NO_THREAD}" ]; then \ ${MAKE_CMD} -C ${WRKSRC} check; \ fi .endif post-install: ${INSTALL_DATA} ${WRKSRC}/clamav-config.h ${STAGEDIR}${PREFIX}/include @${MKDIR} ${STAGEDIR}${DOCSDIR}/html \ ${STAGEDIR}${DBDIR} \ ${STAGEDIR}${LOGDIR} \ ${STAGEDIR}${RUNDIR} - ${INSTALL_DATA} ${WRKSRC}/NEWS ${WRKSRC}/ChangeLog ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/docs/html/* ${STAGEDIR}${DOCSDIR}/html .include Index: head/security/clamav/distinfo =================================================================== --- head/security/clamav/distinfo (revision 467146) +++ head/security/clamav/distinfo (revision 467147) @@ -1,3 +1,3 @@ -TIMESTAMP = 1520002083 -SHA256 (clamav-0.99.4.tar.gz) = d72ac3273bde8d2e5e28ec9978373ee3ab4529fd868bc3fc4d2d2671228f2461 -SIZE (clamav-0.99.4.tar.gz) = 16083015 +TIMESTAMP = 1523370392 +SHA256 (clamav-0.100.0.tar.gz) = c5c5edaf75a3c53ac0f271148fd6447310bce53f448ec7e6205124a25918f65c +SIZE (clamav-0.100.0.tar.gz) = 16036757 Index: head/security/clamav/files/patch-libclamav_bytecode__api.c =================================================================== --- head/security/clamav/files/patch-libclamav_bytecode__api.c (revision 467146) +++ head/security/clamav/files/patch-libclamav_bytecode__api.c (nonexistent) @@ -1,44 +0,0 @@ ---- libclamav/bytecode_api.c.orig 2016-04-22 15:02:19 UTC -+++ libclamav/bytecode_api.c -@@ -811,8 +811,19 @@ int32_t cli_bcapi_inflate_init(struct cli_bc_ctx *ctx, - cli_dbgmsg("bytecode api: inflate_init: invalid buffers!\n"); - return -1; - } -- memset(&stream, 0, sizeof(stream)); -- ret = inflateInit2(&stream, windowBits); -+ b = cli_realloc(ctx->inflates, sizeof(*ctx->inflates)*n); -+ if (!b) { -+ return -1; -+ } -+ ctx->inflates = b; -+ ctx->ninflates = n; -+ b = &b[n-1]; -+ -+ b->from = from; -+ b->to = to; -+ b->needSync = 0; -+ memset(&b->stream, 0, sizeof(stream)); -+ ret = inflateInit2(&b->stream, windowBits); - switch (ret) { - case Z_MEM_ERROR: - cli_dbgmsg("bytecode api: inflateInit2: out of memory!\n"); -@@ -830,19 +841,6 @@ int32_t cli_bcapi_inflate_init(struct cli_bc_ctx *ctx, - return -1; - } - -- b = cli_realloc(ctx->inflates, sizeof(*ctx->inflates)*n); -- if (!b) { -- inflateEnd(&stream); -- return -1; -- } -- ctx->inflates = b; -- ctx->ninflates = n; -- b = &b[n-1]; -- -- b->from = from; -- b->to = to; -- b->needSync = 0; -- memcpy(&b->stream, &stream, sizeof(stream)); - return n-1; - } - Property changes on: head/security/clamav/files/patch-libclamav_bytecode__api.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/clamav/files/patch-libclamav_regex_pcre.c =================================================================== --- head/security/clamav/files/patch-libclamav_regex_pcre.c (revision 467146) +++ head/security/clamav/files/patch-libclamav_regex_pcre.c (nonexistent) @@ -1,12 +0,0 @@ ---- libclamav/regex_pcre.c.orig 2018-01-23 21:04:06 UTC -+++ libclamav/regex_pcre.c -@@ -112,7 +112,8 @@ int cli_pcre_addoptions(struct cli_pcre_ - #if USING_PCRE2 - int cli_pcre_compile(struct cli_pcre_data *pd, long long unsigned match_limit, long long unsigned match_limit_recursion, unsigned int options, int opt_override) - { -- int errornum, erroffset; -+ int errornum; -+ size_t erroffset; - pcre2_general_context *gctx; - pcre2_compile_context *cctx; - Property changes on: head/security/clamav/files/patch-libclamav_regex_pcre.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/clamav/pkg-plist =================================================================== --- head/security/clamav/pkg-plist (revision 467146) +++ head/security/clamav/pkg-plist (revision 467147) @@ -1,42 +1,47 @@ bin/clamav-config bin/clambc bin/clamconf +bin/clamdscan bin/clamdtop bin/clamscan bin/clamsubmit -bin/clamdscan bin/freshclam bin/sigtool %%MILTER%%sbin/clamav-milter sbin/clamd include/clamav.h include/clamav-config.h lib/libclamav.so lib/libclamav.so.7 lib/libclamav.so.7.1.1 -%%UNRAR%%lib/libclamunrar.so -%%UNRAR%%lib/libclamunrar.so.7 -%%UNRAR%%lib/libclamunrar.so.7.1.1 -%%UNRAR%%lib/libclamunrar_iface.so -%%UNRAR%%lib/libclamunrar_iface.so.7 -%%UNRAR%%lib/libclamunrar_iface.so.7.1.1 +lib/libclammspack.a +lib/libclammspack.so +lib/libclammspack.so.0 +lib/libclammspack.so.0.1.0 +lib/libclamunrar.so +lib/libclamunrar.so.7 +lib/libclamunrar.so.7.1.1 +lib/libclamunrar_iface.so +lib/libclamunrar_iface.so.7 +lib/libclamunrar_iface.so.7.1.1 libdata/pkgconfig/libclamav.pc +libdata/pkgconfig/libclammspack.pc man/man1/clambc.1.gz man/man1/clamconf.1.gz man/man1/clamdscan.1.gz man/man1/clamdtop.1.gz man/man1/clamscan.1.gz man/man1/clamsubmit.1.gz man/man1/freshclam.1.gz man/man1/sigtool.1.gz man/man5/clamav-milter.conf.5.gz man/man5/clamd.conf.5.gz man/man5/freshclam.conf.5.gz man/man8/clamav-milter.8.gz man/man8/clamd.8.gz @sample etc/clamd.conf.sample @sample etc/freshclam.conf.sample %%MILTER%%@sample etc/clamav-milter.conf.sample @dir(%%CLAMAVUSER%%,%%CLAMAVGROUP%%,0755) %%DBDIR%% @dir(%%CLAMAVUSER%%,%%CLAMAVGROUP%%,0755) %%LOGDIR%% @dir(%%CLAMAVUSER%%,%%CLAMAVGROUP%%,0755) %%RUNDIR%%