aboutsummaryrefslogtreecommitdiffstats
path: root/net-im
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-08-27 10:45:15 +0800
committerobrien <obrien@FreeBSD.org>2000-08-27 10:45:15 +0800
commitc1c7b5494710403e71a6acb3dc9629fd1e2a3eb0 (patch)
treecb51532ab6f2b32e6702e60f4dee322ef72ad6e9 /net-im
parent2db18664145c489eb214cd76e6b260f9aca020da (diff)
downloadfreebsd-ports-gnome-c1c7b5494710403e71a6acb3dc9629fd1e2a3eb0.tar.gz
freebsd-ports-gnome-c1c7b5494710403e71a6acb3dc9629fd1e2a3eb0.tar.zst
freebsd-ports-gnome-c1c7b5494710403e71a6acb3dc9629fd1e2a3eb0.zip
Add the ability to prefix each line with a timestamp.
Obtained from: NetBSD
Diffstat (limited to 'net-im')
-rw-r--r--net-im/icb/files/patch-ac9
-rw-r--r--net-im/icb/files/patch-globals.c13
-rw-r--r--net-im/icb/files/patch-helpdata.c17
-rw-r--r--net-im/icb/files/patch-icb.h13
-rw-r--r--net-im/icb/files/patch-oset.c13
-rw-r--r--net-im/icb/files/patch-print.c44
-rw-r--r--net-im/icb/files/patch-sample.icbrc12
7 files changed, 117 insertions, 4 deletions
diff --git a/net-im/icb/files/patch-ac b/net-im/icb/files/patch-ac
index 65e5dadb70ad..e58c70c4903d 100644
--- a/net-im/icb/files/patch-ac
+++ b/net-im/icb/files/patch-ac
@@ -1,5 +1,5 @@
--- icb/c_log.c.orig Fri Feb 24 13:20:18 1995
-+++ icb/c_log.c Sat Aug 26 19:15:52 2000
++++ icb/c_log.c Sat Aug 26 19:18:36 2000
@@ -6,6 +6,7 @@
#include "icb.h"
#include "externs.h"
@@ -19,17 +19,18 @@
/* determine pathname to use */
if (path == NULL || *path == '\0')
-@@ -98,7 +101,8 @@
+@@ -97,8 +100,8 @@
+ aptr++;
/* timestamp it */
- sprintf(mbuf, "Session log \"%s\" started at %d/%02d/%-2d %s.",
+- sprintf(mbuf, "Session log \"%s\" started at %d/%02d/%-2d %s.",
- path, t->tm_mon+1, t->tm_mday, t->tm_year, aptr);
+ sprintf(mbuf, "Session log \"%s\" started at %d/%02d/%-4d %s.",
+ path, t->tm_mon+1, t->tm_mday, 1900+t->tm_year, aptr);
putl(mbuf, PL_SCR | PL_LOG);
return(0);
-@@ -126,8 +130,8 @@
+@@ -126,8 +129,8 @@
aptr++;
/* timestamp it */
diff --git a/net-im/icb/files/patch-globals.c b/net-im/icb/files/patch-globals.c
new file mode 100644
index 000000000000..134712089906
--- /dev/null
+++ b/net-im/icb/files/patch-globals.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.3 1999/11/26 22:12:37 hubertf Exp $
+
+diff -x *.orig -urN ./icb/globals.c /usr/pkgsrc/net/icb/work.i386.unpatched/icb-5.0.9/icb/globals.c
+--- ./icb/globals.c Fri Feb 24 22:20:22 1995
++++ /usr/pkgsrc/net/icb/work.i386.unpatched/icb-5.0.9/icb/globals.c Fri Nov 26 22:56:30 1999
+@@ -59,6 +59,7 @@
+ 1, /* beeps */
+ "vi", /* editmode */
+ 0, /* tabreply */
++ 0, /* printtime */
+ 1, /* cute */
+ 0, /* autodel */
+ "", /* personalto */
diff --git a/net-im/icb/files/patch-helpdata.c b/net-im/icb/files/patch-helpdata.c
new file mode 100644
index 000000000000..b897555d26a4
--- /dev/null
+++ b/net-im/icb/files/patch-helpdata.c
@@ -0,0 +1,17 @@
+$NetBSD: patch-ad,v 1.4 1999/11/26 22:12:37 hubertf Exp $
+
+diff -x *.orig -urN ./icb/helpdata.c /usr/pkgsrc/net/icb/work.i386.unpatched/icb-5.0.9/icb/helpdata.c
+--- ./icb/helpdata.c Fri Feb 24 22:20:23 1995
++++ /usr/pkgsrc/net/icb/work.i386.unpatched/icb-5.0.9/icb/helpdata.c Fri Nov 26 22:56:30 1999
+@@ -600,6 +600,11 @@
+ " waiting for your screen, this gives you a chance to see the output",
+ " of your command.",
+ "",
++"printtime (boolean) default: false",
++"",
++" Print the current time in front of every line sent to the display",
++" and log file.",
++"",
+ "restricted (boolean) default: false",
+ "",
+ " Restricted shuts off the ability to run subshell commands or to",
diff --git a/net-im/icb/files/patch-icb.h b/net-im/icb/files/patch-icb.h
new file mode 100644
index 000000000000..4a0d1ef5c674
--- /dev/null
+++ b/net-im/icb/files/patch-icb.h
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.3 1999/11/26 22:12:37 hubertf Exp $
+
+diff -x *.orig -urN ./icb/icb.h /usr/pkgsrc/net/icb/work.i386.unpatched/icb-5.0.9/icb/icb.h
+--- ./icb/icb.h Fri Feb 24 22:20:23 1995
++++ /usr/pkgsrc/net/icb/work.i386.unpatched/icb-5.0.9/icb/icb.h Fri Nov 26 22:56:30 1999
+@@ -38,6 +38,7 @@
+ int beeps; /* whether beeps are audible */
+ char *editmode; /* input editing mode */
+ int tabreply; /* should replies go into the tab history? */
++ int printtime; /* print timestamp in front of every msg? */
+ int cute; /* cute messages when a blank line is entered */
+ int autodel; /* automatically delete nicks from the tab
+ history that produce a "not logged on" error */
diff --git a/net-im/icb/files/patch-oset.c b/net-im/icb/files/patch-oset.c
new file mode 100644
index 000000000000..ceba9beaa9f9
--- /dev/null
+++ b/net-im/icb/files/patch-oset.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.2 1999/11/26 22:12:37 hubertf Exp $
+
+diff -x *.orig -urN ./icb/oset.c /usr/pkgsrc/net/icb/work.i386.unpatched/icb-5.0.9/icb/oset.c
+--- ./icb/oset.c Fri Feb 24 22:20:24 1995
++++ /usr/pkgsrc/net/icb/work.i386.unpatched/icb-5.0.9/icb/oset.c Fri Nov 26 22:56:31 1999
+@@ -39,6 +39,7 @@
+ { "pagesize", V_INT, (char *)&gv.pagesize },
+ { "pauseonshell", V_BOOLEAN, (char *)&gv.pauseonshell },
+ { "personalto", V_STRING, (char *)&gv.personalto },
++ { "printtime", V_BOOLEAN, (char *)&gv.printtime },
+ { "restricted", V_BOOLEAN, (char *)&gv.restricted },
+ { "tabreply", V_BOOLEAN, (char *)&gv.tabreply },
+ { "timedisplay", V_STRING, (char *)&gv.timedisplay },
diff --git a/net-im/icb/files/patch-print.c b/net-im/icb/files/patch-print.c
new file mode 100644
index 000000000000..9647ec63f682
--- /dev/null
+++ b/net-im/icb/files/patch-print.c
@@ -0,0 +1,44 @@
+$NetBSD: patch-ag,v 1.3 1999/11/26 23:18:47 hubertf Exp $
+
+--- icb/print.c.orig Fri Feb 24 22:20:25 1995
++++ icb/print.c Sat Nov 27 00:01:04 1999
+@@ -5,6 +5,7 @@
+
+ #include "icb.h"
+ #include "externs.h"
++#include <time.h>
+
+ extern FILE *logfp;
+
+@@ -17,12 +18,22 @@
+ char printbuf[1024];
+ char *p = printbuf;
+ char *t = s;
++ struct tm *tm, *localtime();
++ char timestamp[9];
+
+ if (continued) {
+ linenumber = 0;
+ continued = 0;
+ }
+
++ /* If requested, prepare timestamp */
++ if (gv.printtime) {
++ gettime();
++ tm = localtime(&curtime);
++ snprintf(timestamp, sizeof(timestamp), "[%02d:%02d] ",
++ tm->tm_hour, tm->tm_min);
++ }
++
+ if (flags & PL_SCR) {
+ /* if paging in effect, do paging */
+ if (gv.pagesize && (++linenumber >= gv.pagesize)) {
+@@ -35,6 +46,8 @@
+ *p++ = *t++;
+ *p++ = '\r';
+ *p++ = '\n';
++ if (gv.printtime)
++ write(1, timestamp, 8);
+ write(1, printbuf, p - printbuf);
+ }
+
diff --git a/net-im/icb/files/patch-sample.icbrc b/net-im/icb/files/patch-sample.icbrc
new file mode 100644
index 000000000000..418a1802b299
--- /dev/null
+++ b/net-im/icb/files/patch-sample.icbrc
@@ -0,0 +1,12 @@
+$NetBSD: patch-ar,v 1.2 1999/11/29 05:19:26 soren Exp $
+
+--- sample.icbrc.orig Fri Nov 26 23:44:37 1999
++++ sample.icbrc Fri Nov 26 23:45:00 1999
+@@ -15,6 +15,7 @@
+ oset autodel false # set to "true" to have nicks that generate an "error -
+ # so-and-so not signed on" removed from tab history
+ #echoback on # uncomment to see your own public messages
++#oset printtime true # print time in front of each message
+
+ #==============================================================================#
+ # procedures