Hello,
on sparc64 the time displayed in the status line is always 01:00. When
building the port I get the warning:

util.c: In function `tftime':
util.c:1136: warning: passing arg 1 of `localtime' from incompatible pointer 
type

In my ~/.tfrc I have:

  /set status_int_clock=ftime("%H:%M", time())

Attached is an update to fix this.

Further changes:
* update HOMEPAGE
* update MASTER_SITES
* add myself as MAINTAINER (if noone other wants it)

Please test/comment/...

Regards,
Markus

Index: tinyfugue/Makefile
===================================================================
RCS file: /cvs/ports/net/tinyfugue/Makefile,v
retrieving revision 1.21
diff -u -p -r1.21 Makefile
--- tinyfugue/Makefile  15 Sep 2007 22:36:59 -0000      1.21
+++ tinyfugue/Makefile  28 Nov 2007 19:11:33 -0000
@@ -3,11 +3,13 @@
 
 COMMENT=       programmable MUD client, with macro support and more
 
-PKGNAME=       tinyfugue-4.0s1p2
+PKGNAME=       tinyfugue-4.0s1p3
 DISTNAME=      tf-40s1
 CATEGORIES=    net games
 
-HOMEPAGE=      http://tf.tcp.com/~hawkeye/tf/
+HOMEPAGE=      http://tinyfugue.sourceforge.net/
+
+MAINTAINER=    Markus Lude <[EMAIL PROTECTED]>
 
 # GPL
 PERMIT_PACKAGE_CDROM=  Yes
@@ -16,7 +18,7 @@ PERMIT_DISTFILES_CDROM=       Yes
 PERMIT_DISTFILES_FTP=  Yes
 WANTLIB=               c m termcap z 
 
-MASTER_SITES=  ftp://tf.tcp.com/pub/tinyfugue/ \
+MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=tinyfugue/} \
                ftp://ftp.demon.co.uk/pub/games/mud/
 
 MASTER_SITES0= http://inphobia.net/openbsd/patches/
Index: tinyfugue/patches/patch-src_util_c
===================================================================
RCS file: tinyfugue/patches/patch-src_util_c
diff -N tinyfugue/patches/patch-src_util_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tinyfugue/patches/patch-src_util_c  28 Nov 2007 19:11:33 -0000
@@ -0,0 +1,20 @@
+$OpenBSD$
+--- src/util.c.orig    Sat Mar  6 23:43:25 1999
++++ src/util.c Wed Nov 28 12:48:49 2007
+@@ -1124,6 +1124,7 @@ int tftime(dest, fmt, sec, usec)
+         CONST char *s;
+         static char fmtbuf[3] = "%?";  /* static to allow init in K&R C */
+         struct tm *local = NULL;
++        time_t lt;
+         if (!*fmt) fmt = "%c";
+         for (s = fmt; *s; s++) {
+             if (*s != '%') {
+@@ -1133,7 +1134,7 @@ int tftime(dest, fmt, sec, usec)
+             } else if (*s == '.') {
+                 Sprintf(dest, SP_APPEND, "%02ld", (usec + 5000) / 10000);
+             } else {
+-                if (!local) local = localtime(&sec);
++                if (!local) { lt = sec; local = localtime(&lt); }
+                 fmtbuf[1] = *s;
+                 Stringterm(dest, dest->len + 32);
+                 dest->len += strftime(dest->s + dest->len, 32, fmtbuf, local);

Reply via email to