From owner-freebsd-ports Mon Oct 21 11:50:48 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E48537B406 for ; Mon, 21 Oct 2002 11:50:12 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6629D43E65 for ; Mon, 21 Oct 2002 11:50:10 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9LIoAx3064672 for ; Mon, 21 Oct 2002 11:50:10 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9LIoA6B064671; Mon, 21 Oct 2002 11:50:10 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A670537B401 for ; Mon, 21 Oct 2002 11:45:43 -0700 (PDT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F36843E4A for ; Mon, 21 Oct 2002 11:45:43 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.6/8.12.6) with ESMTP id g9LIjh7R005190 for ; Mon, 21 Oct 2002 11:45:43 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.6/8.12.6/Submit) id g9LIjhl9005189; Mon, 21 Oct 2002 11:45:43 -0700 (PDT) Message-Id: <200210211845.g9LIjhl9005189@www.freebsd.org> Date: Mon, 21 Oct 2002 11:45:43 -0700 (PDT) From: KATO Tsuguru To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: ports/44351: Update port: misc/wmwork to 0.2.0 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 44351 >Category: ports >Synopsis: Update port: misc/wmwork to 0.2.0 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Oct 21 11:50:08 PDT 2002 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: 4.7-RELEASE i386 >Organization: >Environment: >Description: - Update to version 0.2.0 New file: files/patch-Makefile.in Remove file: files/patch-Makefile >How-To-Repeat: >Fix: diff -urN /usr/ports/misc/wmwork/Makefile misc/wmwork/Makefile --- /usr/ports/misc/wmwork/Makefile Fri May 31 07:27:33 2002 +++ misc/wmwork/Makefile Tue Oct 22 02:32:31 2002 @@ -6,24 +6,25 @@ # PORTNAME= wmwork -PORTVERSION= 0.1.0 +PORTVERSION= 0.2.0 CATEGORIES= misc windowmaker afterstep MASTER_SITES= http://wwwtcs.inf.tu-dresden.de/~godisch/debian/wmwork/ -DISTNAME= wmwork_${PORTVERSION}.orig +DISTNAME= ${PORTNAME}_${PORTVERSION}.orig MAINTAINER= ports@FreeBSD.org LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src -USE_GMAKE= yes -USE_XPM= yes +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src + USE_X_PREFIX= yes +USE_XPM= yes +USE_GMAKE= yes +GNU_CONFIGURE= yes +CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib -lgnugetopt" MAN1= wmwork.1 - -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/wmwork ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/wmwork.1 ${PREFIX}/man/man1 .include diff -urN /usr/ports/misc/wmwork/distinfo misc/wmwork/distinfo --- /usr/ports/misc/wmwork/distinfo Fri May 31 07:27:33 2002 +++ misc/wmwork/distinfo Tue Oct 22 02:21:23 2002 @@ -1 +1 @@ -MD5 (wmwork_0.1.0.orig.tar.gz) = fb39ba1425b7dfd1b2efccb50e78546d +MD5 (wmwork_0.2.0.orig.tar.gz) = 31cfb730625fb39d52209cbf470d34ec diff -urN /usr/ports/misc/wmwork/files/patch-Makefile misc/wmwork/files/patch-Makefile --- /usr/ports/misc/wmwork/files/patch-Makefile Fri May 31 07:27:34 2002 +++ misc/wmwork/files/patch-Makefile Thu Jan 1 09:00:00 1970 @@ -1,61 +0,0 @@ -$FreeBSD: ports/misc/wmwork/files/patch-Makefile,v 1.1 2002/05/30 22:27:34 petef Exp $ - ---- Makefile.orig Sun Mar 3 21:21:58 2002 -+++ Makefile Thu May 16 09:46:38 2002 -@@ -1,45 +1,18 @@ --# $Id: Makefile,v 1.7 2002/03/03 15:21:58 godisch Exp $ -+CC ?= gcc -+CFLAGS += -c -Wall -pedantic -+INCDIR = -I${X11BASE}/include -I/usr/local/include -+LIBDIR = -L${X11BASE}/lib -L/usr/local/lib -+LIBS = -lXpm -lXext -lX11 -lgnugetopt -+OBJS = wmwork.o wmgeneral.o - --prefix = /usr/local --exec_prefix = ${prefix} --bindir = ${exec_prefix}/bin --mandir = ${prefix}/share/man -+.c.o: -+ ${CC} ${CFLAGS} ${INCDIR} $< -o $*.o -DSIGPOLL=SIGIO - --DESTDIR = -- --CFLAGS = -O2 -Wall -pedantic --LIBS = -L/usr/X11R6/lib -lX11 -lXpm -lXext -+wmwork: $(OBJS) -+ ${CC} -o wmwork $^ ${LIBDIR} ${LIBS} - - all: wmwork - --wmwork: wmwork.o wmgeneral.o -- $(CC) $(LIBS) -o $@ $^ -- --wmwork.o: wmwork.c wmwork.h wmwork.xpm --wmgeneral.o: wmgeneral.c wmgeneral.h -- --install: install-bin install-doc -- --install-bin: wmwork -- install -D -s -m 755 $< $(DESTDIR)$(bindir)/wmwork -- --install-doc: wmwork.1 -- install -D -m 644 $< $(DESTDIR)$(mandir)/man1/wmwork.1 -- --uninstall: uninstall-bin uninstall-doc -- --uninstall-bin: -- rm -f $(DESTDIR)$(bindir)/wmwork -- --uninstall-doc: -- rm -f $(DESTDIR)$(mandir)/man1/wmwork.1 -- - clean: - rm -f *.o -- --distclean: clean -- rm -f wmwork -- --.PHONY: all clean dist-clean install install-bin install-doc \ -- uninstall uninstall-bin uninstall-doc -- -+ rm -f wmwork core diff -urN /usr/ports/misc/wmwork/files/patch-Makefile.in misc/wmwork/files/patch-Makefile.in --- /usr/ports/misc/wmwork/files/patch-Makefile.in Thu Jan 1 09:00:00 1970 +++ misc/wmwork/files/patch-Makefile.in Tue Oct 22 02:27:23 2002 @@ -0,0 +1,26 @@ +--- Makefile.in.orig Fri Oct 18 22:23:14 2002 ++++ Makefile.in Tue Oct 22 02:27:08 2002 +@@ -8,9 +8,12 @@ + mandir = @mandir@ + CC = @CC@ + CFLAGS = -I. -Wall @CFLAGS@ ++CPPFLAGS = @CPPFLAGS@ + LDFLAGS = @LDFLAGS@ + LIBS = @LIBS@ + INSTALL = @INSTALL@ ++INSTALL_PROGRAM = @INSTALL_PROGRAM@ ++INSTALL_DATA = @INSTALL_DATA@ + OBJS = wmwork.o wmgeneral.o + + all: wmwork +@@ -22,8 +25,8 @@ + wmgeneral.o: wmgeneral.c wmgeneral.h + + install: wmwork wmwork.1 +- $(INSTALL) -D -s -m 755 wmwork $(DESTDIR)$(bindir)/wmwork +- $(INSTALL) -D -m 644 wmwork.1 $(DESTDIR)$(mandir)/man1/wmwork.1 ++ $(INSTALL_PROGRAM) wmwork $(DESTDIR)$(bindir)/wmwork ++ $(INSTALL_DATA) wmwork.1 $(DESTDIR)$(mandir)/man1/wmwork.1 + + clean: + rm -f *.o config.log config.status core *~ diff -urN /usr/ports/misc/wmwork/files/patch-wmwork.c misc/wmwork/files/patch-wmwork.c --- /usr/ports/misc/wmwork/files/patch-wmwork.c Fri May 31 07:27:34 2002 +++ misc/wmwork/files/patch-wmwork.c Tue Oct 22 02:35:35 2002 @@ -1,98 +1,14 @@ -$FreeBSD: ports/misc/wmwork/files/patch-wmwork.c,v 1.1 2002/05/30 22:27:34 petef Exp $ - ---- wmwork.c.orig Thu May 16 09:48:59 2002 -+++ wmwork.c Thu May 16 09:46:29 2002 -@@ -11,10 +11,9 @@ - #include - #include - #include --#include - #include - #include --#include -+#include - #include - - #include "wmgeneral.h" -@@ -43,7 +43,8 @@ - - char wmwork_mask_bits[64*64]; - char logname[MAX_STRING]; --struct timeb now; -+struct timeval now; -+struct timezone tz; - struct Project - *current = NULL, - *first = NULL; -@@ -54,9 +55,9 @@ - int n, - show_days = 0, - but_stat = 0, -- millitm = 0, - running = 0; - long -+ microtm = 0, - last_time = 0; +--- wmwork.c.orig Sat Oct 19 23:43:16 2002 ++++ wmwork.c Tue Oct 22 02:35:15 2002 +@@ -68,7 +68,11 @@ + *geometry = NULL, + *xdisplay = NULL; static int signals[] = ++#if defined(__FreeBSD__) ++ {SIGALRM, SIGHUP, SIGINT, SIGPIPE, SIGTERM, SIGUSR1, SIGUSR2, 0}; ++#else {SIGALRM, SIGHUP, SIGINT, SIGPIPE, SIGPOLL, SIGTERM, SIGUSR1, SIGUSR2, 0}; -@@ -89,17 +90,17 @@ - AddMouseRegion(BUT_STOP, 41, 48, 58, 58); - AddMouseRegion(BUT_PREV, 5, 33, 16, 43); - AddMouseRegion(BUT_NEXT, 47, 33, 58, 43); -- drawTime(current->time, sess_time, millitm, show_days); -+ drawTime(current->time, sess_time, microtm, show_days); - drawProject(current->name); - - while (1) { -- last_time = now.time; -- ftime(&now); -+ last_time = now.tv_sec; -+ gettimeofday(&now, &tz); - if (running) { -- current->time += now.time - last_time; -- sess_time += now.time - last_time; -- millitm = now.millitm; -- drawTime(current->time, sess_time, millitm, show_days); -+ current->time += now.tv_sec - last_time; -+ sess_time += now.tv_sec - last_time; -+ microtm = now.tv_usec; -+ drawTime(current->time, sess_time, microtm, show_days); - RedrawWindow(); - } - while (XPending(display)) { -@@ -159,7 +160,7 @@ - current = current->next; - break; - } -- drawTime(current->time, sess_time, millitm, show_days); -+ drawTime(current->time, sess_time, microtm, show_days); - drawProject(current->name); - } - RedrawWindow(); -@@ -272,7 +273,7 @@ - } - } - --void drawTime(long time1, long time2, int millitm, int show_days) -+void drawTime(long time1, long time2, int microtm, int show_days) - { - long d1 = 0, d2 = 0, h1 = 0, h2 = 0; - short m1 = 0, m2 = 0, s1 = 0, s2 = 0; -@@ -337,7 +338,7 @@ - copyXPMArea(TIMER_SRC_X(s2 % 10), TIMER_SRC_Y, 5, 7, 52, 20); - } ++#endif + XEvent Event; -- if (millitm < 500) { -+ if (microtm < 500000) { - copyXPMArea(161, CHAR_SRC_Y1, 1, 7, 27, 6); - copyXPMArea(161, CHAR_SRC_Y1, 1, 7, 27, 20); - copyXPMArea(161, CHAR_SRC_Y1, 1, 7, 43, 6); -@@ -502,7 +503,7 @@ - perror("fopen"); - return; - } -- strftime(t_buffer, 64, "%a %b %d %H:%M:%S %Z %Y", localtime(&now.time)); -+ strftime(t_buffer, 64, "%a %b %d %H:%M:%S %Z %Y", localtime(&now.tv_sec)); - fprintf(F, "%s %s %03li:%02li:%02li\n", t_buffer, current->name, sess_time / 3600, sess_time / 60 % 60, sess_time % 60); - fclose(F); - } + assert(sizeof(char) == 1); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message