debian/0000755000000000000000000000000011752552135007174 5ustar debian/control0000644000000000000000000000107111741356542010600 0ustar Source: pcal Section: utils Priority: optional Maintainer: Camm Maguire Build-Depends: debhelper ( >= 9 ), groff, libpaper-dev Standards-Version: 3.9.3 Package: pcal Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: generate Postscript calendars without X "Pcal" is a program to print PostScript calendars for any month and year. By default, it looks for a file in the home directory named "calendar" for entries with leading dates matching dates on the calendar, and prints any following text under the appropriate day. debian/examples0000644000000000000000000000135111321373775010740 0ustar examples/calendar_au.txt examples/calendar_de.txt examples/calendar_ee.txt examples/calendar_fi.txt examples/calendar_fr.txt examples/calendar_gr.txt examples/calendar_hu.txt examples/calendar_no.txt examples/calendar_nz.txt examples/calendar_uk.txt examples/calendar_us.txt examples/fonttest_arabic examples/fonttest_cyrillic examples/fonttest_greek examples/fonttest_hebrew examples/fonttest_koi8r examples/fonttest_koi8u examples/fonttest_latin1 examples/fonttest_latin10 examples/fonttest_latin2 examples/fonttest_latin3 examples/fonttest_latin4 examples/fonttest_latin5 examples/fonttest_latin6 examples/fonttest_latin7 examples/fonttest_latin8 examples/fonttest_latin9 examples/fonttest_roman8 examples/fonttest_thai examples/pcal-cfg.txt debian/watch0000644000000000000000000000044111321372327010217 0ustar version=2 #http://prdownloads.sourceforge.net/pcal/pcal-?_?([\w+\d+\.]+|\d+)(\.tar|\.tgz)(\.gz|\.bz2|) debian uupdate #opts=pasv ftp://ftp2.sf.net/pub/sourceforge/p/pc/pcal/pcal-?_?([\w+\d+\.]+|\d+)(\.tar|\.tgz)(\.gz|\.bz2|) debian uupdate http://sf.net/pcal/pcal-(.*)\.tgz debian uupdate debian/portugese.patch0000644000000000000000000000763311321372327012236 0ustar diff -u --recursive pcal-4.7/Pcal.hlp pcal-4.7-new/Pcal.hlp --- pcal-4.7/Pcal.hlp Fri Oct 1 18:36:46 1999 +++ pcal-4.7-new/Pcal.hlp Wed Dec 12 09:37:25 2001 @@ -654,8 +654,8 @@ Select the language for the names of months and days. As of v4.6, the following languages are supported: de (German), en (English) eo (Esperanto) es (Spanish), fr - (French), gr (Greek), and it (Italian). The default is - en. + (French), gr (Greek), it (Italian), and pt (Portugue- + se). The default is en. Note: In order to display diacritical marks, languages other than English require that the fonts be remapped Only in pcal-4.7-new: build-stamp diff -u --recursive pcal-4.7/days.h pcal-4.7-new/days.h --- pcal-4.7/days.h Fri Oct 1 18:36:46 1999 +++ pcal-4.7-new/days.h Wed Dec 12 09:14:43 2001 @@ -1,6 +1,7 @@ /* * Day output strings: one line per language (order: English, Greek, - * Italian, French, German, Esperanto, Spanish; cf. pcallang.h) + * Italian, French, German, Esperanto, Spanish, Portuguese; + * cf. pcallang.h) * * NB: + YOU NEED AN 8-BIT CLEAN EDITOR TO EDIT THIS (and proper fonts) * + GREEK IS IN ELOT-928 @@ -20,4 +21,6 @@ { "Diman\346o", "Lundo", "Mardo", "Merkredo", "\254a\375do", "Vendredo", "Sabato" }, { "Domingo", "Lunes", "Martes", "Mi\351rcoles", - "Jueves", "Viernes", "Sabado" } + "Jueves", "Viernes", "Sabado" }, +{ "Domingo", "Segunda", "Ter\347a", "Quarta", + "Quinta", "Sexta", "S\341bado" } diff -u --recursive pcal-4.7/months.h pcal-4.7-new/months.h --- pcal-4.7/months.h Fri Oct 1 18:36:46 1999 +++ pcal-4.7-new/months.h Tue Dec 11 09:50:33 2001 @@ -1,6 +1,7 @@ /* * Month output strings: one line per language (order: English, Greek, - * Italian, French, German, Esperanto, Spanish; cf. pcallang.h) + * Italian, French, German, Esperanto, Spanish, Portuguese ; + * cf. pcallang.h) * * NB: + YOU NEED AN 8-BIT CLEAN EDITOR TO EDIT THIS (and proper fonts) * + GREEK IS IN ELOT-928 @@ -31,4 +32,7 @@ "Septembro", "Oktobro", "Novembro", "Decembro" }, { "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", - "Septiembre", "Octubre", "Noviembre", "Diciembre" } + "Septiembre", "Octubre", "Noviembre", "Diciembre" }, +{ "Janeiro", "Fevereiro", "Mar\347o", "Abril", + "Maio", "Junho", "Julho", "Agosto", + "Setembro", "Outubro", "Novembro", "Dezembro" } diff -u --recursive pcal-4.7/pcal.man pcal-4.7-new/pcal.man --- pcal-4.7/pcal.man Wed Dec 12 09:40:36 2001 +++ pcal-4.7-new/pcal.man Wed Dec 12 09:33:41 2001 @@ -1027,9 +1027,11 @@ (French), .B gr (Greek), -and .B it (Italian). +and +.B pt +(Portuguese). The default is .BR en . .IP diff -u --recursive pcal-4.7/pcallang.h pcal-4.7-new/pcallang.h --- pcal-4.7/pcallang.h Fri Oct 1 18:36:46 1999 +++ pcal-4.7-new/pcallang.h Wed Dec 12 09:10:55 2001 @@ -139,7 +139,7 @@ #define DAYSIZE 20 /* large enough for longest string in days[] below */ #define LANGSIZE 20 /* large enough for longest string in lang_id[] below */ -#define NUM_LANGUAGES 7 /* *** Change this if adding languages *** */ +#define NUM_LANGUAGES 8 /* *** Change this if adding languages *** */ #define LANG_ENGLISH 0 #define LANG_GREEK 1 #define LANG_ITALIAN 2 @@ -147,6 +147,7 @@ #define LANG_GERMAN 4 #define LANG_ESPERANTO 5 #define LANG_SPANISH 6 +#define LANG_PORTUGUESE 7 #ifndef LANG_DEFAULT #define LANG_DEFAULT LANG_ENGLISH @@ -198,10 +199,11 @@ "de [German]", "eo [Esperanto]", "es [Spanish]", + "pt [Portuguese]", #if THESE_ARE_NOT_INCLUDED /* some possible extra languages */ "ho [Dutch]", - "pg [Portuguese]", + "ot [OtherLanguage]", #endif }; @@ -216,10 +218,11 @@ LATIN1, /* German */ ESPERANTO, /* Esperanto */ LATIN1, /* Spanish */ + LATIN1, /* Portuguese */ #if THESE_ARE_NOT_INCLUDED /* some possible extra languages */ LATIN1, /* Dutch */ - LATIN1, /* Portuguese */ + OTHER, /* OtherLanguage */ #endif }; debian/patches/0000755000000000000000000000000011741357104010620 5ustar debian/patches/series0000644000000000000000000000002611741357104012033 0ustar 3.0-quilt-format-init debian/patches/3.0-quilt-format-init0000644000000000000000000001206611741357104014433 0ustar Description: TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. . pcal (4.11.0-2) unstable; urgency=low . * lintian fixes Author: Camm Maguire --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- pcal-4.11.0.orig/Makefile +++ pcal-4.11.0/Makefile @@ -118,7 +118,7 @@ else # Unix D_BUILD_ENV = -DBUILD_ENV_UNIX PCAL = pcal CC = /usr/bin/gcc - PACK = compress + PACK = gzip -9 # PACK = pack # PACK = gzip endif @@ -147,9 +147,9 @@ ifeq ($(OS),DJGPP) # DOS+DJGPP MANDIR = $(DJDIR)/man/man1 CATDIR = $(DJDIR)/man/cat1 else # Unix - BINDIR = /usr/local/bin - MANDIR = /usr/man/man1 - CATDIR = /usr/man/cat1 + BINDIR = usr/bin + MANDIR = usr/share/man/man1 + CATDIR = usr/man/cat1 endif OBJECTS = $(OBJDIR)/pcal.o \ @@ -279,11 +279,11 @@ COPTS = $(D_MAPFONTS) $(D_TITLEFONT) $(D ifeq ($(OS),DJGPP) # DOS+DJGPP CFLAGS = -Wall -W else # Unix - CFLAGS = -O2 -Wall -W + CFLAGS = -g -O2 -Wall -W endif $(EXECDIR)/$(PCAL): $(OBJECTS) - $(CC) $(LDFLAGS) -o $(EXECDIR)/$(PCAL) $(OBJECTS) -lm + $(CC) $(LDFLAGS) -o $(EXECDIR)/$(PCAL) $(OBJECTS) -lm -lpaper @ echo Build of $(PCAL) for $(OS_NAME) completed. $(OBJDIR)/encvec.o: $(SRCDIR)/encvec.c @@ -350,9 +350,9 @@ man: $(DOCDIR)/pcal.man install: $(EXECDIR)/$(PCAL) man mkdir -p $(DESTDIR)/$(BINDIR) mkdir -p $(DESTDIR)/$(MANDIR) - mkdir -p $(DESTDIR)/$(CATDIR) +# mkdir -p $(DESTDIR)/$(CATDIR) cp $(EXECDIR)/$(PCAL) $(DESTDIR)/$(BINDIR) cp $(DOCDIR)/pcal.man $(DESTDIR)/$(MANDIR)/pcal.1 $(PACK) $(DESTDIR)/$(MANDIR)/pcal.1 - cp $(DOCDIR)/pcal.cat $(DESTDIR)/$(CATDIR)/pcal.1 - $(PACK) $(DESTDIR)/$(CATDIR)/pcal.1 +# cp $(DOCDIR)/pcal.cat $(DESTDIR)/$(CATDIR)/pcal.1 +# $(PACK) $(DESTDIR)/$(CATDIR)/pcal.1 --- pcal-4.11.0.orig/doc/pcal.man +++ pcal-4.11.0/doc/pcal.man @@ -373,7 +373,9 @@ the `SEARCH_PCAL_DIR' flag) when .I pcal was built, the directory where the .I pcal -executable resides will be checked. If no date file is found, an empty +executable resides will be checked. (This final search of the +executable directory has been disabled in the version shipped with +Debian.) If no date file is found, an empty calendar is printed; no error is generated. .PP Alternatively, the name of the date file (and, optionally, the path where it @@ -2238,6 +2240,6 @@ Angelo Haritsis. Additional languages w (Esperanto), Lars Wirzenius (Finnish), Pedro Zorzenon Neto (Portuguese), Joel Fredrikson (Swedish), Volodymyr M. Lisivka (Ukrainian), Neeme Praks (Estonian, Russian, Latvian, Lithuanian), Peter Cernoch (Czech), Ferenc Kruzslicz -(Hungarian), Carles Sadurní Anguita (Catalan), Dominik 'Chiron' Derlatka +(Hungarian), Carles Sadurni Anguita (Catalan), Dominik 'Chiron' Derlatka (Polish), Ewald Beekman (Dutch), Claudiu Costin (Romanian), Kenneth Geisshirt (Danish), Zdenko Podobny (Slovak), and Eric Nichols (Hawaiian). --- pcal-4.11.0.orig/src/pcal.c +++ pcal-4.11.0/src/pcal.c @@ -749,6 +749,31 @@ DEBUG_INFO debug_info[] = { /* to be filled in by display_usage() */ static char Xtval[VALSIZ], Ytval[VALSIZ], Xsval[VALSIZ], Ysval[VALSIZ], Ncopy[VALSIZ]; +#include +static int +init_paper_size() { + + const char *s; + unsigned i; + + paperinit(); + + if (!(s=systempapername())) { + fprintf(stderr,"Cannot find system paper name\n"); + paperdone(); + exit(1); + } + + paperdone(); + + for (i=0;i */ strcpy(tmpnam, name + (*name == '"' || *name == '<')); - if ((p = P_LASTCHAR(tmpnam)) && (*p == '"' || *p == '>')) *p = '\0'; + p = tmpnam; + if ((p = P_LASTCHAR(p)) && (*p == '"' || *p == '>')) *p = '\0'; /* save year and unmunged file name */ sv_curr_year = curr_year; debian/compat0000644000000000000000000000000211741356532010373 0ustar 9 debian/changelog0000644000000000000000000001250611752552112011045 0ustar pcal (4.11.0-3) unstable; urgency=low * lintian fixes -- Camm Maguire Wed, 09 May 2012 20:32:10 +0000 pcal (4.11.0-2) unstable; urgency=low * lintian fixes -- Camm Maguire Wed, 11 Apr 2012 19:38:11 +0000 pcal (4.11.0-1) unstable; urgency=low * New upstream release * Bug fix: "-J option outputs broken PostScript", thanks to nbreen@ofb.net (Nicholas Breen); (Closes: #400823). -- Camm Maguire Thu, 07 Jan 2010 14:59:50 +0000 pcal (4.10.0-1) unstable; urgency=low * New upstream release,Closes: #384535. * build-dep on libpaper-dev, Closes: 346401. * Newer standards -- Camm Maguire Wed, 4 Oct 2006 10:27:26 -0400 pcal (4.9.1-1) unstable; urgency=low * New upstream release, Closes: #334455. * updated examples list * newer standards * updated watchfile to sf redirector -- Camm Maguire Fri, 21 Oct 2005 01:23:10 +0000 pcal (4.8.0-2) unstable; urgency=high * Fixed watch file -- Camm Maguire Tue, 22 Mar 2005 20:33:26 +0000 pcal (4.8.0-1) unstable; urgency=high * New upstream release * Bug fix: "CAN-2004-1289 Multiple buffer overflows", thanks to Joey Hess (Closes: #287039). Fixed upstream. * Bug fix: "pcal: option "-a pt" does not work", thanks to Pedro Zorzenon Neto (Closes: #284098). Fixed upstream. -- Camm Maguire Mon, 3 Jan 2005 17:00:54 +0000 pcal (4.7.1-3) unstable; urgency=high * Add watch file -- Camm Maguire Fri, 29 Oct 2004 17:07:44 +0000 pcal (4.7.1-2) unstable; urgency=low * Define SEARCH_PCAL_DIR to 0 to avoide conflict with /usr/bin/calendar. Closes: #272656. Closes: #241708. * Extend libpaper support to postscript bounding box, postscript comment size, and 'tray' dictionaries. Closes: #244701. * Bug fix: "pcal: Would like enhanced define capability", thanks to Louis Taber (Closes: #267090). Preliminary support for define values in pseudo cpp support. -- Camm Maguire Tue, 21 Sep 2004 17:25:12 +0000 pcal (4.7.1-1) unstable; urgency=low * Bug fix: "New upstream release available", thanks to Martin Michlmayr (Closes: #240093). * Bug fix: "Upstream location out of date", thanks to Martin Michlmayr (Closes: #240094). * compat level 4 * watch file * Clean up a few compiler warnings from missing headers * Newer standards * Rephrase description slightly -- Camm Maguire Mon, 29 Mar 2004 16:41:30 +0000 pcal (4.7-10) unstable; urgency=low * Fix typo in man page, Closes: #176307 -- Camm Maguire Mon, 17 Feb 2003 15:52:40 -0500 pcal (4.7-9) unstable; urgency=low * Added Finnish translation, Closes: #168603 -- Camm Maguire Thu, 14 Nov 2002 21:39:06 -0500 pcal (4.7-8) unstable; urgency=low * Fixed path length overflow bug -- Camm Maguire Wed, 27 Feb 2002 11:07:06 -0500 pcal (4.7-7) unstable; urgency=low * Removed add-log-mailing-address from changelog, New policy standard, Closes: #123609 * Applied Portugese language patch, Closes: #123607 -- Camm Maguire Wed, 12 Dec 2001 14:29:12 -0500 pcal (4.7-6) unstable; urgency=low * Changed Build-Depends on libpaperg to libpaperg-dev, Closes: #97895 -- Camm Maguire Fri, 18 May 2001 09:31:01 -0400 pcal (4.7-5) unstable; urgency=low * Added -DEPS to compile flags to make more useful postscript output, Closes: #97734 * Added Build-Depends -- Camm Maguire Thu, 17 May 2001 10:20:36 -0400 pcal (4.7-4) unstable; urgency=low * Upgraded to latest standards version * chmod -x moon98 example -- Camm Maguire Wed, 29 Mar 2000 19:30:33 +0200 pcal (4.7-3) frozen; urgency=low * Prevented search for calendar file in executable directory, closing #56136 -- Camm Maguire Tue, 25 Jan 2000 13:24:08 -0500 pcal (4.7-2) unstable; urgency=low * Added runtime papersize support using libpaper. Only supported formats so far are upstream compile time options, letter and a4. (closes #53852) -- Camm Maguire Mon, 3 Jan 2000 13:37:45 -0500 pcal (4.7-1) unstable; urgency=low * Updated program source in copyright file * Installed a more modern rules file from debhelper * Added some new files as examples, including web interface -- this should evenutally be installed as a cgi addon * Fixed man page typo -- -\ -> \- * Miscellaneous Makefile changes for proper Debianization * New upstream release -- Camm Maguire Sat, 11 Sep 1999 16:32:24 -0400 pcal (4.1-3) unstable; urgency=low * Fixed lintian errors -- Camm Maguire Sat, 11 Sep 1999 16:32:24 -0400 pcal (4.1-2) unstable; urgency=low * Fixed lintian error: removed README.Debian * Fixed lintian error: manpage not executable * Added newline to Makefile -- Camm Maguire Mon, 12 Apr 1999 15:27:58 -0400 pcal (4.1-1) unstable; urgency=low * Prevented pcal from searching in /usr/bin for calendars * Made miscellaneous changes to get a clean compile with -Wall * Edited Makefile, CC=gcc, install in /usr/man and /usr/bin * Initial Release. -- Camm Maguire Tue, 5 Jan 1999 12:20:05 -0500 debian/copyright0000644000000000000000000000142611321372327011125 0ustar This package was debianized by Camm Maguire camm@enhanced.com on Tue, 5 Jan 1999 12:20:05 -0500. It was downloaded from http://pcal.sourceforge.net/ Copyright: The original calendar PostScript was Copyright (c) 1987 by Patrick Wood and Pipeline Associates, Inc. with permission to modify and redistribute. Moon phase routines have the following copyright: Copyright (C) 1988 by Jef Poskanzer and Craig Leres. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. This software is provided "as is" without express or implied warranty. debian/rules0000755000000000000000000000272711741356767010277 0ustar #!/usr/bin/make -f #-*- makefile -*- # Made with the aid of dh_make, by Craig Small # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. # Some lines taken from debmake, by Christoph Lameter. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This is the debhelper compatability version to use. build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: dh_testdir $(MAKE) CFLAGS="-O2 -Wall -DEPS" touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp install-stamp debian/pcal.1 -make clobber dh_clean install: install-stamp install-stamp: build-stamp dh_testdir dh_testroot dh_prep dh_installdirs make install DESTDIR=`pwd`/debian/pcal cp doc/pcal.man debian/pcal.1 touch install-stamp # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installdocs dh_installexamples dh_installmenu dh_installcron dh_installman debian/pcal.1 dh_installinfo dh_installchangelogs dh_link dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb source diff: @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/dirs0000644000000000000000000000001011321372327010042 0ustar usr/bin debian/source/0000755000000000000000000000000011741357046010476 5ustar debian/source/format0000644000000000000000000000001411741357046011704 0ustar 3.0 (quilt) debian/docs0000644000000000000000000000010511321372327010036 0ustar doc/ReadMe.txt doc/pcal-help.html doc/pcal-help.ps doc/pcal-help.txt