c3f0e7d8f0
Perl Compatible Regular Expressions, revamped on-access scanning for Linux, and other new features join the many great features of ClamAV: - Processing of YARA rules(some limitations- see signatures.pdf). - Support in ClamAV logical signatures for many of the features added for YARA, such as Perl Compatible Regular Expressions, alternate strings, and YARA string attributes. See signatures.pdf for full details. - New and improved on-access scanning for Linux. See the recent blog post and clamdoc.pdf for details on the new on-access capabilities. - A new ClamAV API callback function that is invoked when a virus is found. This is intended primarily for applications running in all-match mode. Any applications using all-match mode must use the new callback function to record and report detected viruses. - Configurable default password list to attempt zip file decryption. - TIFF file support. - Upgrade Windows pthread library to 2.9.1. - A new signature target type for designating signatures to run against files with unknown file types. - Improved fidelity of the "data loss prevention" heuristic algorithm. Code supplied by Bill Parker. - Support for LZMA decompression within Adobe Flash files. - Support for MSO attachments within Microsoft Office 2003 XML files. - A new sigtool option(--ascii-normalize) allowing signature authors to more easily generate normalized versions of ascii files. - Windows installation directories changed from \Program Files\Sourcefire\ ClamAV to \Program Files\ClamAV or \Program Files\ClamAV-x64.
88 lines
2.7 KiB
Makefile
88 lines
2.7 KiB
Makefile
# $NetBSD: Makefile,v 1.27 2015/12/11 16:31:06 adam Exp $
|
|
|
|
.include "Makefile.common"
|
|
|
|
COMMENT= Anti-virus toolkit
|
|
|
|
USE_LANGUAGES= c c++
|
|
USE_LIBTOOL= yes
|
|
GNU_CONFIGURE= yes
|
|
SET_LIBDIR= yes
|
|
CONFIGURE_ARGS+= --disable-clamav
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
|
CONFIGURE_ARGS+= --with-dbdir=${CLAMAV_DBDIR}
|
|
CONFIGURE_ARGS+= --with-group=${CLAMAV_GROUP}
|
|
CONFIGURE_ARGS+= --with-user=${CLAMAV_USER}
|
|
CONFIGURE_ARGS+= --with-libcurl=${BUILDLINK_PREFIX.curl}
|
|
CONFIGURE_ARGS+= --with-ltdl-include=${BUILDLINK_PREFIX.libltdl}/include
|
|
CONFIGURE_ARGS+= --with-ltdl-lib=${BUILDLINK_PREFIX.libltdl}/lib
|
|
CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl}
|
|
CONFIGURE_ARGS+= --with-pcre=${BUILDLINK_PREFIX.pcre}
|
|
CONFIGURE_ARGS+= --with-xml=${BUILDLINK_PREFIX.libxml2}
|
|
CONFIGURE_ARGS+= --with-zlib=${BUILDLINK_PREFIX.zlib}
|
|
# pkgsrc enforces a "secure" version of zlib, so don't let this check
|
|
# bomb the build
|
|
CONFIGURE_ARGS+= --disable-zlib-vcheck
|
|
|
|
CHECK_PORTABILITY_SKIP= contrib/* unit_tests/* win32/*
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "NetBSD" && !empty(OS_VERSION:M1.*)
|
|
CONFIGURE_ARGS+= --disable-readdir-r
|
|
.else
|
|
CONFIGURE_ARGS+= --enable-readdir_r
|
|
.endif
|
|
|
|
CFLAGS.SunOS+= -D__EXTENSIONS__
|
|
|
|
BUILD_DEFS+= CLAMAV_USER CLAMAV_GROUP CLAMAV_DBDIR
|
|
FILES_SUBST+= CLAMAV_USER=${CLAMAV_USER}
|
|
FILES_SUBST+= CLAMAV_GROUP=${CLAMAV_GROUP}
|
|
FILES_SUBST+= CLAMAV_DBDIR=${CLAMAV_DBDIR}
|
|
MESSAGE_SUBST+= CLAMAV_USER=${CLAMAV_USER}
|
|
|
|
SUBST_CLASSES+= vars
|
|
SUBST_STAGE.vars= pre-configure
|
|
SUBST_FILES.vars= etc/clamd.conf.sample
|
|
SUBST_VARS.vars= CLAMAV_DBDIR
|
|
|
|
RCD_SCRIPTS= clamd freshclamd
|
|
SMF_METHODS= ${RCD_SCRIPTS}
|
|
SMF_INSTANCES= ${SMF_METHODS}
|
|
|
|
PKG_GROUPS+= ${CLAMAV_GROUP}
|
|
PKG_USERS+= ${CLAMAV_USER}:${CLAMAV_GROUP}
|
|
|
|
PKG_GROUPS_VARS+= CLAMAV_GROUP
|
|
PKG_USERS_VARS= CLAMAV_USER
|
|
|
|
EGDIR= ${PREFIX}/share/examples/clamav
|
|
|
|
OWN_DIRS_PERMS= ${CLAMAV_DBDIR} ${CLAMAV_USER} ${CLAMAV_GROUP} 0775
|
|
CONF_FILES= # empty
|
|
CONF_FILES_PERMS= # empty
|
|
.for i in clamav-milter.conf clamd.conf freshclam.conf
|
|
CONF_FILES+= ${EGDIR}/${i} ${PKG_SYSCONFDIR}/${i}
|
|
.endfor
|
|
|
|
INSTALLATION_DIRS+= ${EGDIR}
|
|
|
|
.include "options.mk"
|
|
|
|
post-install:
|
|
.for i in clamav-milter.conf clamd.conf freshclam.conf
|
|
${INSTALL_DATA} ${WRKSRC}/etc/${i}.sample ${DESTDIR}${EGDIR}/${i}
|
|
.endfor
|
|
|
|
.include "../../archivers/bzip2/buildlink3.mk"
|
|
.include "../../devel/libltdl/buildlink3.mk"
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
|
.include "../../devel/pcre/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../devel/gmp/buildlink3.mk"
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
.include "../../textproc/libxml2/buildlink3.mk"
|
|
.include "../../www/curl/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|