summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD33
-rw-r--r--tf-50b7.alert.patch26
-rw-r--r--tf-50b7.build.patch21
-rw-r--r--tf-50b7.log_prefix.patch58
5 files changed, 163 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e2dfc12f441
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = tinyfugue-patched
+ pkgdesc = The best MUD client. Patched with log prefix and a more useful alert stream.
+ pkgver = 5.0b8
+ pkgrel = 1
+ url = http://tinyfugue.sourceforge.net/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = pcre
+ depends = zlib
+ depends = ncurses
+ depends = openssl
+ conflicts = tinyfugue
+ replaces = tinyfugue
+ source = http://downloads.sourceforge.net/sourceforge/tinyfugue/tf-50b8.tar.gz
+ source = tf-50b7.alert.patch
+ source = tf-50b7.build.patch
+ source = tf-50b7.log_prefix.patch
+ md5sums = 3e994e791966d274f63b0e61abf2ef59
+ md5sums = 395e6636969c518bafa0f86279a7e183
+ md5sums = ddb83f770b9fcbcd425143405abef327
+ md5sums = 3c67ccfc6267502682f12af4fc221d34
+
+pkgname = tinyfugue-patched
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2629ba156de
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Blake Smith <blakesmith0@gmail.com>
+# Old Maintainer: Nathan Jones <nathanj@insightbb.com>
+
+pkgname=tinyfugue-patched
+pkgver=5.0b8
+pkgrel=1
+pkgdesc="The best MUD client. Patched with log prefix and a more useful alert stream."
+url="http://tinyfugue.sourceforge.net/"
+depends=(pcre zlib ncurses openssl)
+license=("GPL")
+arch=('i686' 'x86_64')
+conflicts=('tinyfugue')
+replaces=('tinyfugue')
+
+source=("http://downloads.sourceforge.net/sourceforge/tinyfugue/tf-50b8.tar.gz"
+ "tf-50b7.alert.patch"
+ "tf-50b7.build.patch"
+ "tf-50b7.log_prefix.patch")
+
+build() {
+ cd $startdir/src/tf-50b8
+ patch -p1 -i "${srcdir}/tf-50b7.alert.patch"
+ patch -p1 -i "${srcdir}/tf-50b7.build.patch"
+ patch -p1 -i "${srcdir}/tf-50b7.log_prefix.patch"
+ mkdir $startdir/pkg/usr
+ ./configure --prefix=/usr --enable-termcap=ncurses
+ make || return 1
+ make prefix=$startdir/pkg/usr install || return 1
+}
+md5sums=('3e994e791966d274f63b0e61abf2ef59'
+ '395e6636969c518bafa0f86279a7e183'
+ 'ddb83f770b9fcbcd425143405abef327'
+ '3c67ccfc6267502682f12af4fc221d34')
diff --git a/tf-50b7.alert.patch b/tf-50b7.alert.patch
new file mode 100644
index 00000000000..69c94011a08
--- /dev/null
+++ b/tf-50b7.alert.patch
@@ -0,0 +1,26 @@
+--- tf-50b7/src/enumlist.h 2006-09-07 16:51:39.000000000 +0200
++++ tf-50b7-new/src/enumlist.h 2006-09-07 17:11:29.000000000 +0200
+@@ -71,6 +71,7 @@
+ bicode(STAT_LOGGING, STRING_LITERAL("log")),
+ bicode(STAT_MAIL, STRING_LITERAL("mail")),
+ bicode(STAT_CLOCK, STRING_LITERAL("clock")),
++bicode(STAT_ALERT, STRING_LITERAL("alert")),
+ bicode(STAT_COUNT, STRING_NULL),
+ bicode(STAT_NONE = -1, STRING_NULL)
+ }
+--- tf-50b7/src/output.c 2005-04-18 05:15:36.000000000 +0200
++++ tf-50b7-new/src/output.c 2006-10-07 21:55:37.000000000 +0200
+@@ -1976,11 +1976,10 @@
+ new_pos = 0;
+ new_len = msg->len > Wrap ? Wrap : msg->len;
+ if (msg->len < Wrap) {
+- /* if there's a field after @world, and msg fits there, use it */
++ /* use the @alert field */
+ for (node = statusfield_list[row]->head; node; node = node->next) {
+ field = (StatusField*)node->datum;
+- if (field->internal == STAT_WORLD && node->next) {
+- field = (StatusField*)node->next->datum;
++ if (field->internal == STAT_ALERT) {
+ break;
+ }
+ }
diff --git a/tf-50b7.build.patch b/tf-50b7.build.patch
new file mode 100644
index 00000000000..3b546e45261
--- /dev/null
+++ b/tf-50b7.build.patch
@@ -0,0 +1,21 @@
+diff -ur tf-50b7.orig/unix/vars.mak.in tf-50b7.patch/unix/vars.mak.in
+--- tf-50b7.orig/unix/vars.mak.in 2005-04-17 22:15:56.000000000 -0500
++++ tf-50b7.patch/unix/vars.mak.in 2006-01-28 21:30:07.000000000 -0600
+@@ -12,11 +12,11 @@
+
+ # @configure_input@
+
+-prefix = @prefix@
+-exec_prefix= @exec_prefix@
+-bindir = @bindir@
+-datadir = @datadir@
+-mandir = @mandir@
++prefix = ${DESTDIR}@prefix@
++exec_prefix= ${DESTDIR}@exec_prefix@
++bindir = ${DESTDIR}@bindir@
++datadir = ${DESTDIR}@datadir@
++mandir = ${DESTDIR}@mandir@
+
+ TFVERSION = @TFVERSION@
+ X = @EXEEXT@
+Only in tf-50b7.patch/unix: vars.mak.in~
diff --git a/tf-50b7.log_prefix.patch b/tf-50b7.log_prefix.patch
new file mode 100644
index 00000000000..190de078f04
--- /dev/null
+++ b/tf-50b7.log_prefix.patch
@@ -0,0 +1,58 @@
+diff -Naur tf-50b7/src/globals.h tf-50b7-new/src/globals.h
+--- tf-50b7/src/globals.h 2005-04-18 05:15:35.000000000 +0200
++++ tf-50b7-new/src/globals.h 2006-10-07 22:56:04.000000000 +0200
+@@ -191,6 +191,7 @@
+ #define keypad getintvar(VAR_keypad)
+ #define kprefix getstrvar(VAR_kprefix)
+ #define login getintvar(VAR_login)
++#define log_prefix getstrvar(VAR_log_prefix)
+ #define lpflag getintvar(VAR_lp)
+ #define lpquote getintvar(VAR_lpquote)
+ #define maildelay gettimevar(VAR_maildelay)
+diff -Naur tf-50b7/src/history.c tf-50b7-new/src/history.c
+--- tf-50b7/src/history.c 2005-04-18 05:15:35.000000000 +0200
++++ tf-50b7-new/src/history.c 2006-10-07 22:56:09.000000000 +0200
+@@ -131,6 +131,7 @@
+ /* ugly, but some people want it */
+ const char *p = str->data;
+ int i = 0, first = TRUE, len, remaining = str->len;
++
+ do { /* must loop at least once, to handle empty string case */
+ if (!first && wrapflag)
+ for (i = wrapspace; i; i--) tfputc(' ', hist->logfile);
+@@ -141,7 +142,23 @@
+ remaining -= len;
+ } while (remaining);
+ } else {
+- tfputs(str->data, hist->logfile);
++ if (log_prefix->len) {
++ time_t t;
++ struct tm *tm_;
++ int len;
++ String *buffer = NULL;
++
++ buffer = Stringnew(NULL, 256 + str->len, 0);
++ buffer->links++;
++ tftime(buffer, log_prefix, &str->time);
++ Stringcat(buffer, str->data);
++
++ tfputs(buffer->data, hist->logfile);
++
++ Stringfree(buffer);
++ } else {
++ tfputs(str->data, hist->logfile);
++ }
+ }
+ tfflush(hist->logfile);
+ }
+diff -Naur tf-50b7/src/varlist.h tf-50b7-new/src/varlist.h
+--- tf-50b7/src/varlist.h 2005-04-18 05:15:36.000000000 +0200
++++ tf-50b7-new/src/varlist.h 2006-10-07 22:54:41.000000000 +0200
+@@ -85,6 +85,7 @@
+ varflag(VAR_keypad, "keypad", FALSE, tog_keypad)
+ varstr (VAR_kprefix, "kprefix", NULL, NULL)
+ varflag(VAR_login, "login", TRUE, NULL)
++varstr (VAR_log_prefix, "log_prefix", "%H:%M:%S ", NULL)
+ varflag(VAR_lp, "lp", FALSE, tog_lp)
+ varflag(VAR_lpquote, "lpquote", FALSE, ch_lpquote)
+ vartime(VAR_maildelay, "maildelay", 60,0, ch_maildelay)