pkgsrc/mail/clamav/Makefile
grant 67d3a05330 update clamav to 0.87.1.
changes since 0.87:

  * Bugfixes:
    - libclamav/petite.c: fix boundary checks (acab)
    - libclamav/mbox.c: scan attachments that have no filename (njh)
    - libclamav/fsg.c: fix buffer size calculation in unfsg_133
      Reported by Zero Day Initiative (ZDI-CAN-004)
    - libclamav/tnef.c: fix possible infinite loop
      Reported by iDEFENSE (IDEF1169).
    - libclamav/mspack/cabd.c: fix possible infinite loop in cabd_find
      (tk)
      Reported by iDEFENSE (IDEF1180).
    - clamd/others.c: fix compilation error on Cobalt Qube 1 (tk)
    - clamd: properly handle ReadTimeout in SESSION (tk)
      Bug reported by Kamil Kaczkowski <kamil*kamil.eisp.pl>
    - libclamav/others.c,h: Add generic bitset implementation (trog)
    - libclamav/ole2_extract.c: Make sure the property tree doesn't
      loop (trog)
      Fixes CAN-2005-3239. Installations with default settings were
      not affected by this bug.
2005-11-04 03:47:49 +00:00

97 lines
2.8 KiB
Makefile

# $NetBSD: Makefile,v 1.47 2005/11/04 03:47:49 grant Exp $
DISTNAME= clamav-${CLAMAV_VERSION}
PKGNAME= clamav-${CLAMAV_VERSION:S/-/./}
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=clamav/}
MAINTAINER= grant@NetBSD.org
HOMEPAGE= http://www.clamav.net/
COMMENT= Anti-virus toolkit
PKG_INSTALLATION_TYPES= overwrite pkgviews
CLAMAV_VERSION= 0.87.1
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-clamav
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --with-dbdir=${VIRUSDBDIR}
CONFIGURE_ARGS+= --with-uid=${CLAMAV_USER}
CONFIGURE_ARGS+= --with-group=${CLAMAV_GROUP}
CONFIGURE_ARGS+= --with-tcpwrappers
CONFIGURE_ARGS+= --with-zlib=${BUILDLINK_PREFIX.zlib}
.include "../../mk/bsd.prefs.mk"
BUILD_DEFS+= CLAMAV_USER CLAMAV_GROUP
FILES_SUBST+= CLAMAV_USER=${CLAMAV_USER}
MESSAGE_SUBST+= CLAMAV_USER=${CLAMAV_USER}
USE_PKGINSTALL= yes
DEINSTALL_EXTRA_TMPL= ${.CURDIR}/DEINSTALL
RCD_SCRIPTS= clamd freshclamd
PKG_GROUPS+= ${CLAMAV_GROUP}
PKG_USERS+= ${CLAMAV_USER}:${CLAMAV_GROUP}::Clamav\ User
VIRUSDBDIR= ${VARBASE}/clamav
EGDIR= ${PREFIX}/share/examples/clamav
FILES_SUBST+= VIRUSDBDIR=${VIRUSDBDIR}
OWN_DIRS_PERMS= ${VIRUSDBDIR} ${CLAMAV_USER} ${CLAMAV_GROUP} 0775
CONF_FILES= # empty
CONF_FILES_PERMS= # empty
.for _file_ in clamd.conf freshclam.conf
CONF_FILES+= ${EGDIR}/${_file_} ${PKG_SYSCONFDIR}/${_file_}
.endfor
.for _file_ in daily.cvd main.cvd
CONF_FILES_PERMS+= ${EGDIR}/${_file_} ${VIRUSDBDIR}/${_file_} \
${CLAMAV_USER} ${CLAMAV_GROUP} 0664
.endfor
.undef _file_
INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} CFGINST=${EGDIR} DBINST=${EGDIR}
PKG_OPTIONS_VAR= PKG_OPTIONS.clamav
PKG_SUPPORTED_OPTIONS= curl milter
PKG_SUGGESTED_OPTIONS= curl
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mmilter)
# force use of pkgsrc version of libmilter -- clamav uses the sendmail binary
# to check API compatibility(!), so it must build with as new a version of
# libmilter as pkgsrc is capable of providing
USE_BUILTIN.libmilter= no
. include "../../mail/libmilter/buildlink3.mk"
CONFIGURE_ARGS+= --enable-milter
PLIST_SUBST+= MILTER=
.else
CONFIGURE_ARGS+= --disable-milter
# XXX --disable-milter doesn't work as expected, so we need this
CONFIGURE_ENV+= ac_cv_header_libmilter_mfapi_h=no
PLIST_SUBST+= MILTER="@comment "
.endif
.if !empty(PKG_OPTIONS:Mcurl)
. include "../../www/curl/buildlink3.mk"
CONFIGURE_ARGS+= --with-libcurl
BUILDLINK_DEPENDS.curl+=curl>=7.10.0
.else
CONFIGURE_ARGS+= --without-libcurl
.endif
# pkgsrc enforces a "secure" version of zlib, so don't let this check
# bomb the build.
CONFIGURE_ARGS+= --disable-zlib-vcheck
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../devel/gmp/buildlink3.mk"
.include "../../security/tcp_wrappers/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"