2009-04-11 10:13:58 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.42 2009/04/11 14:13:58 sthen Exp $
|
2005-01-09 12:07:52 -05:00
|
|
|
|
2007-08-02 14:12:55 -04:00
|
|
|
COMMENT= virus scanner
|
2009-04-11 10:13:58 -04:00
|
|
|
DISTNAME= clamav-0.95.1
|
2005-01-09 12:07:52 -05:00
|
|
|
CATEGORIES= security
|
2009-04-11 10:13:58 -04:00
|
|
|
SHARED_LIBS= clamav 11.0 \
|
|
|
|
clamunrar 2.0 \
|
|
|
|
clamunrar_iface 2.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
|
|
|
|
|
2009-04-11 10:13:58 -04:00
|
|
|
WANTLIB= c milter ncurses pthread z
|
2005-01-09 12:07:52 -05:00
|
|
|
|
2008-09-14 11:00:43 -04:00
|
|
|
BUILD_DEPENDS= ::devel/check
|
|
|
|
|
2009-04-11 10:13:58 -04:00
|
|
|
LIB_DEPENDS= bz2.>=10::archivers/bzip2 \
|
2007-03-25 07:24:02 -04:00
|
|
|
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
|
|
|
|
|
2009-04-11 10:13:58 -04:00
|
|
|
# XXX dlopen() of modules fails with the ports-tree libltdl.
|
|
|
|
# the bundled libltdl won't build with ports-tree libtool;
|
|
|
|
# use bundled versions of both for now.
|
|
|
|
LIBTOOL= ${WRKSRC}/libtool
|
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=clamav/}
|
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
|
|
|
|
2008-09-14 11:00:43 -04:00
|
|
|
REGRESS_TARGET= check
|
2005-01-09 12:07:52 -05:00
|
|
|
|
2009-04-11 10:13:58 -04:00
|
|
|
CONFIGURE_ENV+= LDFLAGS="-pthread -L/usr/lib -L${WRKSRC}/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
|
2009-04-11 10:13:58 -04:00
|
|
|
cd ${WRKSRC}/etc; ${INSTALL_DATA} clamd.conf freshclam.conf \
|
|
|
|
clamav-milter.conf ${PREFIX}/share/examples/clamav
|
2005-01-09 12:07:52 -05:00
|
|
|
cd ${WRKSRC}/examples; ${INSTALL_DATA} ex1.c \
|
|
|
|
${PREFIX}/share/examples/clamav
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|