openbsd-ports/security/clamav/Makefile
sthen cc1714daad SECURITY update to ClamAV 0.97.8
"ClamAV 0.97.8 addresses several reported potential security bugs.
Thanks to Felix Groebert of the Google Security Team for finding and
reporting these issues."

- fixes in PE and autoit decoding
- off by one malloc in SIS format handler
- minor changes to freshclam
- add error checking in md5 (memcpy etc.)
2013-04-23 20:34:16 +00:00

80 lines
1.8 KiB
Makefile

# $OpenBSD: Makefile,v 1.83 2013/04/23 20:34:16 sthen Exp $
COMMENT= virus scanner
DISTNAME= clamav-0.97.8
CATEGORIES= security
SHARED_LIBS= clamav 20.0 \
clamunrar 2.0 \
clamunrar_iface 2.0
HOMEPAGE= http://www.clamav.net/
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
# GPLv2/LGPL
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= bz2 c ltdl m milter ncurses pthread z
BUILD_DEPENDS= devel/check \
devel/libexecinfo
LIB_DEPENDS= archivers/bzip2 \
devel/libtool,-ltdl
RUN_DEPENDS= archivers/lha \
archivers/zoo \
archivers/arc \
archivers/unzip
USE_GROFF = Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=clamav/}
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 \
--with-ltdl-include=${LOCALBASE}/include \
--with-ltdl-lib=${LOCALBASE}/lib
TEST_TARGET= check
MODULES= lang/python converters/libiconv
MODPY_RUNDEP= no
CPPFLAGS+= -I/usr/include -I${LOCALBASE}/include
LDFLAGS+= -pthread -L/usr/lib \
-L${LOCALBASE}/lib
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" \
CPPFLAGS="${CPPFLAGS}"
.include <bsd.port.arch.mk>
.if ${PROPERTIES:Mllvm}
BUILD_DEPENDS+= devel/llvm
pre-configure:
rm -rf ${WRKSRC}/libclamav/c++/llvm
.endif
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/clamav \
${PREFIX}/share/examples/clamav
cd ${WRKSRC}/docs; ${INSTALL_DATA} *.pdf ${PREFIX}/share/doc/clamav
cd ${WRKSRC}/etc; ${INSTALL_DATA} clamd.conf freshclam.conf \
clamav-milter.conf ${PREFIX}/share/examples/clamav
cd ${WRKSRC}/examples; ${INSTALL_DATA} ex1.c \
${PREFIX}/share/examples/clamav
pre-test:
ln -s ${MODPY_BIN} ${WRKDIR}/bin/python
.include <bsd.port.mk>