--- worklog-1.8.orig/Makefile +++ worklog-1.8/Makefile @@ -4,8 +4,8 @@ # CFLAGS=-Wall -g CFLAGS=-O2 -DVERSIONS=\"${VERSION}\" LIBS=-lncurses -lm -BIN=/usr/local/bin -MAN=/usr/local/man +BIN=$(DESTDIR)/usr/bin +MAN=$(DESTDIR)/usr/share/man/man1 # uncomment this to allow use of an environment variable to specify the # default working directory where default log and project files are located @@ -21,15 +21,18 @@ install: all cp worklog $(BIN)/worklog chmod a+rx $(BIN)/worklog - cp worklog.1 $(MAN)/man1/worklog.1 - chmod a+r $(MAN)/man1/worklog.1 + #cp worklog.1 $(MAN)/man1/worklog.1 + #chmod a+r $(MAN)/man1/worklog.1 install.zipman: install - gzip $(MAN)/man1/worklog.1 + #gzip $(MAN)/man1/worklog.1 worklog: worklog.c Makefile gcc $(CFLAGS) $(USE_ENV_DIR) worklog.c $(LIBS) -o worklog +clean: + rm -f worklog + tar: - rm -rf worklog-${VERSION} mkdir worklog-${VERSION} @@ -37,3 +40,4 @@ cp worklog.lsm distr/worklog-${VERSION}.lsm tar -clzvf distr/worklog-${VERSION}.tar.gz worklog-${VERSION} - rm -rf worklog-${VERSION} + --- worklog-1.8.orig/time.log +++ worklog-1.8/time.log @@ -0,0 +1,3 @@ +-- Worklog summary begins : Tue Apr 13 14:39:24 2004 -- +-- Worklog summary ends : Tue Apr 13 14:39:28 2004 -- + --- worklog-1.8.orig/worklog.c +++ worklog-1.8/worklog.c @@ -113,12 +113,12 @@ perror("fopen") ; exit(-1) ; } - while(!feof(f)) + while(!feof(f) && !ferror(f)) { linenum++ ; - for(firstchar=0;!feof(f) && firstchar<=13;) + for(firstchar=0;!feof(f) && !ferror(f) && firstchar<=13;) fscanf(f,"%c",&firstchar) ; - if(!feof(f)) + if(!feof(f) && !ferror(f)) { if(firstchar=='#') { @@ -146,6 +146,12 @@ } } } + if (ferror(f)) + { + fprintf(stderr,"ERROR: cannot read project configuration file : %s\n",filename) ; + perror("fscanf") ; + exit(-1) ; + } fclose(f) ; } @@ -571,8 +577,8 @@ do_resize() ; break ;;; default : - if(isdelkey(keypress) || (key==CR)) - quit=1 ; /* fall back to main loop */ + beep() ; + quit=1 ; break ; } } --- worklog-1.8.orig/debian/changelog +++ worklog-1.8/debian/changelog @@ -0,0 +1,94 @@ +worklog (1.8-5) unstable; urgency=low + + * Orphaning the package. Maintainer field set to QA Group. + * Use Homepage field to point to upstream homepage. Closes: #615395 + * Do not ignore errors in the clean target (debian/rules). + * Depend on ${misc:Depends}. + + -- Emanuele Rocca Fri, 27 May 2011 18:14:57 +0000 + +worklog (1.8-4) unstable; urgency=low + + * Prints an error message if "projects" is a directory. + Thanks to Danny Verstraeten for the patch. + Closes: #243201 + * Added projects example file. + + -- Emanuele Rocca Tue, 13 Apr 2004 14:32:55 +0200 + +worklog (1.8-3) unstable; urgency=low + + * Updated maintainer field. Frankie, thanks for sponsoring! + * Policy updated. + * Debhelper compatibility level switched to 4. + * Project homepage added in long description. + * Minor cosmetic changes to debian/rules. + + -- Emanuele Rocca Mon, 17 Nov 2003 09:51:43 +0100 + +worklog (1.8-2) unstable; urgency=low + + * Fixed project-switching problems. Closes: #193164 + + -- Emanuele Rocca Tue, 13 May 2003 14:38:37 +0200 + +worklog (1.8-1) unstable; urgency=low + + * New upstream release, Closes: #163945, #163948, #65047, #66291 + * Updated Standards-Version to 3.5.9 + * Adopted package, Closes: #182432 + * Sponsored by Francesco P. Lovergine + + -- Emanuele Rocca Fri, 7 Mar 2003 00:52:34 +0100 + +worklog (1.7-4) unstable; urgency=low + + * Updated Standards-Version to 3.5.2 + * Fixed some lintian errors + + -- Stijn de Bekker Mon, 5 Mar 2001 22:15:52 +0100 + +worklog (1.7-3) unstable; urgency=low + + * Updated maintainer-field (Remco, thanks for sponsoring!) + + -- Stijn de Bekker Fri, 23 Feb 2001 19:10:26 +0100 + +worklog (1.7-2) unstable; urgency=low + + * Updated Standards-Version to 3.1.1 + * Fixes couple of bugs in the debian package + + -- Stijn de Bekker Wed, 20 Dec 2000 20:05:21 +0100 + +worklog (1.7-1.1) unstable; urgency=low + + * Package version 1.7-1 is being sponsored by Remco van de Meent. Stijn de + Bekker is still in the new-maintainer queue. + + -- Remco van de Meent Wed, 8 Sep 1999 12:15:39 +0200 + +worklog (1.7-1) unstable; urgency=low + + * New maintainer. + + -- Stijn de Bekker Wed, 1 Sep 1999 08:54:17 +0200 + +worklog (1.4-3) unstable; urgency=low + + * New maintainer + + -- Oliver Elphick Thu, 11 Dec 1997 18:44:48 +0000 + +worklog (1.4-2) unstable; urgency=low + + * Rebuild under hamm. + + -- Christoph Lameter Fri, 5 Sep 1997 01:24:40 -0700 + +worklog (1.4-1) unstable; urgency=low + + * Initial Release. + + -- Christoph Lameter Tue, 24 Jun 1997 15:09:08 -0700 + --- worklog-1.8.orig/debian/copyright +++ worklog-1.8/debian/copyright @@ -0,0 +1,37 @@ +This package was debianized by Emanuele Rocca +Fri, 7 Mar 2003 00:52:34 +0100. + +It was downloaded from http://ftp.fi.muni.cz/pub/linux/metalab.unc.edu/apps/reminder/ + +Upstream Author: Truxton King Fulton II + +Copyright: + +Worklog was written by Truxton King Fulton II. + +I hereby place worklog into the public domain. You can do whatever you +want with this program. I assume no responsibility for it. + +The most current version of worklog can be obtained at : + ftp://ftp.truxton.com/pub/worklog.tar.gz + +If you wish to contact me about worklog, please use the address : + truxton@truxton.com + +Thanks to Tim Newsome for improvements incorporated +in version 1.3. + +Thanks to Egil Kvaleberg and +Mark Sebastian Fischer +for improvements incorporated in version 1.4. + +Thanks to Mike Butler for suggesting the "categorize +afterwards" feature incorporated in version 1.5. + +Thanks to Vaiva Bichnevicius for suggesting the +persistent state time feature. + +Thanks to Gary for suggesting support for window +resizing. + +Enjoy... --- worklog-1.8.orig/debian/rules +++ worklog-1.8/debian/rules @@ -0,0 +1,55 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + + $(MAKE) + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + $(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) install DESTDIR=`pwd`/debian/worklog + + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + #dh_installdocs -n README TODO + dh_installdocs + dh_installexamples projects + dh_installman worklog.1 + dh_installchangelogs + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- worklog-1.8.orig/debian/compat +++ worklog-1.8/debian/compat @@ -0,0 +1 @@ +4 --- worklog-1.8.orig/debian/control +++ worklog-1.8/debian/control @@ -0,0 +1,21 @@ +Source: worklog +Section: misc +Priority: optional +Maintainer: Debian QA Group +Build-Depends: debhelper (>= 4.0.0), libncurses-dev +Standards-Version: 3.6.1 +Homepage: http://www.truxton.com/~trux/software/ + +Package: worklog +Architecture: any +Depends: ${shlibs:Depends} ${misc:Depends} +Description: Keep Track of Time worked on Projects + From the author: + Worklog is a program that helps you keep track of your time. I wrote + this program because I have several projects that require me to keep a + timesheet. I sometimes spend 5 minutes here and there doing + miscellaneous administrative tasks. Rather than invoke an editor on a + timesheet file for every little segment of my time spent doing these + tasks, I wanted to leave a clock running and indicate with one or two + keystrokes the onset or change of any given task. Worklog is a simple + ncurses based program to do just that. --- worklog-1.8.orig/debian/dirs +++ worklog-1.8/debian/dirs @@ -0,0 +1 @@ +usr/bin --- worklog-1.8.orig/debian/docs +++ worklog-1.8/debian/docs @@ -0,0 +1,2 @@ +README +TODO