head	1.6;
access;
symbols
	RELEASE_6_0_0:1.5
	RELEASE_5_4_0:1.5
	RELEASE_4_11_0:1.5
	RELEASE_5_3_0:1.4
	RELEASE_4_10_0:1.4
	RELEASE_5_2_1:1.3
	RELEASE_5_2_0:1.3
	RELEASE_4_9_0:1.3
	RELEASE_5_1_0:1.3
	RELEASE_4_8_0:1.3
	RELEASE_5_0_0:1.3
	RELEASE_4_7_0:1.3
	RELEASE_4_6_2:1.3
	RELEASE_4_6_1:1.3
	RELEASE_4_6_0:1.3;
locks; strict;
comment	@# @;


1.6
date	2005.10.13.15.03.40;	author ehaupt;	state dead;
branches;
next	1.5;

1.5
date	2004.11.24.18.14.11;	author sem;	state Exp;
branches;
next	1.4;

1.4
date	2004.02.28.15.17.44;	author pav;	state Exp;
branches;
next	1.3;

1.3
date	2002.05.21.15.16.39;	author ache;	state Exp;
branches;
next	1.2;

1.2
date	2002.05.17.09.14.22;	author ache;	state Exp;
branches;
next	1.1;

1.1
date	2002.05.10.06.36.14;	author ache;	state Exp;
branches;
next	;


desc
@@


1.6
log
@- Update to 4.33
- Nuke files/*

PR:		87247
Submitted by:	Demin Alexander <support@@spectrum.ru> (maintainer)
Approved by:	novel (mentor)
@
text
@--- usr/local/drweb/update/update.pl.orig	Wed Nov 24 13:39:08 2004
+++ usr/local/drweb/update/update.pl	Wed Nov 24 13:39:36 2004
@@@@ -20,7 +20,7 @@@@
 my $ini = $ARGV[0];
 if( $ini eq '' )
 {
-  $ini = '/usr/local/etc/drweb/drweb32.ini';  
+  $ini = '%INSTALL%/drweb32.ini';  
 }
 
 my $wget = `which wget 2>&1`;
@@@@ -47,7 +47,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 ( $kmd5, $knum ) = parseKey($keyFile);
 $wget = $wget.' -q --header="X-DrWeb-Validate: '.$kmd5.'" --header="X-DrWeb-KeyNumber: '.$knum.'" -O';
@


1.5
log
@- Update to 4.32.2
- Pass maintainer to submitter

PR:		ports/72510
Submitted by:	maintainer
@
text
@@


1.4
log
@- Update to 4.30, now with native FreeBSD 5.x binary

PR:		ports/58998
Submitted by:	Xin LI <delphij at frontfree dot net>
Approved by:	maintainer timeout (3 months)
@
text
@d1 3
a3 3
--- usr/local/drweb/update/update.pl.orig	Sat Nov  1 07:59:33 2003
+++ usr/local/drweb/update/update.pl	Sat Nov  1 08:00:54 2003
@@@@ -41,7 +41,7 @@@@
d7 2
a8 3
-  $ini = '/usr/local/etc/drweb/drweb32.ini' if $^O =~ /BSD/i;  
+  $ini = '%INSTALL%/drweb32.ini' if $^O =~ /BSD/i;  
   $ini = '/etc/drweb/drweb32.ini' if $ini eq '';    
d11 4
a14 6
@@@@ -79,7 +79,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%/drwebd.pid" if( $pidFile eq '' );
d16 5
a20 2
 my $version = readVersion( $engine ); 
    die "Engine version error (invalid engine?)" unless $version;
@


1.3
log
@Distfile re-rolled on official site
@
text
@d1 3
a3 3
--- opt/drweb/update/update.pl.orig	Sat May 18 04:56:03 2002
+++ opt/drweb/update/update.pl	Tue May 21 19:03:37 2002
@@@@ -35,7 +35,7 @@@@
d7 3
a9 2
-  $ini = "/etc/drweb/drweb32.ini";
+  $ini = "%INSTALL%/drweb32.ini";
d12 1
a12 2
 my $fetch = "fetch -q -o";
@@@@ -52,7 +52,7 @@@@
d17 1
a17 1
+   $pidFile = "%INSTALL%/run/drwebd.pid" if( $pidFile eq '' );
@


1.2
log
@Upgrade to 4.28.1
@
text
@d1 3
a3 3
--- 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 @@@@
d11 1
a11 5
-my $fetch = "fetch -aq -o";
+my $fetch = "fetch -q -o";
 #my $fetch = "wget -q -O";
    $fetch = "wget -q -O" if( $^O =~ /Linux/i );   
 
a20 37
@@@@ -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;
       }
     }
   } 
@


1.1
log
@Upgrade to 4.28
@
text
@d1 3
a3 3
--- 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 @@@@
d11 1
a11 1
-my $fetch = "wget -q -O";
d13 2
d16 3
a18 5
 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;
d25 37
@

