2008-07-08 18:38:12 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.38 2008/07/08 22:38:12 sthen Exp $
|
2005-01-09 12:07:52 -05:00
|
|
|
|
2007-08-02 14:12:55 -04:00
|
|
|
COMMENT= virus scanner
|
2008-07-08 18:38:12 -04:00
|
|
|
DISTNAME= clamav-0.93.3
|
2005-01-09 12:07:52 -05:00
|
|
|
CATEGORIES= security
|
2008-07-08 18:38:12 -04:00
|
|
|
SHARED_LIBS= clamav 8.0 \
|
2008-04-16 15:46:01 -04:00
|
|
|
clamunrar 0.0 \
|
|
|
|
clamunrar_iface 0.0
|
2005-01-09 12:07:52 -05:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.clamav.net/
|
|
|
|
|
|
|
|
MAINTAINER= Marc Balmer <mbalmer@openbsd.org>
|
|
|
|
|
2007-12-30 17:42:38 -05:00
|
|
|
# GPLv2/LGPL
|
2005-01-09 12:07:52 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2007-08-25 06:08:28 -04:00
|
|
|
WANTLIB= c milter pthread wrap z
|
2005-01-09 12:07:52 -05:00
|
|
|
|
2006-08-03 19:28:11 -04:00
|
|
|
LIB_DEPENDS= gmp.>=6::devel/gmp \
|
2007-03-25 07:24:02 -04:00
|
|
|
bz2.>=10::archivers/bzip2 \
|
|
|
|
iconv.>=4::converters/libiconv
|
2005-01-09 12:07:52 -05:00
|
|
|
|
|
|
|
RUN_DEPENDS= :lha-*:archivers/lha \
|
|
|
|
:zoo-*:archivers/zoo \
|
|
|
|
:arc-*:archivers/arc \
|
|
|
|
:unzip-*:archivers/unzip
|
|
|
|
|
2005-12-24 15:52:58 -05:00
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
|
2005-11-06 14:31:43 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=clamav/} \
|
|
|
|
${HOMEPAGE}
|
2005-01-09 12:07:52 -05:00
|
|
|
|
|
|
|
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 \
|
2008-04-16 15:46:01 -04:00
|
|
|
--with-dbdir=/var/db/clamav
|
2005-01-09 12:07:52 -05:00
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2007-04-11 13:54:10 -04:00
|
|
|
CONFIGURE_ENV+= LDFLAGS="-pthread -L/usr/lib -L../libclamav/.libs -L${LOCALBASE}/lib" \
|
2005-06-29 06:12:09 -04:00
|
|
|
CPPFLAGS="-I/usr/include -I${LOCALBASE}/include"
|
2005-01-09 12:07:52 -05:00
|
|
|
|
|
|
|
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>
|