aboutsummaryrefslogtreecommitdiff
path: root/security/drweb
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2002-05-17 09:14:22 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2002-05-17 09:14:22 +0000
commit0aceea3ab2fa27901f2c084d869eef5f1533e445 (patch)
tree51201313dddb0de810806889bd60476a5faf90cb /security/drweb
parentbc787cda4945427f9d936111438f49f5059e19e8 (diff)
downloadports-0aceea3ab2fa27901f2c084d869eef5f1533e445.tar.gz
ports-0aceea3ab2fa27901f2c084d869eef5f1533e445.zip
Notes
Diffstat (limited to 'security/drweb')
-rw-r--r--security/drweb/Makefile3
-rw-r--r--security/drweb/distinfo2
-rw-r--r--security/drweb/files/patch-aa16
-rw-r--r--security/drweb/files/patch-ab55
-rw-r--r--security/drweb/pkg-install2
5 files changed, 57 insertions, 21 deletions
diff --git a/security/drweb/Makefile b/security/drweb/Makefile
index 0649bb798707..614499e34334 100644
--- a/security/drweb/Makefile
+++ b/security/drweb/Makefile
@@ -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
diff --git a/security/drweb/distinfo b/security/drweb/distinfo
index 5bb6ffef1de2..1f7d499ae807 100644
--- a/security/drweb/distinfo
+++ b/security/drweb/distinfo
@@ -1 +1 @@
-MD5 (drweb-4.28-freebsd4.tgz) = 9505772e54612597cb1903fe54398d8e
+MD5 (drweb-4.28.1-freebsd4.tgz) = fb43d9351a82162694c173b8b5c194c6
diff --git a/security/drweb/files/patch-aa b/security/drweb/files/patch-aa
index c40169b94b75..5df461be2057 100644
--- a/security/drweb/files/patch-aa
+++ b/security/drweb/files/patch-aa
@@ -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
diff --git a/security/drweb/files/patch-ab b/security/drweb/files/patch-ab
index 9112cf5a1396..ed61de1d3351 100644
--- a/security/drweb/files/patch-ab
+++ b/security/drweb/files/patch-ab
@@ -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;
+ }
+ }
+ }
diff --git a/security/drweb/pkg-install b/security/drweb/pkg-install
index 7a6bf9888aba..4a4f111b698a 100644
--- a/security/drweb/pkg-install
+++ b/security/drweb/pkg-install
@@ -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