- Update to 0.88.1 -- Fix multiple vulnerabilities

* CVE-2006-1614
    Damian Put discovered an integer overflow in the PE header parser.
    This is only exploitable if the ArchiveMaxFileSize option is disabled.
 * CVE-2006-1615
    Format string vulnerabilities in the logging code have been discovered,
    which might lead to the execution of arbitrary code.
 * CVE-2006-1630
    David Luyer discovered, that ClamAV can be tricked into an invalid
    memory access in the cli_bitset_set() function, which may lead to
    a denial of service.

- Use USE_RC_SUBR=script

PR:		ports/95403
Submitted by:	garga
Approved by:	maintainer timeout (mnag on behalf of secteam)
Security:	VuXML 6a5174bd-c580-11da-9110-00123ffe8333
This commit is contained in:
Renato Botelho 2006-04-06 15:20:18 +00:00
parent 43cf76f912
commit ee4f428e3a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=158963
6 changed files with 11 additions and 32 deletions

View File

@ -6,8 +6,7 @@
#
PORTNAME= clamav
PORTVERSION= 0.88
PORTREVISION= 1
PORTVERSION= 0.88.1
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= clamav
@ -26,11 +25,10 @@ OPTIONS= MILTER "Compile the milter interface" Off \
CURL "Support URL downloading" Off \
LIBUNRAR "Support for external Unrar library" Off
USE_REINPLACE= yes
USE_AUTOTOOLS= libtool:15
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
USE_RC_SUBR= yes
USE_RC_SUBR= clamav-clamd clamav-freshclam
PORTDOCS= NEWS ChangeLog html
@ -66,7 +64,7 @@ CLAMAVGROUP?= clamav
CLAMAV_CLAMD_SOCKET?= ${RUNDIR}/clamd
CLAMAV_MILTER_SOCKET?= ${RUNDIR}/clmilter.sock
SUB_FILES= pkg-install pkg-deinstall clamav-clamd.sh clamav-freshclam.sh
SUB_FILES= pkg-install pkg-deinstall
SUB_LIST= DBDIR=${DBDIR} \
LOGDIR=${LOGDIR} \
RUNDIR=${RUNDIR} \
@ -90,11 +88,6 @@ SED_CONF= -E -e 's|^\#?(Example)$$|\#\1|' \
PLIST_SUB+= CLAMAVUSER=${CLAMAVUSER} \
CLAMAVGROUP=${CLAMAVGROUP}
RC_DIR= ${PREFIX}/etc/rc.d
RC_SUFX= .sh
SUB_LIST+= RC_DIR=${RC_DIR} RC_SUFX=${RC_SUFX}
PLIST_SUB+= RC_DIR=${RC_DIR} RC_SUFX=${RC_SUFX}
.include <bsd.port.pre.mk>
.if ${OSVERSION} == 502010
@ -102,7 +95,7 @@ PTHREAD_LIBS= -pthread
.endif
.if defined(WITH_MILTER)
SUB_FILES+= clamav-milter.sh
USE_RC_SUBR+= clamav-milter
.if !defined(WITHOUT_LDAP) && exists(${LOCALBASE}/lib/libldap.so)
USE_OPENLDAP= yes
LDFLAGS+= -lldap
@ -156,19 +149,11 @@ pre-install:
${SH} ${PKGINSTALL} ${PREFIX} PRE-INSTALL
post-install:
@${INSTALL_SCRIPT} ${WRKDIR}/clamav-clamd.sh \
${DESTDIR}${RC_DIR}/clamav-clamd${RC_SUFX}
@${INSTALL_SCRIPT} ${WRKDIR}/clamav-freshclam.sh \
${DESTDIR}${RC_DIR}/clamav-freshclam${RC_SUFX}
@${CHOWN} -R ${CLAMAVUSER}:${CLAMAVGROUP} ${DESTDIR}${DBDIR}
.for c in clamd freshclam
@[ -f ${DESTDIR}${PREFIX}/etc/${c}.conf ] || \
${CP} ${DESTDIR}${PREFIX}/etc/${c}.conf.default ${DESTDIR}${PREFIX}/etc/${c}.conf
.endfor
.if defined(WITH_MILTER)
@${INSTALL_SCRIPT} ${WRKDIR}/clamav-milter.sh \
${DESTDIR}${RC_DIR}/clamav-milter${RC_SUFX}
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DESTDIR}${DOCSDIR}
@${INSTALL_DATA} ${INSTALL_WRKSRC}/NEWS ${INSTALL_WRKSRC}/ChangeLog \

View File

@ -1,3 +1,3 @@
MD5 (clamav-0.88.tar.gz) = 5d23205673c32e2b1b6db95000e6da74
SHA256 (clamav-0.88.tar.gz) = 7912be29d13dae676691fbad7fa5fc1518eb3b8b45f8d147097908533ca1f8db
SIZE (clamav-0.88.tar.gz) = 4564473
MD5 (clamav-0.88.1.tar.gz) = 9fe8c47037051e350077513dd94fb76a
SHA256 (clamav-0.88.1.tar.gz) = 25f678d1268fa91913dd2f0b7e08338faf65a4f48618ce59d773e3c42e606cff
SIZE (clamav-0.88.1.tar.gz) = 5348769

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/security/clamav/files/Attic/clamav-clamd.sh.in,v 1.2 2006-02-20 20:47:37 dougb Exp $
# $FreeBSD$
#
# PROVIDE: clamd

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/security/clamav/files/Attic/clamav-freshclam.sh.in,v 1.2 2006-02-20 20:47:37 dougb Exp $
# $FreeBSD$
#
# PROVIDE: freshclam
@ -23,7 +23,7 @@ rcvar=`set_rcvar`
command=%%PREFIX%%/bin/freshclam
pidfile=%%RUNDIR%%/freshclam.pid
command_args="--daemon"
command_args="--daemon -p ${pidfile}"
required_dirs=%%DBDIR%%
required_files=%%PREFIX%%/etc/freshclam.conf

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/security/clamav/files/Attic/clamav-milter.sh.in,v 1.3 2006-02-20 20:47:37 dougb Exp $
# $FreeBSD$
#
# PROVIDE: clamav-milter

View File

@ -1,15 +1,9 @@
@comment $FreeBSD$
%%CLAMAV-MILTER%%@unexec [ ! -f %%RUNDIR%%/clamav-milter.pid ] || %%RC_DIR%%/clamav-milter%%RC_SUFX%% stop || true
@unexec [ ! -f %%RUNDIR%%/freshclam.pid ] || %%RC_DIR%%/clamav-freshclam%%RC_SUFX%% stop || true
@unexec [ ! -f %%RUNDIR%%/clamd.pid ] || %%RC_DIR%%/clamav-clamd%%RC_SUFX%% stop || true
bin/clamav-config
bin/clamscan
bin/clamdscan
bin/freshclam
bin/sigtool
etc/rc.d/clamav-clamd%%RC_SUFX%%
etc/rc.d/clamav-freshclam%%RC_SUFX%%
%%CLAMAV-MILTER%%etc/rc.d/clamav-milter%%RC_SUFX%%
%%CLAMAV-MILTER%%sbin/clamav-milter
sbin/clamd
include/clamav.h