Upgrade to 4.28.1

This commit is contained in:
Andrey A. Chernov 2002-05-17 09:14:22 +00:00
parent bc787cda49
commit 0aceea3ab2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=59305
5 changed files with 57 additions and 21 deletions

View file

@ -6,8 +6,7 @@
#
PORTNAME= drweb
PORTVERSION= 4.28
PORTREVISION= 1
PORTVERSION= 4.28.1
CATEGORIES= security
MASTER_SITES= http://drweb.spb.ru/download/unix/
DISTFILES= ${MAIN_NAME}.tgz

View file

@ -1 +1 @@
MD5 (drweb-4.28-freebsd4.tgz) = 9505772e54612597cb1903fe54398d8e
MD5 (drweb-4.28.1-freebsd4.tgz) = fb43d9351a82162694c173b8b5c194c6

View file

@ -1,13 +1,13 @@
--- etc/drweb/drweb32.ini.orig Sat May 11 16:44:26 2002
+++ etc/drweb/drweb32.ini Mon May 13 18:46:14 2002
--- etc/drweb/drweb32.ini.orig Wed May 15 04:09:24 2002
+++ etc/drweb/drweb32.ini Fri May 17 12:34:29 2002
@@ -1,11 +1,11 @@
[BSD]
-EnginePath = "/opt/drweb/lib/drweb32.dll"
-VirusBase = "/var/drweb/bases/*.vdb"
-VirusBase = "/var/drweb/bases/*.vdb", "/var/drweb/bases/*.VDB"
-MoveFilesTo = "/var/drweb/infected"
-;LngFileName = "/opt/drweb/lib/russian.dwl"
+EnginePath = "%INSTALL%/lib/drweb32.dll"
+VirusBase = "%INSTALL%/bases/*.vdb"
+VirusBase = "%INSTALL%/bases/*.vdb", "%INSTALL%/bases/*.VDB"
+MoveFilesTo = "%INSTALL%/infected"
+;LngFileName = "%INSTALL%/lib/russian.dwl"
@ -32,15 +32,15 @@
[BSD:Daemon]
-EnginePath = "/opt/drweb/lib/drweb32.dll"
-VirusBase = "/var/drweb/bases/*.vdb"
-VirusBase = "/var/drweb/bases/*.vdb", "/var/drweb/bases/*.VDB"
-MoveFilesTo = "/var/drweb/infected"
-;LngFileName = "/opt/drweb/lib/russian.dwl"
+EnginePath = "%INSTALL%/lib/drweb32.dll"
+VirusBase = "%INSTALL%/bases/*.vdb"
+VirusBase = "%INSTALL%/bases/*.vdb", "%INSTALL%/bases/*.VDB"
+MoveFilesTo = "%INSTALL%/infected"
+;LngFileName = "%INSTALL%/lib/russian.dwl"
-Key = "/opt/drweb/drwebd.key"
-Key = "/opt/drweb/drweb.key"
+Key = "%INSTALL%/drwebd.key"
LogTime = Yes
LogFileName = "syslog"
@ -61,7 +61,7 @@
SocketReuseAddr = Yes
-FileTimeout = 5
-OutputMode = Terminal
+FileTimeout = 10
+FileTimeout = 20
+OutputMode = Quiet
LimitLog = No
-MaxLogSize = 512

View file

@ -1,6 +1,6 @@
--- opt/drweb/update/update.pl.bak Wed May 8 07:56:59 2002
+++ opt/drweb/update/update.pl Fri May 10 08:54:26 2002
@@ -33,10 +33,10 @@
--- opt/drweb/update/update.pl.orig Wed May 15 03:58:22 2002
+++ opt/drweb/update/update.pl Fri May 17 13:07:42 2002
@@ -35,10 +35,10 @@
my $ini = $ARGV[0];
if( $ini eq '' )
{
@ -8,17 +8,54 @@
+ $ini = "%INSTALL%/drweb32.ini";
}
-my $fetch = "wget -q -O";
-my $fetch = "fetch -aq -o";
+my $fetch = "fetch -q -o";
#my $fetch = "wget -q -O";
$fetch = "wget -q -O" if( $^O =~ /Linux/i );
my $engine = '';
my $bases = '';
@@ -48,7 +48,7 @@
die "Bases path is not defined (not in section?)" unless $bases;
die "Update path is not defined (not in section?)" unless $update;
@@ -52,7 +52,7 @@
die "Bases path is not defined!" unless $bases;
die "Update path is not defined!" unless $update;
- $pidFile = "/var/drweb/run/drwebd.pid" if( $pidFile eq '' );
+ $pidFile = "%INSTALL%/run/drwebd.pid" if( $pidFile eq '' );
my $version = readVersion( $engine );
die "Engine version error (invalid engine?)" unless $version;
@@ -179,7 +179,7 @@
{
$engine = $v;
$engine =~ s/^[\"\t =]*//g;
- $engine =~ s/[\" \t]$*//g;
+ $engine =~ s/[\" \t]*$//g;
}
}
elsif( /^PidFile/ )
@@ -189,7 +189,7 @@
{
$pidFile= $v;
$pidFile =~ s/^[\"\t =]*//g;
- $pidFile =~ s/[\" \t]$*//g;
+ $pidFile =~ s/[\" \t]*$//g;
}
}
elsif( /^VirusBase/ && $bases eq '' ) # first base path only
@@ -200,7 +200,8 @@
$bases = $v;
$bases =~ s/^[\"\t =]*//g;
- $bases =~ s/[\" \t]$*//g;
+ $bases =~ s/,.*$//;
+ $bases =~ s/[\" \t]*$//g;
$bases =~ s/\/[\d\w\*\?\.]*$//;
}
}
@@ -211,7 +212,7 @@
{
$update = $v;
$update =~ s/^[\"\t =]*//g;
- $update =~ s/[\" \t]$*//g;
+ $update =~ s/[\" \t]*$//g;
}
}
}

View file

@ -49,5 +49,5 @@ fi
[ "$ex" = "1" ] && exit 1
install -dv -m 0755 -o ${USER} -g ${BINGRP} ${PKG_PREFIX}/drweb/run
install -dv -m 0700 -o ${USER} -g ${BINGRP} ${PKG_PREFIX}/drweb/infected
install -dv -m 0700 -o ${BINOWN} -g ${BINGRP} ${PKG_PREFIX}/drweb/updates
install -dv -m 0755 -o ${BINOWN} -g ${BINGRP} ${PKG_PREFIX}/drweb/updates
exit 0