pkgsrc/mail/clamav/Makefile
xtraeme 1f87db4330 Update mail/clamav to 0.72 and enable pkgviews installation.
Changes:

0.72
----

Major bugfixes in this release include crashes with corrupted BinHex messages
and some Excel documents. Protection against archive bombs (not fully
functional since 0.70) was improved and a number of other improvements were
made.

0.71
----

This release fixes all bugs found in 0.70 and introduces a few new features -
the noteworthy changes include:

-) libclamav:
    + support nested OLE2 files
    + support Word6 macro code
    + ignore popular file types (media, graphics)
    + support compress.exe (SZDD) compression (test/test.msc)
    + improve virus detection in e-mails

-) clamscan:
    + automatically decide (by comparing daily.cvd version numbers) which
      database directory (hardcoded or clamav.conf's one) to use
    + support compression ratio feature (--max-ratio)
    + allow regular expressions in --[in|ex]clude
    + do not overwrite old files in a quarantine directory but add a numerical
      extension to new files
    + respect --tempdir in libclamav
    + fix access problem when calling external unpackers in a superuser mode
    + fix file permission corruption with --deb in a superuser mode

-) clamd
    + support log facility specification in syslog's style (LogFacility)
    + new directive LeaveTemporaryFiles (Debug no longer leaves temporary
      files not removed)

-) clamav-milter:
    + include the virus name in the 550 rejection
    + support user defined template for virus notifications (--template-file)
    + sort quarantine messages by date
    + improve thread management
    + add X-Virus-Scanned and X-Infected-Received-From: headers
    + improve load balancing (when using remote servers with --server)
    + send 554 after DATA received, not 550
    + save PID (--pidfile)

-) documentation:
    + German clamdoc.pdf translation (Rupert Roesler-Schmidt and Karina
      Schwarz, uplink coherent solutions, http://www.uplink.at)
    + new Japanese documentation (Masaki Ogawa)
2004-06-04 15:43:25 +00:00

59 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.17 2004/06/04 15:43:25 xtraeme Exp $
DISTNAME= clamav-${CLAMAV_VERSION}
PKGNAME= clamav-${CLAMAV_VERSION:S/-/./}
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=clamav/}
MAINTAINER= david@netbsd-fr.org
HOMEPAGE= http://www.clamav.net/
COMMENT= Anti-virus toolkit
PKG_INSTALLATION_TYPES= overwrite pkgviews
CLAMAV_VERSION= 0.72
USE_BUILDLINK3= yes
GNU_CONFIGURE= yes
USE_PKGINSTALL= yes
USE_LIBTOOL= yes
# disable the configure check for user and group:
CONFIGURE_ARGS+= --disable-clamav
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --with-uid=${CLAMAV_USER}
CONFIGURE_ARGS+= --with-group=${CLAMAV_GROUP}
CONFIGURE_ARGS+= --with-tcpwrappers
BUILD_DEFS+= CLAMAV_USER CLAMAV_GROUP USE_MILTER
RCD_SCRIPTS= clamd
PKG_GROUPS+= ${CLAMAV_GROUP}
PKG_USERS+= ${CLAMAV_USER}:${CLAMAV_GROUP}::Clamav\\ User
EGDIR= ${PREFIX}/share/examples/clamav
CONF_FILES= ${EGDIR}/clamav.conf ${PKG_SYSCONFDIR}/clamav.conf
CONF_FILES+= ${EGDIR}/freshclam.conf ${PKG_SYSCONFDIR}/freshclam.conf
PLIST_SRC= ${PKGDIR}/PLIST
.include "../../mk/bsd.prefs.mk"
.if defined(USE_MILTER) && !empty(USE_MILTER:M[yY][eE][sS])
.include "../../mail/libmilter/buildlink3.mk"
CONFIGURE_ARGS+= --enable-milter
PLIST_SRC+= ${PKGDIR}/PLIST.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
.endif
# for freshclam to work it must own the share/clamav dir
post-install:
${CHOWN} -R ${CLAMAV_USER}:${CLAMAV_GROUP} ${PREFIX}/share/clamav
.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"