summaryrefslogtreecommitdiff
path: root/chat/vicq
diff options
context:
space:
mode:
authorjdolecek <jdolecek@pkgsrc.org>2002-05-07 14:11:59 +0000
committerjdolecek <jdolecek@pkgsrc.org>2002-05-07 14:11:59 +0000
commit7824f3735913dfc856c120f9babf70eb86841c7b (patch)
tree519c79afe7470ec40b455e4b02e1122a209bc69d /chat/vicq
parent01b56ecbeb41e8384f6cd3fe376b6d3434c65e5f (diff)
downloadpkgsrc-7824f3735913dfc856c120f9babf70eb86841c7b.tar.gz
use log_path without trailing /, so that mkdir(2) succeeds when
vicq is creating the directory
Diffstat (limited to 'chat/vicq')
-rw-r--r--chat/vicq/distinfo3
-rw-r--r--chat/vicq/patches/patch-ab31
2 files changed, 33 insertions, 1 deletions
diff --git a/chat/vicq/distinfo b/chat/vicq/distinfo
index 5257dada4f5..89d538fa4ec 100644
--- a/chat/vicq/distinfo
+++ b/chat/vicq/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2002/05/07 13:43:40 jdolecek Exp $
+$NetBSD: distinfo,v 1.4 2002/05/07 14:11:59 jdolecek Exp $
SHA1 (vicq-0.4.tar.bz2) = 49491c453b8e56ea0e1a424510af481fc2b22bcc
Size (vicq-0.4.tar.bz2) = 54103 bytes
SHA1 (patch-aa) = e7896096e45fe7cbea7ce6d7b3af976691910686
+SHA1 (patch-ab) = af3c3a53b9b965dba0f7753a935ec820d76990e3
diff --git a/chat/vicq/patches/patch-ab b/chat/vicq/patches/patch-ab
new file mode 100644
index 00000000000..5ea19636a55
--- /dev/null
+++ b/chat/vicq/patches/patch-ab
@@ -0,0 +1,31 @@
+$NetBSD: patch-ab,v 1.1 2002/05/07 14:11:59 jdolecek Exp $
+
+--- vicq.orig Tue May 7 15:59:52 2002
++++ vicq Tue May 7 16:01:36 2002
+@@ -2011,7 +2011,7 @@
+ $config{log_path} = expand_file($config{log_path});
+ $config{log_path}.='/' unless $config{log_path}=~/\/$/;
+ }else{
+- $config{log_path}="$ENV{HOME}/.vicq/history/";
++ $config{log_path}="$ENV{HOME}/.vicq/history";
+ }
+ unless( -e $config{log_path} || $config{log_path} eq $ENV{HOME})
+ {
+@@ -2495,7 +2495,7 @@
+ $uin =~ s/\033\[.m//g;
+
+ my $fname=($config{log_type}=~/a/)?'vicq.log':"$uin.log";
+- open LOG,">> $config{log_path}$fname" or warn "Can't open file $config{log_path}$fname";
++ open LOG,">> $config{log_path}/$fname" or warn "Can't open file $config{log_path}/$fname";
+ print LOG "--[$format $now_string\n";
+ print LOG $message;
+ print LOG "\n" if $config{log_type}=~/n/;
+@@ -2836,7 +2836,7 @@
+ my $pager = $ENV{'PAGER'} || 'less -R';
+ my $home = $ENV{HOME};
+ my $fname=($config{log_type}=~/a/)?'vicq.log':"$uin.log";
+- if(!(open LOG,"< $config{log_path}$fname"))
++ if(!(open LOG,"< $config{log_path}/$fname"))
+ {
+ print "No history file for $uin\n";
+ return;