--- wmsun-1.03.orig/wmSun/Makefile +++ wmsun-1.03/wmSun/Makefile @@ -1,5 +1,5 @@ CC = gcc -CFLAGS = -O2 -Wall +# CFLAGS = -O2 -Wall INCDIR = -I/usr/X11R6/include/X11 DESTDIR= /usr/X11R6 LIBDIR = -L/usr/X11R6/lib @@ -22,14 +22,14 @@ .c.o: - $(CC) $(COPTS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR) + $(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR) all: wmSun.o wmSun wmSun.o: wmSun_master.xpm wmSun_mask.xbm wmSun: $(OBJS) - $(CC) $(COPTS) $(SYSTEM) -lm -o wmSun $^ $(INCDIR) $(LIBDIR) $(LIBS) + $(CC) $(CFLAGS) $(SYSTEM) -lm -o wmSun $^ $(INCDIR) $(LIBDIR) $(LIBS) clean: for i in $(OBJS) ; do \ @@ -38,6 +38,6 @@ rm -f wmSun install:: wmSun - install -s -m 0755 wmSun $(DESTDIR)/bin - install -m 0644 wmSun.1 $(DESTDIR)/man/man1 + install -D -m 0755 wmSun $(DESTDIR)/usr/bin/wmSun + install -D -m 0644 wmSun.1 $(DESTDIR)/usr/share/man/man1/wmSun.1 --- wmsun-1.03.orig/wmSun/SunRise.c +++ wmsun-1.03/wmSun/SunRise.c @@ -10,8 +10,9 @@ double sinEPS = 0.39778; double P2 = 6.283185307; +int Interp(double, double, double, double*, double*, double*, double*, int*); -SunRise(int year, int month, int day, double LocalHour, double *UTRise, double *UTSet){ +void SunRise(int year, int month, int day, double LocalHour, double *UTRise, double *UTSet){ double UT, ym, y0, yp, SinH0; double xe, ye, z1, z2, SinH(), hour24(); @@ -80,7 +81,7 @@ } -UTTohhmm(double UT, int *h, int *m){ +void UTTohhmm(double UT, int *h, int *m){ if (UT < 0.0) { @@ -98,7 +99,7 @@ -Interp(double ym, double y0, double yp, double *xe, double *ye, double *z1, double *z2, int *nz){ +int Interp(double ym, double y0, double yp, double *xe, double *ye, double *z1, double *z2, int *nz){ double a, b, c, d, dx; @@ -129,8 +130,8 @@ double SinH(int year, int month, int day, double UT){ - double TU0, TU, TU2, TU3, LambdaMoon, BetaMoon, R, AGE, frac(), jd(); - double RA_Sun, DEC_Sun, T0, gmst, lmst, Tau, epsilon; + double TU0, TU, TU2, TU3, frac(), jd(); + double RA_Sun, DEC_Sun, gmst, lmst, Tau; double M, DL, L, SL, X, Y, Z, RHO; @@ -176,7 +177,7 @@ int ny, nm, nd; double UT; { - double A, B, C, D, JD, MJD, day; + double A, B, C, D, JD, day; day = nd + UT/24.0; --- wmsun-1.03.orig/wmSun/wmSun.c +++ wmsun-1.03/wmSun/wmSun.c @@ -95,6 +95,7 @@ +void SunRise(int, int, int, double, double*, double*); void ParseCMDLine(int argc, char *argv[]); void pressEvent(XButtonEvent *xev); @@ -125,14 +126,12 @@ struct tm *GMTTime, *LocalTime; XEvent event; - int i, n, k, j, ImageNumber; - int Year, Month, DayOfWeek, OldLocalDayOfMonth; + int n; + int Year, Month, OldLocalDayOfMonth; int LocalDayOfMonth, DayOfMonth; - int Hours, Mins, Secs, OldSecs, digit, xoff, xsize; long CurrentLocalTime, CurrentGMTTime, date; - double UT, val, RA, DEC, LTRise, LTSet, LocalHour, hour24(); - int D, H, M, S, sgn, A, B, q; - char str[10]; + double UT, val, LTRise, LTSet, LocalHour, hour24(); + int H, M; --- wmsun-1.03.orig/debian/changelog +++ wmsun-1.03/debian/changelog @@ -0,0 +1,120 @@ +wmsun (1.03-15) unstable; urgency=low + + * Added Japanese debconf translation, closes: #236819. + Thanks to Hideki Yamane. + * Removed ucf/debconf and lintian workarounds. + * Updated debian/menu, debian/rules, and standards version. + + -- Martin A. Godisch Mon, 08 Mar 2004 16:41:45 +0100 + +wmsun (1.03-14) unstable; urgency=low + + * Simplified ucf handling, see bug #199233, adjusted ucf dependency, + closes: #201574. + * Added Spanish debconf translation, closes: #201902. + Thanks to Carlos Alberto Martín Edo. + * Removed useless BUGS file. + * Converted debian/changelog to UTF-8. + * Updated standards version. + + -- Martin A. Godisch Sun, 27 Jul 2003 15:56:32 +0200 + +wmsun (1.03-13) unstable; urgency=low + + * Improved ucf transition. + + -- Martin A. Godisch Sun, 29 Jun 2003 10:24:00 +0200 + +wmsun (1.03-12) unstable; urgency=low + + * Updated deb'configuration, added ucf support. + + -- Martin A. Godisch Fri, 27 Jun 2003 07:11:55 +0200 + +wmsun (1.03-11) unstable; urgency=low + + * Updated deb'configuration. + * Updated standards version. + + -- Martin A. Godisch Fri, 30 May 2003 18:38:35 +0200 + +wmsun (1.03-10) unstable; urgency=low + + * Added french debconf translation, closes: #189225. + Thanks to Christian Perrier. + * Updated configuration. + + -- Martin A. Godisch Wed, 16 Apr 2003 09:52:25 +0200 + +wmsun (1.03-9) unstable; urgency=low + + * Added portuguese debconf translation, closes: #185684. + Thanks to André Luís Lopes. + * Improved debconf template, see #185710. + + -- Martin A. Godisch Sat, 22 Mar 2003 07:33:40 +0100 + +wmsun (1.03-8) unstable; urgency=low + + * Transition to po-debconf, updated build-dependencies. + * Fixed package description. + * Updated standards version. + + -- Martin A. Godisch Fri, 14 Mar 2003 08:09:42 +0100 + +wmsun (1.03-7) unstable; urgency=low + + * Made debian/config asking wmmoonclock for default values. + * Fixed update-menus in debian/postinst and debian/postrm. + * Added upstream changelog. + * Added upstream homepage to package description. + + -- Martin A. Godisch Sat, 01 Mar 2003 09:54:54 +0100 + +wmsun (1.03-6) unstable; urgency=low + + * Fixed Makefile and compiler warnings. + * Added Lintian override about menu file not in DEBIAN/md5sums, + because it is debconf'igured. + * Simplified debian/config. + * Removed build-dependency on debhelper. + * Updated maintainer email address. + + -- Martin A. Godisch Fri, 21 Feb 2003 20:22:10 +0100 + +wmsun (1.03-5) unstable; urgency=low + + * Fixed handling of menu file (closes: #161745). + * Updated Debian standards version. + + -- Martin A. Godisch Sat, 21 Sep 2002 15:41:40 +0200 + +wmsun (1.03-4) unstable; urgency=low + + * Added symbolic links "wmsun -> wmSun" and "wmsun.1.gz -> wmSun.1.gz" + (closes: #149923). + * Added Spanish debconf translation. + Thanks to Ricardo Javier Cardenes . + * Added debian/watch. + + -- Martin A. Godisch Fri, 30 Aug 2002 18:49:06 +0200 + +wmsun (1.03-3) unstable; urgency=low + + * Moved files from /usr/X11R6 to /usr. + * Updated standards version. + + -- Martin A. Godisch Mon, 4 Mar 2002 02:15:09 +0100 + +wmsun (1.03-2) unstable; urgency=low + + * Fixed architecture in debian/control. + + -- Martin A. Godisch Sun, 3 Mar 2002 07:51:51 +0100 + +wmsun (1.03-1) unstable; urgency=low + + * Initial release (closes: #136355). + + -- Martin A. Godisch Fri, 1 Mar 2002 21:53:26 +0100 + --- wmsun-1.03.orig/debian/po/POTFILES.in +++ wmsun-1.03/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] templates --- wmsun-1.03.orig/debian/po/de.po +++ wmsun-1.03/debian/po/de.po @@ -0,0 +1,91 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: wmsun 1.03-8\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-03-08 16:37+0100\n" +"PO-Revision-Date: 2003-03-21 10:30+0100\n" +"Last-Translator: Martin A. Godisch \n" +"Language-Team: Martin A. Godisch \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=iso-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:3 +msgid "Please enter the latitude of the observer." +msgstr "Bitte geben Sie Ihren Breitengrad ein." + +#. Type: string +#. Description +#: ../templates:3 +msgid "" +"You have to enter your latitude for wmSun to work correctly. You may find it " +"out at http://www.calle.com/world/, positive is northern hemisphere, " +"negative is southern hemisphere. If you don't know your latitude at this " +"moment, leave the input field blank and run `dpkg-reconfigure wmsun' later." +msgstr "" +"Zur korrekten Funktion benötigt wmSun Ihren Breitengrad. Dieser läßt sich " +"unter http://www.calle.com/world/ herausfinden, positive Werte kennzeichnen " +"die nördliche Halbkugel, negative die südliche. Falls Sie Ihren Breitengrad " +"im Moment nicht kennen, lassen Sie dieses Eingabefeld leer und rufen Sie " +"später \"dpkg-reconfigure wmsun\" auf." + +#. Type: string +#. Description +#: ../templates:3 +msgid "" +"Note that this configuration applies only to the X menu system. If you call " +"wmSun from a terminal prompt you can supply the `-lat' option." +msgstr "" +"Beachten Sie, daß sich diese Konfiguration nur auf das X-Menüsystem bezieht. " +"Wenn Sie wmSun von der Kommandozeile aus aufrufen, sollten Sie die Option \"-" +"lat\" angeben." + +#. Type: string +#. Description +#: ../templates:16 +msgid "Please enter the longitude of the observer." +msgstr "Bitte geben Sie Ihren Längengrad ein." + +#. Type: string +#. Description +#: ../templates:16 +msgid "" +"You have to enter your longitude for wmSun to work correctly. You may find " +"it out at http://www.calle.com/world/. Greenwich is 0.0, and longitude " +"increases positively toward the west. Alternatively, negative numbers can " +"also be used to specify longitudes to the east of Greenwich. If you don't " +"know your longitude at this moment, leave the input field blank and run " +"`dpkg-reconfigure wmsun' later." +msgstr "" +"Zur korrekten Funktion benötigt wmSun Ihren Längengrad. Dieser läßt sich " +"unter http://www.calle.com/world/ herausfinden. 0.0 steht für Greenwich, die " +"Länge wird positiv nach Westen gezählt. Alternativ können auch negative " +"Werte für Längengrade östlich von Greenwich angegeben werden. Falls Sie " +"Ihren Längengrad im Moment nicht kennen, lassen Sie dieses Eingabefeld leer " +"und rufen Sie später \"dpkg-reconfigure wmsun\" auf." + +#. Type: string +#. Description +#: ../templates:16 +msgid "" +"Note that this configuration applies only to the X menu system. If you call " +"wmSun from a terminal prompt you can supply the `-lon' option." +msgstr "" +"Beachten Sie, daß sich diese Konfiguration nur auf das X-Menüsystem bezieht. " +"Wenn Sie wmSun von der Kommandozeile aus aufrufen, sollten Sie die Option \"-" +"lon\" angeben." --- wmsun-1.03.orig/debian/po/pt_BR.po +++ wmsun-1.03/debian/po/pt_BR.po @@ -0,0 +1,92 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: wmsun-1.03-8\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-03-08 16:37+0100\n" +"PO-Revision-Date: 2003-03-21 23:03-0300\n" +"Last-Translator: André Luís Lopes \n" +"Language-Team: Debian-BR Project \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:3 +msgid "Please enter the latitude of the observer." +msgstr "Por favor informe a latitude do observador." + +#. Type: string +#. Description +#: ../templates:3 +msgid "" +"You have to enter your latitude for wmSun to work correctly. You may find it " +"out at http://www.calle.com/world/, positive is northern hemisphere, " +"negative is southern hemisphere. If you don't know your latitude at this " +"moment, leave the input field blank and run `dpkg-reconfigure wmsun' later." +msgstr "" +"Você precisa informar sua latitude para que o wmSun funcione corretamente. É " +"possível encontrar sua latitude correta em http://www.calle.com/world/, " +"valores positivos são do hemisfério norte, negativos são do hemisfério sul. " +"Caso você não saiba sua latitude agora, deixe o campo em branco e execute o " +"comando `dpkg-reconfigure wmsum' posteriormente para definir esta opção." + +#. Type: string +#. Description +#: ../templates:3 +msgid "" +"Note that this configuration applies only to the X menu system. If you call " +"wmSun from a terminal prompt you can supply the `-lat' option." +msgstr "" +"Note que esta configuração se aplica somente ao sistema de menus do X. Caso " +"você execute o wmSun a partir de um terminal você ainda precisará fornecer a " +"opção `-lat'." + +#. Type: string +#. Description +#: ../templates:16 +msgid "Please enter the longitude of the observer." +msgstr "Por favor informe a longitude do observador." + +#. Type: string +#. Description +#: ../templates:16 +msgid "" +"You have to enter your longitude for wmSun to work correctly. You may find " +"it out at http://www.calle.com/world/. Greenwich is 0.0, and longitude " +"increases positively toward the west. Alternatively, negative numbers can " +"also be used to specify longitudes to the east of Greenwich. If you don't " +"know your longitude at this moment, leave the input field blank and run " +"`dpkg-reconfigure wmsun' later." +msgstr "" +"Você precisa informar sua lomgitude para que o wnSum funcione corretamente. " +"É possível encontrar sua longitude em http://www.calle.com/world/. Greenwich " +"é o meridiano 0.0 e a longitude aumenta positivamente em direção ao " +"ocidente. Alternativamente, números negativos podem também ser usados para " +"especificar longitudes para o leste de Greenwich. Caso você não saiba sua " +"longitude agora, deixe o campo em branco e execute o comando `dpkg-" +"reconfigure wmsun' posteriormente para definir esta opção." + +#. Type: string +#. Description +#: ../templates:16 +msgid "" +"Note that this configuration applies only to the X menu system. If you call " +"wmSun from a terminal prompt you can supply the `-lon' option." +msgstr "" +"Note que esta configuração se aplica somente ao sistema de menus do X. Caso " +"você execute o wmSun a partir de um terminal você ainda precisará fornecer a " +"opção `-lon'." --- wmsun-1.03.orig/debian/po/templates.pot +++ wmsun-1.03/debian/po/templates.pot @@ -0,0 +1,75 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-03-08 16:37+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:3 +msgid "Please enter the latitude of the observer." +msgstr "" + +#. Type: string +#. Description +#: ../templates:3 +msgid "" +"You have to enter your latitude for wmSun to work correctly. You may find it " +"out at http://www.calle.com/world/, positive is northern hemisphere, " +"negative is southern hemisphere. If you don't know your latitude at this " +"moment, leave the input field blank and run `dpkg-reconfigure wmsun' later." +msgstr "" + +#. Type: string +#. Description +#: ../templates:3 +msgid "" +"Note that this configuration applies only to the X menu system. If you call " +"wmSun from a terminal prompt you can supply the `-lat' option." +msgstr "" + +#. Type: string +#. Description +#: ../templates:16 +msgid "Please enter the longitude of the observer." +msgstr "" + +#. Type: string +#. Description +#: ../templates:16 +msgid "" +"You have to enter your longitude for wmSun to work correctly. You may find " +"it out at http://www.calle.com/world/. Greenwich is 0.0, and longitude " +"increases positively toward the west. Alternatively, negative numbers can " +"also be used to specify longitudes to the east of Greenwich. If you don't " +"know your longitude at this moment, leave the input field blank and run " +"`dpkg-reconfigure wmsun' later." +msgstr "" + +#. Type: string +#. Description +#: ../templates:16 +msgid "" +"Note that this configuration applies only to the X menu system. If you call " +"wmSun from a terminal prompt you can supply the `-lon' option." +msgstr "" --- wmsun-1.03.orig/debian/po/fr.po +++ wmsun-1.03/debian/po/fr.po @@ -0,0 +1,93 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: wmsun 1.03-9\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-03-08 16:37+0100\n" +"PO-Revision-Date: 2003-04-04 08:07-0100\n" +"Last-Translator: Christian Perrier \n" +"Language-Team: Debian french translation team \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=iso-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:3 +msgid "Please enter the latitude of the observer." +msgstr "Veuillez entrer la latitude de l'observateur." + +#. Type: string +#. Description +#: ../templates:3 +msgid "" +"You have to enter your latitude for wmSun to work correctly. You may find it " +"out at http://www.calle.com/world/, positive is northern hemisphere, " +"negative is southern hemisphere. If you don't know your latitude at this " +"moment, leave the input field blank and run `dpkg-reconfigure wmsun' later." +msgstr "" +"Vous devez indiquer la latitude du lieu où vous vous situez pour que wmSun " +"fonctionne correctement. Vous pouvez la trouver sur http://www.calle.com/" +"world/, les valeurs étant positives pour l'hémisphère nord et négatives pour " +"l'hémisphère sud. Si vous ne connaissez pas votre latitude maintenant, " +"laissez cette entrée vide et lancez « dpkg-reconfigure wmsun » plus tard." + +#. Type: string +#. Description +#: ../templates:3 +msgid "" +"Note that this configuration applies only to the X menu system. If you call " +"wmSun from a terminal prompt you can supply the `-lat' option." +msgstr "" +"Veuillez noter que cette option de configuration ne sera utilisée que par le " +"système de menus de X Window. Si vous démarrez wmSun depuis la ligne de " +"commande en mode terminal, vous pouvez utiliser l'option « -lat »." + +#. Type: string +#. Description +#: ../templates:16 +msgid "Please enter the longitude of the observer." +msgstr "Veuillez entrer la longitude de l'observateur." + +#. Type: string +#. Description +#: ../templates:16 +msgid "" +"You have to enter your longitude for wmSun to work correctly. You may find " +"it out at http://www.calle.com/world/. Greenwich is 0.0, and longitude " +"increases positively toward the west. Alternatively, negative numbers can " +"also be used to specify longitudes to the east of Greenwich. If you don't " +"know your longitude at this moment, leave the input field blank and run " +"`dpkg-reconfigure wmsun' later." +msgstr "" +"Vous devez indiquer la longitude du lieu où vous vous situez pour que wmSun " +"fonctionne correctement. Vous pouvez la trouver sur http://www.calle.com/" +"world/. Les lieux situés sur le méridien de Greenwich ont une longitude " +"égale à 0.0. Les valeurs augmentent en allant vers l'ouest. À l'opposé, des " +"nombres négatifs sont utilisés pour les lieux situés à l'est du méridien de " +"Greenwich. Si vous ne connaissez pas votre longitude maintenant, laissez " +"cette entrée vide et lancez « dpkg-reconfigure wmsun » plus tard." + +#. Type: string +#. Description +#: ../templates:16 +msgid "" +"Note that this configuration applies only to the X menu system. If you call " +"wmSun from a terminal prompt you can supply the `-lon' option." +msgstr "" +"Veuillez noter que cette option de configuration ne sera utilisée que par le " +"système de menus de X Window. Si vous démarrez wmSun depuis la ligne de " +"commande en mode terminal, vous pouvez utiliser l'option « -lon »." --- wmsun-1.03.orig/debian/po/es.po +++ wmsun-1.03/debian/po/es.po @@ -0,0 +1,91 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +# Carlos Alberto Martín Edo , 2003 +# +msgid "" +msgstr "" +"Project-Id-Version: wmsun 1.03-13\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-03-08 16:37+0100\n" +"PO-Revision-Date: 2003-07-13 12:27+0200\n" +"Last-Translator: Carlos Alberto Martín Edo \n" +"Language-Team: Debian L10n Spanish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:3 +msgid "Please enter the latitude of the observer." +msgstr "Por favor, introduzca la latitud del observador." + +#. Type: string +#. Description +#: ../templates:3 +msgid "" +"You have to enter your latitude for wmSun to work correctly. You may find it " +"out at http://www.calle.com/world/, positive is northern hemisphere, " +"negative is southern hemisphere. If you don't know your latitude at this " +"moment, leave the input field blank and run `dpkg-reconfigure wmsun' later." +msgstr "" +"Tiene que introducir su latitud para que wmSun funcione correctamente. Puede " +"encontrar ese dato en http://www.calle.com/world/. Una latitud positiva " +"indica hemisferio norte y negativa hemisferio sur. Si en estos momentos " +"desconoce su latitud, deje vacío el campo y ejecute `dpkg-reconfigure wmsun' " +"más tarde." + +#. Type: string +#. Description +#: ../templates:3 +msgid "" +"Note that this configuration applies only to the X menu system. If you call " +"wmSun from a terminal prompt you can supply the `-lat' option." +msgstr "" +"Nótese que esta configuración se aplica únicamente al sistema de menús de X. " +"Si ejecuta wmSun desde un terminal puede utilizar las opciones `-lat'." + +#. Type: string +#. Description +#: ../templates:16 +msgid "Please enter the longitude of the observer." +msgstr "Por favor, introduzca la longitud del observador." + +#. Type: string +#. Description +#: ../templates:16 +msgid "" +"You have to enter your longitude for wmSun to work correctly. You may find " +"it out at http://www.calle.com/world/. Greenwich is 0.0, and longitude " +"increases positively toward the west. Alternatively, negative numbers can " +"also be used to specify longitudes to the east of Greenwich. If you don't " +"know your longitude at this moment, leave the input field blank and run " +"`dpkg-reconfigure wmsun' later." +msgstr "" +"Debe introducir su longitud para que wmSun funcione correctamente. Puede " +"encontrar ese dato en http://www.calle.com/world/. La longitud de Greenwich " +"es 0 y va aumentando hacia el oeste. Por otra parte, se pueden utilizar " +"números negativos para especificar longitudes este respecto a Greenwich. Si " +"ignora en estos momentos su longitud, deje vacío el campo y ejecute `dpkg-" +"reconfigure wmsun' más tarde." + +#. Type: string +#. Description +#: ../templates:16 +msgid "" +"Note that this configuration applies only to the X menu system. If you call " +"wmSun from a terminal prompt you can supply the `-lon' option." +msgstr "" +"Nótese que esta configuración se aplica únicamente al sistema de menús de X. " +"Si ejecuta wmSun desde un terminal puede utilizar las opciones '-lon'." --- wmsun-1.03.orig/debian/po/ja.po +++ wmsun-1.03/debian/po/ja.po @@ -0,0 +1,88 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +# +msgid "" +msgstr "" +"Project-Id-Version: wmsun 1.03-14\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-03-08 16:37+0100\n" +"PO-Revision-Date: 2004-02-29 16:04+0900\n" +"Last-Translator: Hideki Yamane \n" +"Language-Team: Japanese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=EUC-JP\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:3 +msgid "Please enter the latitude of the observer." +msgstr "ÍøÍѼԤΰÞÅÙ¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£" + +#. Type: string +#. Description +#: ../templates:3 +msgid "" +"You have to enter your latitude for wmSun to work correctly. You may find it " +"out at http://www.calle.com/world/, positive is northern hemisphere, " +"negative is southern hemisphere. If you don't know your latitude at this " +"moment, leave the input field blank and run `dpkg-reconfigure wmsun' later." +msgstr "" +"wmSun ¤¬Àµ¤·¤¯Æ°ºî¤¹¤ë°Ù¤Ë¤¢¤Ê¤¿¤Îµï¾ì½ê¤Î°ÞÅÙ¤òÆþÎϤ¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¤³¤ì" +"¤Ï http://www.calle.com/world/ ¤ÇÄ´¤Ù¤é¤ì¤Þ¤¹¤¬¡¢ËÌȾµå¤Ç¤ÏÀµ¤Î¿ô¡¢ÆîȾµå¤Ç¤Ï" +"Éé¤Î¿ô¤Ç¤¹¡£º£¤¹¤°¤Ë°ÞÅÙ¤¬¤ï¤«¤é¤Ê¤¤¾ì¹ç¡¢¤³¤ÎÍó¤ò¶õÇò¤Î¤Þ¤Þ¤Ë¤·¤Æ¸å¤Û¤É " +"`dpkg-reconfigure wmsun' ¤È¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤¡£" + +#. Type: string +#. Description +#: ../templates:3 +msgid "" +"Note that this configuration applies only to the X menu system. If you call " +"wmSun from a terminal prompt you can supply the `-lat' option." +msgstr "" +"¤³¤ÎÀßÄê¤Ï X ¥á¥Ë¥å¡¼¥·¥¹¥Æ¥à¤Ë¤Î¤ßŬÍѤµ¤ì¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¥¿¡¼¥ß¥Ê" +"¥ë¤«¤é wmSun ¤òµ¯Æ°¤¹¤ë¾ì¹ç¤Ï `-lat' ¥ª¥×¥·¥ç¥ó¤òÉÕ¤±¤ÆÃͤò»ØÄê¤Ç¤­¤Þ¤¹¡£" + +#. Type: string +#. Description +#: ../templates:16 +msgid "Please enter the longitude of the observer." +msgstr "ÍøÍѼԤηÐÅÙ¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£" + +#. Type: string +#. Description +#: ../templates:16 +msgid "" +"You have to enter your longitude for wmSun to work correctly. You may find " +"it out at http://www.calle.com/world/. Greenwich is 0.0, and longitude " +"increases positively toward the west. Alternatively, negative numbers can " +"also be used to specify longitudes to the east of Greenwich. If you don't " +"know your longitude at this moment, leave the input field blank and run " +"`dpkg-reconfigure wmsun' later." +msgstr "" +"wmSun ¤¬Àµ¤·¤¯Æ°ºî¤¹¤ë°Ù¤Ë¤¢¤Ê¤¿¤Îµï¾ì½ê¤Î·ÐÅÙ¤òÆþÎϤ¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¤³¤ì" +"¤Ï http://www.calle.com/world/ ¤ÇÄ´¤Ù¤é¤ì¤Þ¤¹¡£¥°¥ê¥Ë¥Ã¥¸¤¬ 0.0 ¤Ç¡¢À¾¤Ë¹Ô¤¯" +"¤Ë½¾¤Ã¤Æ·ÐÅÙ¤ÏÁý¤¨¤Æ¤¤¤­¤Þ¤¹¡£È¿ÂФˡ¢¥°¥ê¥Ë¥Ã¥¸¤ÎÅì¤Î·ÐÅÙ¤ò»ØÄꤹ¤ë°Ù¤Ë¤ÏÉé" +"¤Î¿ô¤ò»ÈÍѤǤ­¤Þ¤¹¡£º£¤¹¤°¤Ë·ÐÅÙ¤¬¤ï¤«¤é¤Ê¤¤¾ì¹ç¡¢¤³¤ÎÍó¤ò¶õÇò¤Î¤Þ¤Þ¤Ë¤·¤Æ¸å" +"¤Û¤É `dpkg-reconfigure wmsun' ¤È¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤¡£" + +#. Type: string +#. Description +#: ../templates:16 +msgid "" +"Note that this configuration applies only to the X menu system. If you call " +"wmSun from a terminal prompt you can supply the `-lon' option." +msgstr "" +"¤³¤ÎÀßÄê¤Ï X ¥á¥Ë¥å¡¼¥·¥¹¥Æ¥à¤Ë¤Î¤ßŬÍѤµ¤ì¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¥¿¡¼¥ß¥Ê" +"¥ë¤«¤é wmSun ¤òµ¯Æ°¤¹¤ë¾ì¹ç¤Ï `-lon' ¥ª¥×¥·¥ç¥ó¤òÉÕ¤±¤ÆÃͤò»ØÄê¤Ç¤­¤Þ¤¹¡£" --- wmsun-1.03.orig/debian/control +++ wmsun-1.03/debian/control @@ -0,0 +1,19 @@ +Source: wmsun +Section: x11 +Priority: optional +Maintainer: Martin A. Godisch +Build-Depends: xlibs-dev, po-debconf +Standards-Version: 3.6.1 + +Package: wmsun +Architecture: any +Depends: ${shlibs:Depends} +Recommends: debconf (>= 0.5) | debconf-2.0, ucf (>= 0.30) +Conflicts: ucf (<< 0.30) +Suggests: wmmoonclock, wmaker | afterstep +Description: Dockable WindowMaker SunRise/SunSet App + wmSun displays the current day's Sun Rise and Set Times. You have to + enter your Latitude and Longitude for it to work correctly. wmSun is + designed to work with the WindowMaker dock, but will work with other + window managers as well. wmSun's upstream homepage can be found at + http://nis-www.lanl.gov/~mgh/WindowMaker/DockApps.shtml. --- wmsun-1.03.orig/debian/copyright +++ wmsun-1.03/debian/copyright @@ -0,0 +1,22 @@ +This package was debianized by Martin A. Godisch . +It was downloaded from +http://nis-www.lanl.gov/~mgh/WindowMaker/DockApps.shtml + +Copyright (c) Michael G. Henderson + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the + Free Software Foundation; either version 2 of the License, or (at your + option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + +On Debian GNU/Linux systems, the complete text of the GNU General Public +License can be found in /usr/share/common-licenses/GPL. --- wmsun-1.03.orig/debian/menu +++ wmsun-1.03/debian/menu @@ -0,0 +1,2 @@ +?package(wmsun):needs="X11" section="Apps/Tools" \ + title="wmSun" command="/usr/bin/wmSun" --- wmsun-1.03.orig/debian/config +++ wmsun-1.03/debian/config @@ -0,0 +1,26 @@ +#!/bin/sh + +set -e + +[ -x /usr/bin/ucf ] || exit 0 + +. /usr/share/debconf/confmodule +db_version 2.0 + +db_get wmsun/latitude +if [ -z "$RET" ] && db_get wmmoonclock/latitude; then + db_set wmsun/latitude "$RET" +fi +db_get wmsun/longitude +if [ -z "$RET" ] && db_get wmmoonclock/longitude; then + db_set wmsun/longitude "$RET" +fi + +db_beginblock +db_input medium wmsun/latitude || true +db_input medium wmsun/longitude || true +db_endblock +db_go || true + +db_stop +exit 0 --- wmsun-1.03.orig/debian/postinst +++ wmsun-1.03/debian/postinst @@ -0,0 +1,36 @@ +#!/bin/sh + +set -e + +[ "$1" = configure ] || exit 0 + +if [ -e /usr/share/debconf/confmodule -a -x /usr/bin/ucf ]; then + . /usr/share/debconf/confmodule + + args="" + umask 022 + + db_get wmsun/latitude + if [ "$RET" ]; then + args="$args -lat $RET" + fi + + db_get wmsun/longitude + if [ "$RET" ]; then + args="$args -lon $RET" + fi + + echo "?package(wmsun):needs=\"X11\" section=\"Apps/Tools\" \\" > /etc/menu/wmsun.new && \ + echo " title=\"wmSun\" command=\"/usr/bin/wmSun $args\"" >> /etc/menu/wmsun.new + + ucf --debconf-ok /etc/menu/wmsun.new /etc/menu/wmsun + rm -f /etc/menu/wmsun.new + + db_stop +fi + +if [ -x /usr/bin/update-menus ]; then + update-menus +fi + +exit 0 --- wmsun-1.03.orig/debian/postrm +++ wmsun-1.03/debian/postrm @@ -0,0 +1,21 @@ +#!/bin/sh + +set -e + +if [ "$1" = purge ]; then + if [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge + db_stop + fi + if [ -x /usr/bin/ucf ]; then + ucf --purge /etc/menu/wmsun + fi + rm -f /etc/menu/wmsun /etc/menu/wmsun.* +fi + +if [ -x /usr/bin/update-menus ]; then + update-menus +fi + +exit 0 --- wmsun-1.03.orig/debian/rules +++ wmsun-1.03/debian/rules @@ -0,0 +1,65 @@ +#!/usr/bin/make -f + +BUILDDIR = debian/wmsun +DEBDIR = $(BUILDDIR)/DEBIAN +DOCDIR = $(BUILDDIR)/usr/share/doc/wmsun +testdir = test -f wmSun/wmSun.c -a -f debian/rules +testroot = test x`whoami` = xroot + +CFLAGS = -Wall -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +export CFLAGS + +clean: + $(testdir) + -rm -f build debian/files debian/substvars + -$(MAKE) -C wmSun clean + -rm -rf debian/wmsun + +build: + $(testdir) + $(MAKE) -C wmSun + touch build + +binary: binary-arch + +binary-indep: + +binary-arch: build + $(testdir) + $(testroot) + rm -rf debian/wmsun + + $(MAKE) -C wmSun install DESTDIR=$(CURDIR)/debian/wmsun +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + strip -R .comment -R .note $(BUILDDIR)/usr/bin/wmSun +endif + gzip -9 $(BUILDDIR)/usr/share/man/man1/wmSun.1 + ln -s wmSun $(BUILDDIR)/usr/bin/wmsun + ln -s wmSun.1.gz $(BUILDDIR)/usr/share/man/man1/wmsun.1.gz + install -D -m 0644 debian/menu $(BUILDDIR)/usr/lib/menu/wmsun + install -d -m 0755 $(BUILDDIR)/etc/menu + + install -D -m 0644 debian/changelog $(DOCDIR)/changelog.Debian + install -D -m 0644 debian/changelog.upstream $(DOCDIR)/changelog + install -m 0644 TODO debian/copyright $(DOCDIR) + gzip -9 $(DOCDIR)/changelog* + + install -d -m 0755 $(DEBDIR) + install -m 0644 debian/control $(DEBDIR) + install -m 0755 debian/config debian/postinst debian/postrm $(DEBDIR) + cd $(BUILDDIR) && find usr -type f -print0 | xargs -0 md5sum | tee DEBIAN/md5sums + po2debconf debian/templates > $(DEBDIR)/templates + chmod 0644 $(DEBDIR)/md5sums $(DEBDIR)/templates + + dpkg-shlibdeps $(BUILDDIR)/usr/bin/wmSun + dpkg-gencontrol -isp -pwmsun -P$(BUILDDIR) + chown -R root:root $(BUILDDIR) + chmod -R go=u-w $(BUILDDIR) + dpkg --build $(BUILDDIR) .. + +.PHONY: clean binary-indep binary-arch binary --- wmsun-1.03.orig/debian/templates +++ wmsun-1.03/debian/templates @@ -0,0 +1,26 @@ +Template: wmsun/latitude +Type: string +_Description: Please enter the latitude of the observer. + You have to enter your latitude for wmSun to work correctly. + You may find it out at http://www.calle.com/world/, positive is + northern hemisphere, negative is southern hemisphere. If you don't + know your latitude at this moment, leave the input field blank and + run `dpkg-reconfigure wmsun' later. + . + Note that this configuration applies only to the X menu system. + If you call wmSun from a terminal prompt you can supply the + `-lat' option. + +Template: wmsun/longitude +Type: string +_Description: Please enter the longitude of the observer. + You have to enter your longitude for wmSun to work correctly. + You may find it out at http://www.calle.com/world/. Greenwich is 0.0, + and longitude increases positively toward the west. Alternatively, + negative numbers can also be used to specify longitudes to the east + of Greenwich. If you don't know your longitude at this moment, leave + the input field blank and run `dpkg-reconfigure wmsun' later. + . + Note that this configuration applies only to the X menu system. + If you call wmSun from a terminal prompt you can supply the + `-lon' option. --- wmsun-1.03.orig/debian/watch +++ wmsun-1.03/debian/watch @@ -0,0 +1 @@ +http://nis-www.lanl.gov /~mgh/WindowMaker/ wmSun-(.*)\\.tar\\.gz debian --- wmsun-1.03.orig/debian/changelog.upstream +++ wmsun-1.03/debian/changelog.upstream @@ -0,0 +1,63 @@ +/* + * + * wmSun-1.03 (C) 1999 Mike Henderson (mghenderson@lanl.gov) + * + * - Shows Sun Rise/Set Times.... + * + * + * + * + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program (see the file COPYING); if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA + * + * Things TODO: + * - clean up code! + * - support for 8-bit displays. + * - more detailed documentation. + * - eclipses? + * - add buttons to play will date and lat lon... + * Could be something like this; + * First click brings up buttons to change date. + * Second click brings up buttons to change lat/lon. + * Third goes back to display + * Set time delay to go back to display if user doesnt do it... + * + * + * + * + * + * Changes: + * + * Version 1.03 - released February 4, 1999. + * cosmetic for AfterStep users. removed spurious black line at RHS edge an mask. + * + * + * Version 1.02 - released January 12, 1999. + * Added support for User-specified date and Time difference so that + * you can have the display be correct in local time even for remote + * lat/lons. (I am in Hawaii right now. I dont want to reset the time on + * my laptop, so with these new options I can still get the correct + * local times of rise/set. Sunset is awesome here in Kona!!! And the calcs + * seem to be quite good -- it's a good test here because the Sun sets over + * the Pacific (no mountains are in the way)). + * + * Version 1.01 - released January 6, 1999. + * Fixed stupid bug in Date change montior. + * + * Version 1.0 - released January 5, 1999. + * + * + */