freebsd-ports/security/drweb/files/patch-ab
Pav Lucistnik db2f594a33 - 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)
2004-02-28 15:17:44 +00:00

20 lines
729 B
Text

--- 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 @@
my $ini = $ARGV[0];
if( $ini eq '' )
{
- $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 '';
}
@@ -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 '' );
my $version = readVersion( $engine );
die "Engine version error (invalid engine?)" unless $version;