aboutsummaryrefslogtreecommitdiff
path: root/irc
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2012-12-03 10:44:14 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2012-12-03 10:44:14 +0000
commit756156fec84d7709ca7c3a5a7014927e04da46dd (patch)
treeb97a269eb260e682a6b1faaf60f9bf1c6e4f1d32 /irc
parent9c38493c43d93be455791fe4ee56443c77055175 (diff)
downloadports-756156fec84d7709ca7c3a5a7014927e04da46dd.tar.gz
ports-756156fec84d7709ca7c3a5a7014927e04da46dd.zip
Notes
Diffstat (limited to 'irc')
-rw-r--r--irc/irssistats/Makefile6
-rw-r--r--irc/irssistats/files/patch-irssistats.c32
2 files changed, 33 insertions, 5 deletions
diff --git a/irc/irssistats/Makefile b/irc/irssistats/Makefile
index 5eb384f3ab6d..2a79f393dfb2 100644
--- a/irc/irssistats/Makefile
+++ b/irc/irssistats/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: irssistats
-# Date created: 14 Feb 2004
-# Whom: Travis Poppe <tlp@liquidx.org>
-#
+# Created by: Travis Poppe <tlp@liquidx.org>
# $FreeBSD$
-#
PORTNAME= irssistats
PORTVERSION= 0.75
diff --git a/irc/irssistats/files/patch-irssistats.c b/irc/irssistats/files/patch-irssistats.c
new file mode 100644
index 000000000000..70fe2f998d65
--- /dev/null
+++ b/irc/irssistats/files/patch-irssistats.c
@@ -0,0 +1,32 @@
+--- irssistats.c.orig 2007-11-10 19:40:55.000000000 +0100
++++ irssistats.c 2012-12-03 11:42:45.000000000 +0100
+@@ -1561,19 +1561,19 @@
+ fclose(fic);
+ }
+
+-void parse_config(char *configfile)
++void expand(char *path)
+ {
+- void expand(char *path)
++ char temp[MAXLINELENGTH];
++ if (*path=='~')
+ {
+- char temp[MAXLINELENGTH];
+- if (*path=='~')
+- {
+- snprintf(temp,MAXLINELENGTH-1,"%s%s",getenv("HOME"),path+1);
+- temp[MAXLINELENGTH-1]='\0';
+- strcpy(path,temp);
+- }
++ snprintf(temp,MAXLINELENGTH-1,"%s%s",getenv("HOME"),path+1);
++ temp[MAXLINELENGTH-1]='\0';
++ strcpy(path,temp);
+ }
+-
++}
++
++void parse_config(char *configfile)
++{
+ FILE *fic;
+ char line[MAXLINELENGTH];
+ char keyword[MAXLINELENGTH];