diff options
author | xride <xride@FreeBSD.org> | 2009-02-27 00:14:20 +0800 |
---|---|---|
committer | xride <xride@FreeBSD.org> | 2009-02-27 00:14:20 +0800 |
commit | 04c3d1c51ef1f9c8d71311a81f0782056d0a077c (patch) | |
tree | 32bf2d71e8808a421a50018c782b7d885fe0ee5b /misc/wmwork | |
parent | 89b2bcf025bf6b2c491eb6a4b2e2f0b98e2aea25 (diff) | |
download | freebsd-ports-gnome-04c3d1c51ef1f9c8d71311a81f0782056d0a077c.tar.gz freebsd-ports-gnome-04c3d1c51ef1f9c8d71311a81f0782056d0a077c.tar.zst freebsd-ports-gnome-04c3d1c51ef1f9c8d71311a81f0782056d0a077c.zip |
make it fetchable
noticed by: pointyhat (Pav)
Diffstat (limited to 'misc/wmwork')
-rw-r--r-- | misc/wmwork/Makefile | 6 | ||||
-rw-r--r-- | misc/wmwork/files/patch-wmwork.c | 23 |
2 files changed, 27 insertions, 2 deletions
diff --git a/misc/wmwork/Makefile b/misc/wmwork/Makefile index 21332839dc7e..b4f2183b4ce9 100644 --- a/misc/wmwork/Makefile +++ b/misc/wmwork/Makefile @@ -7,9 +7,11 @@ PORTNAME= wmwork PORTVERSION= 0.2.5 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= misc windowmaker afterstep -MASTER_SITES= http://www.godisch.de/debian/wmwork/ +MASTER_SITES= http://people.debian.org/~godisch/wmwork/ \ + ${MASTER_SITE_LOCAL} +MASTER_SITE_SUBDIR= xride MAINTAINER= xride@FreeBSD.org COMMENT= A dockapp that keeps track of time you have spent on something diff --git a/misc/wmwork/files/patch-wmwork.c b/misc/wmwork/files/patch-wmwork.c new file mode 100644 index 000000000000..3dbf7a64a142 --- /dev/null +++ b/misc/wmwork/files/patch-wmwork.c @@ -0,0 +1,23 @@ +--- wmwork.c.orig 2009-02-26 07:19:00.000000000 +0100 ++++ wmwork.c 2009-02-26 07:22:35.000000000 +0100 +@@ -590,9 +590,9 @@ + p = first; + do { + if (F == stderr) +- fprintf(F, "%s: > %s:%li:%s\n", PACKAGE_NAME, p->name, p->time, p->comment ? p->comment : ""); ++ fprintf(F, "%s: > %s:%u:%s\n", PACKAGE_NAME, p->name, p->time, p->comment ? p->comment : ""); + else +- fprintf(F, "%s:%li:%s\n", p->name, p->time, p->comment ? p->comment : ""); ++ fprintf(F, "%s:%u:%s\n", p->name, p->time, p->comment ? p->comment : ""); + p = p->next; + } while (p != first); + +@@ -614,7 +614,7 @@ + if (sess_time == 0) + return 1; + strftime(tbuff, sizeof(tbuff), "%a, %d %b %Y %H:%M:%S %z", localtime(&now.tv_sec)); +- snprintf(rbuff, sizeof(rbuff), "%s %03li:%02li:%02li", tbuff, sess_time / 3600, sess_time / 60 % 60, sess_time % 60); ++ snprintf(rbuff, sizeof(rbuff), "%s %03i:%02i:%02i", tbuff, sess_time / 3600, sess_time / 60 % 60, sess_time % 60); + + if ((fname = malloc(path_len)) == NULL) { + fprintf(stderr, "%s: cannot allocate memory for path variable\n", PACKAGE_NAME); |