aboutsummaryrefslogtreecommitdiffstats
path: root/irc/xchat
diff options
context:
space:
mode:
authormezz <mezz@FreeBSD.org>2007-07-11 23:20:27 +0800
committermezz <mezz@FreeBSD.org>2007-07-11 23:20:27 +0800
commitb5980939e193074c91412b9a5294fb621f1ac84f (patch)
tree3ea63b404c9f98f8873ea7a53878c47d08750d8f /irc/xchat
parentea4065d088480e2d621f7e4fc0d6e65411727e37 (diff)
downloadfreebsd-ports-gnome-b5980939e193074c91412b9a5294fb621f1ac84f.tar.gz
freebsd-ports-gnome-b5980939e193074c91412b9a5294fb621f1ac84f.tar.zst
freebsd-ports-gnome-b5980939e193074c91412b9a5294fb621f1ac84f.zip
Fix creation of ~/.xchat2/scrollback/ paths, bump the PORTREVISION.
Obtained from: http://xchat.org/files/source/2.8/patches/
Diffstat (limited to 'irc/xchat')
-rw-r--r--irc/xchat/Makefile1
-rw-r--r--irc/xchat/files/patch-xc284-scrollbmkdir33
2 files changed, 34 insertions, 0 deletions
diff --git a/irc/xchat/Makefile b/irc/xchat/Makefile
index 5a6d3614a9dc..64372f5f0cc1 100644
--- a/irc/xchat/Makefile
+++ b/irc/xchat/Makefile
@@ -8,6 +8,7 @@
PORTNAME= xchat
PORTVERSION= 2.8.4
+PORTREVISION= 1
CATEGORIES= irc gnome ipv6
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://xchat.org/files/source/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}/
diff --git a/irc/xchat/files/patch-xc284-scrollbmkdir b/irc/xchat/files/patch-xc284-scrollbmkdir
new file mode 100644
index 000000000000..2ac328497a8b
--- /dev/null
+++ b/irc/xchat/files/patch-xc284-scrollbmkdir
@@ -0,0 +1,33 @@
+#
+# Fix creation of ~/.xchat2/scrollback/ paths.
+#
+--- src/common/text.c 15 Jun 2007 03:53:42 -0000 1.89
++++ src/common/text.c 8 Jul 2007 08:59:02 -0000
+@@ -49,20 +49,25 @@
+
+
+ static void mkdir_p (char *dir);
++static char *log_create_filename (char *channame);
+
+
+ static char *
+ scrollback_get_filename (session *sess, char *buf, int max)
+ {
+- char *net;
++ char *net, *chan;
+
+ net = server_get_network (sess->server, FALSE);
+ if (!net)
+ return NULL;
+
+- snprintf (buf, max, "%s/scrollback/%s/%s.txt", get_xdir_fs (), net, sess->channel);
++ snprintf (buf, max, "%s/scrollback/%s/%s.txt", get_xdir_fs (), net, "");
+ mkdir_p (buf);
+
++ chan = log_create_filename (sess->channel);
++ snprintf (buf, max, "%s/scrollback/%s/%s.txt", get_xdir_fs (), net, chan);
++ free (chan);
++
+ return buf;
+ }
+