head 1.6; access; symbols pkgsrc-2013Q2:1.6.0.24 pkgsrc-2013Q2-base:1.6 pkgsrc-2012Q4:1.6.0.22 pkgsrc-2012Q4-base:1.6 pkgsrc-2011Q4:1.6.0.20 pkgsrc-2011Q4-base:1.6 pkgsrc-2011Q2:1.6.0.18 pkgsrc-2011Q2-base:1.6 pkgsrc-2009Q4:1.6.0.16 pkgsrc-2009Q4-base:1.6 pkgsrc-2008Q4:1.6.0.14 pkgsrc-2008Q4-base:1.6 pkgsrc-2008Q3:1.6.0.12 pkgsrc-2008Q3-base:1.6 cube-native-xorg:1.6.0.10 cube-native-xorg-base:1.6 pkgsrc-2008Q2:1.6.0.8 pkgsrc-2008Q2-base:1.6 pkgsrc-2008Q1:1.6.0.6 pkgsrc-2008Q1-base:1.6 pkgsrc-2007Q4:1.6.0.4 pkgsrc-2007Q4-base:1.6 pkgsrc-2007Q3:1.6.0.2 pkgsrc-2007Q3-base:1.6 pkgsrc-2007Q2:1.5.0.12 pkgsrc-2007Q2-base:1.5 pkgsrc-2007Q1:1.5.0.10 pkgsrc-2007Q1-base:1.5 pkgsrc-2006Q4:1.5.0.8 pkgsrc-2006Q4-base:1.5 pkgsrc-2006Q3:1.5.0.6 pkgsrc-2006Q3-base:1.5 pkgsrc-2006Q2:1.5.0.4 pkgsrc-2006Q2-base:1.5 pkgsrc-2006Q1:1.5.0.2 pkgsrc-2006Q1-base:1.5 pkgsrc-2005Q4:1.4.0.2 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.3.0.6 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.3.0.4 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.3.0.2 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.1.0.6 pkgsrc-2004Q4-base:1.1 pkgsrc-2004Q3:1.1.0.4 pkgsrc-2004Q3-base:1.1 pkgsrc-2004Q2:1.1.0.2 pkgsrc-2004Q2-base:1.1; locks; strict; comment @# @; 1.6 date 2007.08.21.23.14.47; author jlam; state dead; branches; next 1.5; 1.5 date 2006.01.26.04.48.26; author ben; state Exp; branches; next 1.4; 1.4 date 2005.11.21.02.06.50; author ben; state Exp; branches 1.4.2.1; next 1.3; 1.3 date 2005.03.20.14.14.26; author ben; state Exp; branches; next 1.2; 1.2 date 2005.02.09.15.21.06; author ben; state Exp; branches; next 1.1; 1.1 date 2004.05.13.18.48.32; author ben; state Exp; branches; next ; 1.4.2.1 date 2006.01.29.17.04.26; author salo; state Exp; branches; next ; desc @@ 1.6 log @* Convert security/fprot-workstation-bin to use the emulator framework. * Remove unncessary dependency on netbsd32_compat16 on NetBSD/amd64. This package installs statically linked binaries, so there is no need for any shared libraries or ld.elf_so to run fprot. * Stop pretending to support non-NetBSD platforms -- the build and install targets bear no relation to the extracted distfiles on Linux or Solaris. Support will be re-added in the fullness of time. @ text @$NetBSD: patch-aa,v 1.5 2006/01/26 04:48:26 ben Exp $ --- tools/check-updates.pl.orig 2006-01-05 11:55:12.000000000 +0000 +++ tools/check-updates.pl @@@@ -158,6 +158,8 @@@@ sub findDEFDirectory { return $dir; } + return qq(XXXFPDIRXXX/); + # Try FindBin eval 'use FindBin qw($Bin); $dir = $Bin if $Bin;'; unless ($@@){ @@@@ -353,12 +355,14 @@@@ sub printHelp { # A sub function which checks if the temporary directory you are using # exists, and if it doesn't exist it tries to create it. sub checkTemporaryDirectory { + my $fixTemporaryDirectory = $temporaryDirectory; + $fixTemporaryDirectory =~ s/\/$//; # If your temporary directory does not exist, you must create it. - if (!-e $temporaryDirectory) { - mkdir($temporaryDirectory, $creationMask) + if (!-e $fixTemporaryDirectory) { + mkdir($fixTemporaryDirectory, $creationMask) || die "Error: Unable to create directory: " - . "$temporaryDirectory\nError: $!\n\n" + . "$fixTemporaryDirectory\nError: $!\n\n" . "Exiting...\n"; return; } @@@@ -368,21 +372,21 @@@@ sub checkTemporaryDirectory { # a directory since it's declared by default ending with a slash /. # But! In case someone will change this script (namely the # temporaryDirectory variable), it won't hurt having this check. - if (-f $temporaryDirectory) { - die "$temporaryDirectory is a file, not a directory. You can\n" - . "either change the location of the \$temporaryDirectory\n" + if (-f $fixTemporaryDirectory) { + die "$fixTemporaryDirectory is a file, not a directory. You can\n" + . "either change the location of the \$fixTemporaryDirectory\n" . "in the script, or you can remove this file and let this\n" . "script create a new directory.\n\n"; } - elsif (-l $temporaryDirectory) { + elsif (-l $fixTemporaryDirectory) { die "Error: There exists a symbolic link with the same name as the\n" - . "temporary directory you've declared: $temporaryDirectory \n" + . "temporary directory you've declared: $fixTemporaryDirectory \n" . "Please remove this link and re-run the script.\n" . "Exiting...\n"; } - elsif (!-o $temporaryDirectory) { + elsif (!-o $fixTemporaryDirectory) { die "Error: You are not the owner of the temporary directory\n" - . "which this script is using: $temporaryDirectory.\n" + . "which this script is using: $fixTemporaryDirectory.\n" . "Please change the file permissions and try again\n" . "Exiting...\n"; } @ 1.5 log @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' @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.4 2005/11/21 02:06:50 ben Exp $ @ 1.4 log @Update fprot-workstation-bin to version 4.6.2. Changes include: o A small bug was fixed in the check-updates.pl program where the updater wouldn't find the DEF files to update. o Bug in CHM mini-scanner which could lead to crashes was fixed o f-prot-milter wouldn't run on Solaris 10 because of library issues o Fixes an issue where the scanner would sometimes mis-identify .alr files as base64 coded executables o Fix where '-list' option to f-prot would not list the filenames of text-based archives, such as MIME containers. o Fix where certain executables would be mis-identified as UPX packed o Fix where UTF8 coded text files would not be scanned o Fix a crash issue when scanning .chm files containing strange header values o Updated error message when access is denied to files due to user permission problems o F-Prot 4.6.0 contains scanning engine version 3.16.7 which improves detection capabilities significantly and improves several scanning methods along with bugfixes. @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- tools/check-updates.pl.orig 2005-10-19 08:40:56.000000000 -0700 d5 3 a7 3 @@@@ -149,6 +149,8 @@@@ my $signatureDirectory = findDEFDirector sub findDEFDirectory { my $dir; d14 1 a14 1 @@@@ -344,12 +346,14 @@@@ sub printHelp { d32 1 a32 1 @@@@ -359,21 +363,21 @@@@ sub checkTemporaryDirectory { @ 1.4.2.1 log @Pullup ticket 1067 - requested by Ben Collver fprot-workstation-bin update Revisions pulled up: - pkgsrc/security/fprot-workstation-bin/Makefile 1.25 - pkgsrc/security/fprot-workstation-bin/distinfo 1.17-1.20 - pkgsrc/security/fprot-workstation-bin/patches/patch-aa 1.5 Module Name: pkgsrc Committed By: ben Date: Thu Jan 26 04:48:26 UTC 2006 Modified Files: pkgsrc/security/fprot-workstation-bin: Makefile distinfo pkgsrc/security/fprot-workstation-bin/patches: patch-aa Log Message: 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' --- Module Name: pkgsrc Committed By: ben Date: Thu Jan 26 14:32:33 UTC 2006 Modified Files: pkgsrc/security/fprot-workstation-bin: distinfo Log Message: Fix typo in distinfo. This addresses PR#32639 and is related to PR#32620. --- Module Name: pkgsrc Committed By: ben Date: Sat Jan 28 00:19:56 UTC 2006 Modified Files: pkgsrc/security/fprot-workstation-bin: distinfo Log Message: Correct typo in distinfo. --- Module Name: pkgsrc Committed By: ben Date: Sat Jan 28 15:15:39 UTC 2006 Modified Files: pkgsrc/security/fprot-workstation-bin: distinfo Log Message: Fix another typo. Will avoid this problem in the future with pkglint. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.5 2006/01/26 04:48:26 ben Exp $ d3 1 a3 1 --- tools/check-updates.pl.orig 2006-01-05 11:55:12.000000000 +0000 d5 3 a7 3 @@@@ -158,6 +158,8 @@@@ sub findDEFDirectory { return $dir; } d14 1 a14 1 @@@@ -353,12 +355,14 @@@@ sub printHelp { d32 1 a32 1 @@@@ -368,21 +372,21 @@@@ sub checkTemporaryDirectory { @ 1.3 log @Update fprot-workstation-bin to version 4.5.4. This addresses PR#29747. Version 4.5.4 is a bugfix release. Fixed a string error in the updater. Fixed a race condition in f-protd where f-protd would report 'Bad file number' on accept() under high loads. Fixed a crash issue with malformed word macros. Fixed a memory corruption in the x86 emulation code. Modified check-updates.pl to automatically detect f-prot version number. @ text @d3 1 a3 1 --- tools/check-updates.pl.orig 2005-02-09 17:15:33.000000000 -0800 d5 3 a7 7 @@@@ -247,7 +247,7 @@@@ sub constructHeaders # We assume the default directory structure, therefore this script # resides one directory (tools) below the f-prot program # giving this path: /path/to/this_script/../f-prot - my $output = `$dir../f-prot -verno` || warn "Error occured: Can't find f-prot command!"; + my $output = `$dir../bin/f-prot -verno` || warn "Error occured: Can't find f-prot command!"; my ($version) = $output =~ /Program version: (.+)/; d9 7 a15 2 $version ||= "4.x"; # Default value if something fails due to improper setup @@@@ -305,10 +305,13 @@@@ sub printHelp d17 44 a60 13 sub checkTemporaryDirectory { + my $fix_temporaryDirectory = $temporaryDirectory; + $fix_temporaryDirectory =~ s/\/$//; + # If your temporary directory does not exist, you must create it. if (! -e $temporaryDirectory) { - mkdir($temporaryDirectory, $creationMask) || + mkdir($fix_temporaryDirectory, $creationMask) || die "Error: Unable to create directory: $temporaryDirectory\nError: $!\n\n" . "Exiting...\n"; return; @ 1.2 log @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) @ text @d3 1 a3 1 --- tools/check-updates.pl.orig 2005-01-05 23:20:13.000000000 -0800 d5 10 a14 1 @@@@ -294,10 +294,13 @@@@ sub printHelp @ 1.1 log @General package cleanup. Points of interest: * change ${PREFIX}/lib to ${PREFIX}/libexec (like uvscan) * change ${PREFIX}/share/doc/html to ${PREFIX}/share/doc * change ${SED} to SUBST framework * add DIST_SUBDIR because distfile changed without name change * add SUPPORT_FILES from PKGINSTALL framework * add patch-aa to deal with NetBSD mkdir() behavior, specifically the new directory argument may not have a trailing backslash. @ text @d3 1 a3 1 --- tools/check-updates.pl.orig Tue May 11 01:55:38 2004 d5 1 a5 1 @@@@ -258,10 +258,13 @@@@ sub printHelp @