--- gpstrans-0.41.orig/Makefile +++ gpstrans-0.41/Makefile @@ -20,7 +20,7 @@ @(cd src/getline ; make clean) install: - @strip src/gpstrans +# @strip src/gpstrans @cp src/gpstrans debian/gpstrans/usr/bin/gpstrans # @gzip -9 doc/gpstrans.1 > /usr/share/man/man1/gpstrans.1.gz @echo "Installation complete!" --- gpstrans-0.41.orig/debian/copyright +++ gpstrans-0.41/debian/copyright @@ -0,0 +1,38 @@ +This package was debianized by James R. Van Zandt on +Sat, 5 Jan 2002 19:54:54 -0500. + +Current upstream maintainer: + "Jim Van Zandt" +Previous contributors: + Joao Seabra - CT2GNL + Matthias Kattanek + "Andreas Lange" + "Anders Lennartsson" + "Jim Van Zandt" +Original Author: + Carsten tschach (tschach@zedat.fu-berlin.de) + +Copyright: + +GPStrans Licensing Information +------------------------------ + +GPStrans is FreeWare. I'm releasing this source code to the public domain. +You can redistribute it as often as you want as long as you let the original +copyright notice in. If you like to do changes to GPStrans, please contact +me before so that we can coordinate the work. + +GPStrans is Copyright 1995 by Carsten tschach (tschach@zedat.fu-berlin.de). +The datum translation-routines are based on the program MacGPS from John F. +Waers (jfwaers@csn.net). + +Linux/KKJ modifications Copyright 1996 by Janne Sinkkonen (janne@iki.fi). + +Modifications to read many more Garmin formats Copyright 2005 by Jim +Van Zandt , and can be redistributed or modified 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. + +On Debian GNU/Linux systems, the complete text of the GNU Public +License can be found in `/usr/share/common-licenses/'. --- gpstrans-0.41.orig/debian/dirs +++ gpstrans-0.41/debian/dirs @@ -0,0 +1 @@ +usr/bin --- gpstrans-0.41.orig/debian/changelog +++ gpstrans-0.41/debian/changelog @@ -0,0 +1,250 @@ +gpstrans (0.41-3) unstable; urgency=low + + * debian/control: bump debian policy number to 3.8.4 (no changes + needed). Add dependency "${misc:Depends}". + + -- James R. Van Zandt Sun, 07 Feb 2010 10:29:42 -0500 + +gpstrans (0.41-2.1) unstable; urgency=low + + * Non-maintainer upload. + * Changed getline() in my_getline() to avoid eglibc colliding names in getline.c. + (closes: #552864) + + -- Francesco Paolo Lovergine Wed, 27 Jan 2010 17:18:46 +0100 + +gpstrans (0.41-2) unstable; urgency=low + + * suggest setserial (thanks to Joerg Schuetter , + closes:Bug#513137) + + * debian/copyright: mention that GPL can be found in + /usr/share/common-licenses, to silence lintian complaint. + + -- James R. Van Zandt Sat, 14 Feb 2009 10:08:23 -0500 + +gpstrans (0.41-1) unstable; urgency=low + + * New upstream release: incorporates fix for segfault identified by + Robie Basak (#399828) + * debian/watch: delete, since I am the upstream maintainer (closes:Bug#449884) + * debian/dirs: don't include usr/sbin + * debian/rules: obey DEBIAN_BUILD_OPTIONS "nostrip" flag + * debian/control: bump debian policy number to 3.8.0 + + -- James R. Van Zandt Wed, 16 Jul 2008 20:09:58 -0400 + +gpstrans (0.40-3.1) unstable; urgency=low + + * Non-maintainer upload to fix RC bug. + * Fix segfault using patch from Robie Basak (Closes: #399828). + + -- Petter Reinholdtsen Sun, 30 Mar 2008 23:38:02 +0200 + +gpstrans (0.40-3) unstable; urgency=low + + * don't always strip the binary (closes:Bug#437077) + * don't ignore failures in "make clean" (silence lintian warning) + * bump standards level to 3.7.2 (no changes needed) + + -- James R. Van Zandt Fri, 10 Aug 2007 21:50:08 -0400 + +gpstrans (0.40-2) unstable; urgency=low + + * debian/rules: #define POSIX and unix, for compilation of getline on + alpha, mips, and mipsel. + * debian/foo: delete extraneous file. + + -- James R. Van Zandt Tue, 9 May 2006 21:21:19 -0400 + +gpstrans (0.40-1) unstable; urgency=low + + * New upstream release: understands most (all?) Garmin formats + (Closes:#256253), exit with nonzero status if GPS doesn't respond + (Closes:#218137) + * debian/rules: don't make /usr/doc symlink (Closes: #359413), advance + to debhelper version 5. Use Debian advised CFLAGS. + * debian/control: Depend on debhelper 5. Policy version 3.6.2. + + -- James R. Van Zandt Mon, 8 May 2006 21:11:15 -0400 + +gpstrans (0.39-3) unstable; urgency=low + + * omit old README.debian file + + -- James R. Van Zandt Sat, 16 Nov 2002 16:45:37 -0500 + +gpstrans (0.39-2) unstable; urgency=low + + * debian/: remove *.ex files + * src/grid/utm.c: sign error in northing calculation (thanks to James + Cameron , closes:Bug#140786) + + -- James R. Van Zandt Fri, 12 Apr 2002 20:45:10 -0400 + +gpstrans (0.39-1) unstable; urgency=low + + * new upstream version + * convert to debhelper + * add menu entry + + -- James R. Van Zandt Sat, 5 Jan 2002 19:54:54 -0500 + +gpstrans (0.38-5) unstable; urgency=low + + * debian/control: spelling fix (Closes:Bug#124698) + + -- James R. Van Zandt Fri, 21 Dec 2001 20:00:15 -0500 + +gpstrans (0.38-4) unstable; urgency=low + + * remove build-depend on cpp-2.95 since gcc depends on it + (closes:bug#107649,bug#108082) + + -- James R. Van Zandt Thu, 9 Aug 2001 22:19:04 -0400 + +gpstrans (0.38-3) unstable; urgency=low + + * build-depends on cpp rather than cpp-2.95 (closes:bug#107649) + + -- James R. Van Zandt Sun, 5 Aug 2001 18:04:11 -0400 + +gpstrans (0.38-2) unstable; urgency=low + + * doc/gpstrans.1 document -z option (Closes:bug#106080) + * fix spelling of "transferred" four places (Closes:bug#106085) + * more build-dependencies + * new maintainer email + + -- James R. Van Zandt Sat, 21 Jul 2001 15:57:31 -0400 + +gpstrans (0.38-1) unstable; urgency=low + + * new upstream version + * debian/copyright: new upstream maintainer, new home site + * debian/watch: point to new upstream home http://www.aac.uc.pt/~seabra/ + * debian/control: move Build-Depends line to source section, policy + version 3.5.2 + * src/prefs.c: change default model to 'n' (i.e. not etrex or similar) + to match previous releases. + * debian/rules: honor DEB_BUILD_OPTIONS + + -- James R. Van Zandt Sat, 7 Apr 2001 09:36:52 -0400 + +gpstrans (0.34-8) unstable; urgency=low + + * build-depends on debmake + + -- James R. Van Zandt Sun, 3 Sep 2000 11:51:59 -0400 + +gpstrans (0.34-7) unstable; urgency=low + + * gps/getgpsinfo.c: quote pi to only 16 digits (the next 4 were + incorrect anyway :-) + + -- James R. Van Zandt Tue, 2 Nov 1999 21:26:00 -0500 + +gpstrans (0.34-6) unstable; urgency=low + + * Add /usr/doc/gpstrans symlink. + + -- James R. Van Zandt Tue, 14 Sep 1999 21:43:29 -0400 + +gpstrans (0.34-5) unstable; urgency=low + + * link against glibc2.1 + * update to FHS + + -- James R. Van Zandt Thu, 2 Sep 1999 19:40:38 -0400 + +gpstrans (0.34-4) unstable; urgency=low + + * include -DPOSIX in CFLAGS, as required by alpha (at least) (Bug#39293) + + -- James R. Van Zandt Thu, 17 Jun 1999 21:18:54 -0400 + +gpstrans (0.34-3) unstable; urgency=low + + * Default port is now /dev/ttyS1 instead of /dev/cua1 (bug#27147) + + -- James R. Van Zandt Mon, 21 Dec 1998 21:36:26 -0500 + +gpstrans (0.34-2) unstable; urgency=low + + * Fixed name in man page: "Mayco" -> "Mayko" + + -- James R. Van Zandt Mon, 17 Aug 1998 15:36:51 -0400 + +gpstrans (0.34-1) unstable; urgency=low + + * New upstream release + + -- James R. Van Zandt Sun, 16 Aug 1998 17:37:38 -0400 + +gpstrans (0.33-mk-1) unstable; urgency=low + + * Initial Release. Former Debian patches have been incorporated into + the upstream sources. + + -- James R. Van Zandt Fri, 7 Aug 1998 19:37:56 -0400 + +gpstrans (0.32-1) unstable; urgency=low + + * new upstream maintainer: Matthias Kattanek , + new upstream version. + + -- James R. Van Zandt Sun, 28 Jun 1998 13:34:19 -0400 + +gpstrans (0.31b-5) frozen unstable; urgency=low + + * Increased maximum record length read from device, to suit Garmin 90 + (bug reported by Klaus Wacker ) + + * Maximum length line read from data file now limited to size of + available buffer. + * Updated policy version. + + -- James R. Van Zandt Sun, 5 Apr 1998 18:41:12 -0400 + +gpstrans (0.31b-4) unstable; urgency=low + + * remove acronym from short description, reword long description in + control file and manual page + + -- James R. Van Zandt Sun, 15 Feb 1998 21:32:39 -0500 + +gpstrans (0.31b-3) unstable; urgency=low + + * eliminate extra files in debian directory + * update policy version + * change priority to "extra" since having a Garmin GPS is a "specialized + requirement" + + -- James R. Van Zandt Wed, 11 Feb 1998 19:12:14 -0500 + +gpstrans (0.31b-2) unstable; urgency=low + + * link against libc6 + * eliminate extraneous hunks in .diff file (#11265) + + -- James R. Van Zandt Sat, 2 Aug 1997 12:12:17 -0400 + +gpstrans (0.31b-1) unstable; urgency=low + + * ascii/gps/garminserial.c: setting CLOCAL, so /dev/ttyS? works + (formerly, only /dev/cua? worked) + * ascii/main.c: Modified byte order conversions to work correctly on + either big endian or little endian machine. + * The format for a time should be 0. + * fix some English spelling and usage errors. + * latlong.c: Under Linux, PI is alreading #defined in math.h. + * gpstrans.1: Added circuit diagram, added highlighting, noted that + -s saves the values in ~/.gpstrans. + * Not including getline.3 man page in the binary package, since no + library is included + * Initial Release. + + -- James R. Van Zandt Wed, 9 Apr 1997 20:24:01 -0400 + + + --- gpstrans-0.41.orig/debian/control +++ gpstrans-0.41/debian/control @@ -0,0 +1,15 @@ +Source: gpstrans +Section: misc +Priority: extra +Maintainer: James R. Van Zandt +Build-Depends: debhelper (>> 5.0) +Standards-Version: 3.8.4 + +Package: gpstrans +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: setserial +Description: communicate with a Garmin Global Positioning System receiver + GPStrans allows a user with a Garmin GPS receiver to upload and + download waypoints, routes, almanac (satellite orbit elements), and + track routes. --- gpstrans-0.41.orig/debian/rules +++ gpstrans-0.41/debian/rules @@ -0,0 +1,98 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +CFLAGS = -Wall -g -DPOSIX -Dunix + +INSTALL = install +INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644 +INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755 +INSTALL_SCRIPT = $(INSTALL) -p -o root -g root -m 755 +INSTALL_DIR = $(INSTALL) -p -d -o root -g root -m 755 + +ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif +# gpstrans build time is short ehough that parallel builds are not worth while +# ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) +# NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) +# MAKEFLAGS += -j$(NUMJOBS) +# endif + + +configure: configure-stamp +configure-stamp: + dh_testdir + + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + + $(MAKE) CFLAGS="$(CFLAGS)" + + 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 + + $(INSTALL_PROGRAM) src/gpstrans $(CURDIR)/debian/gpstrans/usr/bin/gpstrans + + +# 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_installdebconf + dh_installdocs + dh_installexamples +# dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit + dh_installcron + dh_installman doc/gpstrans.1 +# dh_installinfo +# dh_undocumented + dh_installchangelogs ChangeLog + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- gpstrans-0.41.orig/debian/README.Debian +++ gpstrans-0.41/debian/README.Debian @@ -0,0 +1,19 @@ +gpstrans for DEBIAN +---------------------- + +Joao Seabra - CT2GNL has taken over upstream +maintenance. + +Matthias Kattanek , the previous upstream +maintainer, added the capability to write files that can be read by +Mayko mXmap (see www.mayko.com/mxmap) and replayed with the "Track +from log" feature. This application is not at present available as a +Debian package, and since the source code is not free, it cannot be +part of the main distribution at any rate. + +Matthias shipped only the ascii version of gpstrans, but I have not +been including the X windows version in the Debian package anyway. At +present, the x11 version seems to have no functions that exploit the +GUI. (Display and editing functions were planned.) + + -- James R. Van Zandt , Sat, 5 Jan 2002 19:54:54 -0500 --- gpstrans-0.41.orig/debian/Makefile.patch +++ gpstrans-0.41/debian/Makefile.patch @@ -0,0 +1,11 @@ +--- gpstrans-0.41.orig/Makefile ++++ gpstrans-0.41/Makefile +@@ -20,7 +20,7 @@ + @(cd src/getline ; make clean) + + install: +- @strip src/gpstrans ++# @strip src/gpstrans + @cp src/gpstrans debian/gpstrans/usr/bin/gpstrans + # @gzip -9 doc/gpstrans.1 > /usr/share/man/man1/gpstrans.1.gz + @echo "Installation complete!" --- gpstrans-0.41.orig/debian/compat +++ gpstrans-0.41/debian/compat @@ -0,0 +1 @@ +5 --- gpstrans-0.41.orig/debian/docs +++ gpstrans-0.41/debian/docs @@ -0,0 +1,3 @@ +README +README.mxmap +TODO --- gpstrans-0.41.orig/src/prefs.c +++ gpstrans-0.41/src/prefs.c @@ -268,7 +268,7 @@ do { - p = getline ("Please select datum: "); + p = my_getline ("Please select datum: "); sscanf (p, "%d", &value); printf ("\n"); } @@ -288,7 +288,7 @@ do { - p = getline ("Please select format: "); + p = my_getline ("Please select format: "); sscanf (p, "%d", &value); printf ("\n"); } @@ -298,7 +298,7 @@ printf ("\n"); do { - p = getline ("Please select time offset (-12 to +12): "); + p = my_getline ("Please select time offset (-12 to +12): "); sscanf (p, "%f", &floatval); printf ("\n"); } @@ -308,7 +308,7 @@ printf ("\n"); do { - p = getline ("Please enter serial device name: "); + p = my_getline ("Please enter serial device name: "); sprintf (gPrefs.Device, "%s", p); printf ("\n"); } @@ -317,7 +317,7 @@ printf ("\n"); do { - p = getline ("Is your model etrex (or other similar model) (y/n)?"); + p = my_getline ("Is your model etrex (or other similar model) (y/n)?"); /* Add support to several models.Thats why we put the y as char */ /* In practical terms,answer means BYTE not model. */ --- gpstrans-0.41.orig/src/getline/getline.c +++ gpstrans-0.41/src/getline/getline.c @@ -37,7 +37,7 @@ /********************* exported interface ********************************/ -char *getline (); /* read a line of input */ +char *my_getline (); /* read a line of input */ void gl_setwidth (); /* specify width of screen */ void gl_histadd (); /* adds entries to hist */ void gl_strwidth (); /* to bind gl_strlen */ @@ -392,7 +392,7 @@ hist_init (); } if (isatty (0) == 0 || isatty (1) == 0) - gl_error ("\n*** Error: getline(): not interactive, use stdio.\n"); + gl_error ("\n*** Error: my_getline(): not interactive, use stdio.\n"); gl_char_init (); gl_init_done = 1; } @@ -422,7 +422,7 @@ } char * -getline (prompt) +my_getline (prompt) char *prompt; { int c, loc, tmp; @@ -634,7 +634,7 @@ int i; if (gl_cnt >= BUF_SIZE - 1) - gl_error ("\n*** Error: getline(): input buffer overflow\n"); + gl_error ("\n*** Error: my_getline(): input buffer overflow\n"); if (gl_overwrite == 0 || gl_pos == gl_cnt) { for (i = gl_cnt; i >= gl_pos; i--) @@ -662,7 +662,7 @@ if (gl_overwrite == 0) { if (gl_cnt + len >= BUF_SIZE - 1) - gl_error ("\n*** Error: getline(): input buffer overflow\n"); + gl_error ("\n*** Error: my_getline(): input buffer overflow\n"); for (i = gl_cnt; i >= gl_pos; i--) gl_buf[i + len] = gl_buf[i]; for (i = 0; i < len; i++) @@ -674,7 +674,7 @@ if (gl_pos + len > gl_cnt) { if (gl_pos + len >= BUF_SIZE - 1) - gl_error ("\n*** Error: getline(): input buffer overflow\n"); + gl_error ("\n*** Error: my_getline(): input buffer overflow\n"); gl_buf[gl_pos + len] = 0; } for (i = 0; i < len; i++) @@ -717,7 +717,7 @@ int loc = gl_width - 5; /* shifts line back to start position */ if (gl_cnt >= BUF_SIZE - 1) - gl_error ("\n*** Error: getline(): input buffer overflow\n"); + gl_error ("\n*** Error: my_getline(): input buffer overflow\n"); if (gl_out_hook) { change = gl_out_hook (gl_buf); @@ -1025,7 +1025,7 @@ char *p = buf; int len; - /* in case we call gl_histadd() before we call getline() */ + /* in case we call gl_histadd() before we call my_getline() */ if (gl_init_done < 0) { /* -1 only on startup */ hist_init (); @@ -1316,7 +1316,7 @@ char *p; echo = (1 == 0); - p = getline (prompt); + p = my_getline (prompt); echo = (1 == 1); return p; --- gpstrans-0.41.orig/src/getline/getline.h +++ gpstrans-0.41/src/getline/getline.h @@ -10,7 +10,7 @@ typedef size_t (*gl_strwidth_proc) (char *); -char *getline (char *); /* read a line of input */ +char *my_getline (char *); /* read a line of input */ char *getlinenoecho (char *); /* read a line of input */ void gl_setwidth (int); /* specify width of screen */ void gl_histadd (char *); /* adds entries to hist */ @@ -22,7 +22,7 @@ #else /* not __STDC__ */ -char *getline (); +char *my_getline (); char *getlinenoecho (); void gl_setwidth (); void gl_histadd ();