openbsd-ports/security/clamav/Makefile
sthen 9e5aaab242 SECURITY and other bug fixes.
- A vulnerability in ClamAV's chm-parser allowed remote attackers to
cause a denial of service (application crash) via a malformed CHM file
(CVE-2008-1389).

- A vulnerability in libclamav would allow attackers to cause a
denial of service via vectors related to an out-of-memory condition
(CVE-2008-3912).

- Multiple memory leaks were found in ClamAV that could possibly allow
attackers to cause a denial of service via excessive memory consumption
(CVE-2008-3913).

- A number of unspecified vulnerabilities in ClamAV were reported that
have an unknown impact and attack vectors related to file descriptor
leaks (CVE-2008-3914).

various OpenBSD patches rolled in upstream. thanks to sturm@
for looking over systrace.filter (needed for the test of sendmsg()
in configure to enable FD passing).
2008-09-14 15:00:43 +00:00

67 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.39 2008/09/14 15:00:43 sthen Exp $
COMMENT= virus scanner
DISTNAME= clamav-0.94
CATEGORIES= security
SHARED_LIBS= clamav 9.0 \
clamunrar 1.0 \
clamunrar_iface 1.0
HOMEPAGE= http://www.clamav.net/
MAINTAINER= Marc Balmer <mbalmer@openbsd.org>
# GPLv2/LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c milter pthread wrap z
BUILD_DEPENDS= ::devel/check
LIB_DEPENDS= gmp.>=6::devel/gmp \
bz2.>=10::archivers/bzip2 \
iconv.>=4::converters/libiconv
RUN_DEPENDS= :lha-*:archivers/lha \
:zoo-*:archivers/zoo \
:arc-*:archivers/arc \
:unzip-*:archivers/unzip
USE_LIBTOOL= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=clamav/} \
${HOMEPAGE}
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ARGS+= --disable-clamav \
--enable-dependency-tracking \
--disable-clamuko \
--enable-bigstack \
--enable-milter \
--with-user=_clamav \
--with-group=_clamav \
--disable-cr \
--with-dbdir=/var/db/clamav
REGRESS_TARGET= check
CONFIGURE_ENV+= LDFLAGS="-pthread -L/usr/lib -L../libclamav/.libs -L${LOCALBASE}/lib" \
CPPFLAGS="-I/usr/include -I${LOCALBASE}/include"
DOCS= clamav-mirror-howto.pdf clamdoc.pdf signatures.pdf
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/clamav \
${PREFIX}/share/examples/clamav
cd ${WRKSRC}/docs; ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/clamav
cd ${WRKSRC}/etc; ${INSTALL_DATA} clamd.conf \
freshclam.conf ${PREFIX}/share/examples/clamav
cd ${WRKSRC}/examples; ${INSTALL_DATA} ex1.c \
${PREFIX}/share/examples/clamav
.include <bsd.port.mk>