From 19531ec044f48f4d6a31b41e4483ecc5026464b8 Mon Sep 17 00:00:00 2001 From: fgsch Date: Tue, 4 Nov 2003 23:31:05 +0000 Subject: [PATCH] amazing.. and i thought i tested this well.. fix date insertion and bump revision. --- x11/xpostitPlus/Makefile | 3 ++- x11/xpostitPlus/patches/patch-insert_c | 16 ++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/x11/xpostitPlus/Makefile b/x11/xpostitPlus/Makefile index d4425712b45..f427abf5578 100644 --- a/x11/xpostitPlus/Makefile +++ b/x11/xpostitPlus/Makefile @@ -1,8 +1,9 @@ -# $OpenBSD: Makefile,v 1.14 2003/10/08 17:13:19 sturm Exp $ +# $OpenBSD: Makefile,v 1.15 2003/11/04 23:31:05 fgsch Exp $ COMMENT= "PostIt (R) messages onto your X11 screen" DISTNAME= XPostitPlus-2.3 +PKGNAME= $(DISTNAME)p1 CATEGORIES= x11 MASTER_SITES= ${MASTER_SITE_XCONTRIB:=office/} diff --git a/x11/xpostitPlus/patches/patch-insert_c b/x11/xpostitPlus/patches/patch-insert_c index 97e10abbd26..8dfa74ed76c 100644 --- a/x11/xpostitPlus/patches/patch-insert_c +++ b/x11/xpostitPlus/patches/patch-insert_c @@ -1,6 +1,6 @@ -$OpenBSD: patch-insert_c,v 1.1 2003/06/20 00:14:51 fgsch Exp $ ---- insert.c.orig Thu Jun 19 21:01:53 2003 -+++ insert.c Thu Jun 19 21:03:39 2003 +$OpenBSD: patch-insert_c,v 1.2 2003/11/04 23:31:05 fgsch Exp $ +--- insert.c.orig 1996-06-27 02:03:31.000000000 -0300 ++++ insert.c 2003-11-04 20:28:19.000000000 -0300 @@ -261,7 +261,6 @@ Widget w; time_t time_tp; struct tm *tm_tp; @@ -23,26 +23,26 @@ $OpenBSD: patch-insert_c,v 1.1 2003/06/20 00:14:51 fgsch Exp $ case 0: sprintf (cmd, - "%02d/%02d/%02d", tm_tp->tm_mon, tm_tp->tm_mday, tm_tp->tm_year ); -+ "%02d/%02d/%02d", tm_tp->tm_mon, tm_tp->tm_mday, tm_tp->tm_year % 100); ++ "%02d/%02d/%02d", tm_tp->tm_mon + 1, tm_tp->tm_mday, tm_tp->tm_year % 100); break; case 1: sprintf (cmd, - "<%02d/%02d/%02d>", tm_tp->tm_mon, tm_tp->tm_mday, tm_tp->tm_year ); -+ "<%02d/%02d/%02d>", tm_tp->tm_mon, tm_tp->tm_mday, tm_tp->tm_year % 100); ++ "<%02d/%02d/%02d>", tm_tp->tm_mon + 1, tm_tp->tm_mday, tm_tp->tm_year % 100); break; case 2: sprintf (cmd, - "(%02d/%02d/%02d)", tm_tp->tm_mon, tm_tp->tm_mday, tm_tp->tm_year ); -+ "(%02d/%02d/%02d)", tm_tp->tm_mon, tm_tp->tm_mday, tm_tp->tm_year % 100); ++ "(%02d/%02d/%02d)", tm_tp->tm_mon + 1, tm_tp->tm_mday, tm_tp->tm_year % 100); break; case 3: sprintf (cmd, "%02d/%02d/%02d - %02d:%02d", - tm_tp->tm_mon, tm_tp->tm_mday, tm_tp->tm_year, -+ tm_tp->tm_mon, tm_tp->tm_mday, ++ tm_tp->tm_mon + 1, tm_tp->tm_mday, + tm_tp->tm_year % 100, tm_tp->tm_hour, tm_tp->tm_min ); break; @@ -51,7 +51,7 @@ $OpenBSD: patch-insert_c,v 1.1 2003/06/20 00:14:51 fgsch Exp $ sprintf (cmd, "%02d/%02d/%02d(%02d:%02d)", - tm_tp->tm_mon, tm_tp->tm_mday, tm_tp->tm_year, -+ tm_tp->tm_mon, tm_tp->tm_mday, ++ tm_tp->tm_mon + 1, tm_tp->tm_mday, + tm_tp->tm_year % 100, tm_tp->tm_hour, tm_tp->tm_min ); break;