pkgsrc/security/fprot-workstation-bin/Makefile

87 lines
2.6 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.26 2006/02/05 23:10:43 joerg Exp $
#
DISTNAME= #defined
Update fprot-workstation-bin to version 4.6.5. This addresses pr/32620, using the patch provided by Christian Gall. Notable changes include: * Fixed an endless loop encountered in a corrupted WMF sample. * A bug in the ELF scanner could cause a crash. * Using a symlink as a path element to f-protd could cause f-protd not to start. * A race issue with startproc (start-stop-daemon in LSB terms) could lead to old DEF files being used by f-protd even after updates. * UPX packed files could cause crash on Solaris/sparc. * Better handling for corrupt mime files. * A bug in MS office scanner on big-endian platforms was fixed. * Anomy extended to do content-type fingerprinting which allows scan-mail.pl to block attachments with false extension based on their 'real' extensions, e.g. .wmf files claiming to be .jpg or .png files. * A bug in scan-mail.pl's rc-script, which could cause problems in Debian when shutting scan-mail.pl down, has been fixed. * Tweaks and optimizations should improve scanning speed by appr. 15-40% over previous releases. * Engine version 3.16.10 will now try to scan zip files which falsly claim to use 64-bit compression methods. 64 bit compression is not supported, but the scanner will now try to scan those files using 32 bit methods. * Improved handling of some types of corrupt files, which were previously skipped with I/O error. * A corrupt arj file could crash the scanner. This has been fixed. * Fixed a bug in scan-mail.pl where attachments would sometimes be left in quarantine. * Trying to scan a device special file now results in non-zero exit code. * Scanning of redirected stdin is now possible, e.g. 'f-prot /dev/fd/0 < /path/to/file'
2006-01-26 05:48:26 +01:00
PKGNAME= fprot-workstation-bin-4.6.5
PKGREVISION= 1
CATEGORIES= security
MAINTAINER= ben@NetBSD.org
HOMEPAGE= http://www.f-prot.com/products/home_use/bsd/
COMMENT= F-prot antivirus for home users
DEPENDS+= p5-libwww>=5.69:../../www/p5-libwww
DEPENDS+= unzip-[0-9]*:../../archivers/unzip
2004-01-08 00:10:17 +01:00
PKG_INSTALLATION_TYPES= overwrite pkgviews
ONLY_FOR_PLATFORM= NetBSD-*-i386 Linux-*-i386 SunOS-*-sparc
RESTRICTED= "Redistribution not permitted"
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
NO_SRC_ON_FTP= ${RESTRICTED}
LICENSE= fprot-workstation-license
WRKSRC= ${WRKDIR}/f-prot
NO_BUILD= yes
USE_TOOLS+= perl:run
DATDIR= ${PREFIX}/share/fprot-workstation-bin
DOCDIR= ${PREFIX}/share/doc/fprot-workstation-bin
FPDIR= ${PREFIX}/libexec/fprot-workstation-bin
CONF_FILES= ${DATDIR}/MACRO.DEF ${FPDIR}/MACRO.DEF
CONF_FILES+= ${DATDIR}/SIGN.DEF ${FPDIR}/SIGN.DEF
CONF_FILES+= ${DATDIR}/SIGN2.DEF ${FPDIR}/SIGN2.DEF
OWN_DIRS= ${FPDIR}
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD"
MASTER_SITES= ftp://ftp.f-prot.com/pub/bsd/
DISTNAME= fp-netbsd-ws-${PKGVERSION}
.endif
.if ${OPSYS} == "Linux"
MASTER_SITES= ftp://ftp.f-prot.com/pub/linux/
DISTNAME= fp-linux-ws-${PKGVERSION}
.endif
.if ${OPSYS} == "SunOS"
MASTER_SITES= ftp://ftp.f-prot.com/pub/solaris/
DISTNAME= fp-solaris-sparc-ws-${PKGVERSION}
.endif
Update fprot-workstation-bin to version 4.5.3. This addresses PR#29271. Changes include: Version 4.5.3 adds a new commandline switch to f-protd, '-fullreport' and new possible summary codes (see man page for details). Version 4.5.2 is a bugfix release; f-protd would misidentify .pdf files and block them from being delivered. Version 4.5.1 is a bugfix release to fix a bug in scan-mail.pl where scan-mail.pl would exit after first scan request on some unix platforms, because of differing signal mechanism between BSD and SysV Version 4.5.0 contains various bugfixes and improvements to the documentation and software. o check-updates.pl has been modified. It now identifies itself with a unique user-agent string containing information on OS, kernel and architecture. o contains a major overhaul of the virus scanning engine (new engine version 3.16.1). These changes improve its detection capabilities. The engine can now better detect and handle executable packers, often used by malware authors to conceal malicious code. o includes a more generic JPEG GDI+ exploit detection o includes EMF/WMF image format exploit detection o encrypted executables inside archives are now reported as "could be a suspicious file (encrypted program in archive)", previously reported as "could be a security risk". o The argument switch "-archive" has been changed to support the form "-archive=n" where n is a non-negative integer. This causes f-prot to scan only n levels deep into nested archives of supported types in order to protect against 'arhcive-bombs'. The old form "-archive" is still supported, although depreciated, and implies n==5. See the man page for details. o Minor modifications in the DTD for the f-prot daemon XML. o Bugfix where f-prot would return IO_ERROR when attempting to scan unsupported partial archive files, e.g. .z01 files o Improved RAR support. F-Prot fully supports rar versions 1.5, 2.0 and 2.6 and partially supports rar 2.9 (doesn't support RAR Virtual Machine and the PPM model features)
2005-02-09 16:21:06 +01:00
DIST_SUBDIR= ${DISTNAME}
SUBST_CLASSES+= f-prot
SUBST_MESSAGE.f-prot= "Configuring f-prot location."
SUBST_STAGE.f-prot= post-patch
SUBST_FILES.f-prot= f-prot.sh
SUBST_SED.f-prot= -e "s,^exec \`.*\`,exec ${FPDIR}/f-prot,g"
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= "Configuring default paths."
SUBST_STAGE.paths= post-patch
SUBST_FILES.paths= tools/check-updates.pl
SUBST_SED.paths= -e "s,XXXFPDIRXXX,${FPDIR}," \
-e "s,/usr/bin/perl,${PREFIX}/bin/perl,g"
INSTALLATION_DIRS= bin man/man1 man/man8 sbin
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/f-prot.sh ${PREFIX}/bin/f-prot
${INSTALL_SCRIPT} ${WRKSRC}/tools/check-updates.pl ${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/man_pages/check-updates.pl.8 ${PREFIX}/man/man8
${INSTALL_MAN} ${WRKSRC}/man_pages/f-prot.1 ${PREFIX}/man/man1
${INSTALL_DATA_DIR} ${DATDIR}
${INSTALL_DATA} ${WRKSRC}/*.DEF ${DATDIR}
${INSTALL_DATA_DIR} ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/LICENSE* ${WRKSRC}/README ${WRKSRC}/CHANGES \
${WRKSRC}/doc_ws/* ${DOCDIR}
${INSTALL_PROGRAM_DIR} ${FPDIR}
${INSTALL_DATA} ${WRKSRC}/ENGLISH.TX0 ${FPDIR}
${INSTALL_PROGRAM} ${WRKSRC}/f-prot ${FPDIR}
.include "../../mk/bsd.pkg.mk"