[hamradio-commits] [gcb] 02/02: Imported Debian patch 1:1.07-3

Iain Learmonth irl-guest at moszumanska.debian.org
Wed Aug 12 17:29:34 UTC 2015


This is an automated email from the git hooks/post-receive script.

irl-guest pushed a commit to branch master
in repository gcb.

commit f9985e06c6361be37ea31db94976fa0153d7f49b
Author: Joop Stakenborg <pa3aba at debian.org>
Date:   Sun Nov 1 19:17:14 2009 +0000

    Imported Debian patch 1:1.07-3
---
 Makefile             | 12 +++++++
 debian/README.Debian | 21 +++++++++++
 debian/changelog     | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 debian/compat        |  1 +
 debian/control       | 22 ++++++++++++
 debian/copyright     |  6 ++++
 debian/dirs          |  1 +
 debian/docs          |  1 +
 debian/gcb.1         | 37 ++++++++++++++++++++
 debian/gcb.fr.1      | 34 ++++++++++++++++++
 debian/rules         | 83 ++++++++++++++++++++++++++++++++++++++++++++
 gc.c                 | 28 +++++++--------
 12 files changed, 329 insertions(+), 15 deletions(-)

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..d9783c3
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+CC = gcc
+PROG = gcb
+CFLAGS = -O2 -Wall
+
+$(PROG):
+	$(CC) $(CFLAGS) -o $(PROG) gc.c -lm
+
+install:
+	install -s -o root -g root $(PROG) $(DESTDIR)/usr/bin
+
+clean:
+	rm -f gc $(PROG)
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..ed87f72
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,21 @@
+gcb for Debian
+--------------
+Gcb is a misleading name, it has nothing to do with great circles, as 
+you will find out shortly.
+
+The short radio path between 2 radio stations is a curve along the globe 
+drawn using the earth's center as a midpoint. Short paths are not only 
+the shortest route, propagation via this path will most commonly take 
+place in daylight.
+
+The long path is simply the radio path with both stations having their 
+antenna turned 180 degrees. Propagation is almost always via the dark 
+side of the earth.
+
+Please note that gcb is not very accurate. Gcb assumes that the earth
+is a perfect circle. In reality, earth is ellipsoid or pear-shaped. This
+means that there will be small calculation errors. However, for antenna
+directions and simple distance calculations as used by hamradio operators,
+you should be okay.
+
+Joop Stakenborg <pa3aba at debian.org>, Tue, 30 Sep 2003 15:50:55 +0100
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..75fddb5
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,98 @@
+gcb (1:1.07-3) unstable; urgency=low
+
+  * Retiring - set the package maintainer to Debian QA Group.
+
+ -- Joop Stakenborg <pa3aba at debian.org>  Sun, 01 Nov 2009 19:17:14 +0000
+
+gcb (1:1.07-2) unstable; urgency=low
+
+  * French manual page by Tom KASZEMACHER <kutt at free.fr>, thanks!
+
+ -- Joop Stakenborg <pa3aba at debian.org>  Wed, 07 May 2008 20:29:24 +0200
+
+gcb (1:1.07-1) unstable; urgency=low
+
+  * No longer package as debian-native.
+  * Closely follow the source package and name it gc.
+  * Move to debhelper.
+
+ -- Joop Stakenborg <pa3aba at debian.org>  Fri, 24 Mar 2006 10:37:32 +0100
+
+gcb (1.07.3) unstable; urgency=low
+
+  * Correct some strings in the output, so we can get rid of the bearing
+    phrases. We use radio short/long path from now on.
+
+ -- Joop Stakenborg <pa3aba at debian.org>  Sun, 16 Nov 2003 09:44:02 +0100
+
+gcb (1.07.2) unstable; urgency=low
+
+  * Explain what short/long path is in README.debian.
+  * Adapt the package description, so gcb's limitations are clear.
+  * Closes: #203178.
+
+ -- Joop Stakenborg <pa3aba at debian.org>  Tue, 30 Sep 2003 15:35:12 +0200
+
+gcb (1.07.1) unstable; urgency=low
+
+  * Rename the package. Closes: #183087.
+  * Make this package debian-native: many changes to the code and renaming
+    of the binary, package and source tree, which are all debian-specific.
+  * Conflicts with gc for now.
+
+ -- Joop Stakenborg <pa3aba at debian.org>  Mon,  7 Jul 2003 17:11:21 +0200
+
+gc (1.07-8) unstable; urgency=low
+
+  * Update standards version.
+  * Lintian fixes.
+
+ -- Joop Stakenborg <pa3aba at debian.org>  Sun, 22 Dec 2002 11:28:22 +0100
+
+gc (1.07-7) unstable; urgency=low
+
+  * Remove libc6-dev fron the Build-Depends line as per debian policy.
+
+ -- Joop Stakenborg <pa3aba at debian.org>  Tue, 10 Jul 2001 21:44:01 +0200
+
+gc (1.07-6) unstable; urgency=low
+
+  * Add build-depends. Closes: #84853.
+  * Update standards version.
+
+ -- Joop Stakenborg <pa3aba at debian.org>  Wed, 14 Feb 2001 19:38:16 +0100
+
+gc (1.07-5) unstable; urgency=low
+
+  * Changed the name of the binary to gcb in manual page and when the program
+    is called without an argument (closes: #70053)
+
+ -- Joop Stakenborg <pa3aba at debian.org>  Sun,  1 Oct 2000 20:54:08 +0200
+
+gc (1.07-4) unstable; urgency=low
+
+  * Fixed lintian warnings.
+  * Updated standards version.
+  * Fixed compiler warnings.
+
+ -- Joop Stakenborg <pa3aba at debian.org>  Fri, 28 Jul 2000 09:42:26 +0200
+
+gc (1.07-3) unstable; urgency=low
+
+  * Fixed link to the upstream readme in the manual page.
+
+ -- Joop Stakenborg <pa3aba at debian.org>  Wed,  1 Dec 1999 21:10:08 +0100
+
+gc (1.07-2) unstable; urgency=low
+
+  * Updated standards version.
+  * FHS.
+
+ -- Joop Stakenborg <pa3aba at debian.org>  Thu, 14 Oct 1999 18:05:54 +0200
+
+gc (1.07-1) unstable; urgency=low
+
+  * Initial Release.
+  * Manual page added.
+
+ -- Joop Stakenborg <pa3aba at debian.org>  Sun, 13 Dec 1998 21:09:57 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..b8626c4
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+4
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..b50598e
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,22 @@
+Source: gcb
+Section: hamradio
+Priority: optional
+Maintainer: Debian QA Group <packages at qa.debian.org>
+Build-Depends: debhelper (>= 4.0.0)
+Standards-Version: 3.7.3
+
+Package: gcb
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Utility to calculate long and short path to a location
+ Gcb computes long and short path given the latitude and longitude
+ (degrees and minutes). You must input the lat/long of the two stations. 
+ The output will then be relative from station1 to station2.
+ .
+ Gcb is used by hamradio operators as a tool for pointing the antenna
+ in the right direction, either by using the short (daylight) propagation
+ path or using the long path, which is almost always via the dark side
+ of the earth.
+ .
+ Gcb believes the earth to be a perfect circle, which means there will be
+ small calculation errors.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..9045aa5
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,6 @@
+This package was debianized by Joop Stakenborg pa3aba at debian.org on
+Sun, 13 Dec 1998 21:09:57 +0100.
+
+It was downloaded from ftp://ftp.ucsd.edu/hamradio/packet/misc
+
+Copyright: Public Domain.
diff --git a/debian/dirs b/debian/dirs
new file mode 100644
index 0000000..e772481
--- /dev/null
+++ b/debian/dirs
@@ -0,0 +1 @@
+usr/bin
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README
diff --git a/debian/gcb.1 b/debian/gcb.1
new file mode 100644
index 0000000..67f4c3b
--- /dev/null
+++ b/debian/gcb.1
@@ -0,0 +1,37 @@
+.TH GCB 1
+.SH NAME
+gcb \- calculate long and short path to a location
+.SH SYNOPSIS
+.B gcb units station1 station2
+.SH DESCRIPTION
+.B Gcb
+computes long/short path distance and heading 
+given the latitude and longitude (degrees and minutes).
+You must input the lat/long of the two stations.
+The output will then be relative from station1 to station2.
+
+Input the two station lat/longs using the following format:
+ddd.mmHddd.mmG, lead/lagging zeros can be left out.
+
+d = Degrees, m = Minutes, H = Hemisphere (N or S),
+G = Greenwich (W or E)
+
+Units is 'n' for Nautical, 'k' for kilometers, and 's' for
+Statute.
+
+
+.SH EXAMPLES
+gcb n 35.19n97.27w 0s0e           (Moore to Prime/Equator)
+
+gcb n 35.19N97.27W 38.51n77.02W   (Moore to Washington D.C., mixed case)
+
+gcb n 33.56n118.24w 55.45n37.35e  (L.A. to Moscow)
+
+gcb n 35N70W 35N71W		 (No decimal points used, all uppercase)
+
+.SH SEE ALSO
+/usr/share/doc/gcb/README.debian
+
+.SH AUTHOR
+This manual page was written by Joop Stakenborg <pa3aba at debian.org>,
+for the Debian GNU/Linux system.
diff --git a/debian/gcb.fr.1 b/debian/gcb.fr.1
new file mode 100644
index 0000000..1c2fdfe
--- /dev/null
+++ b/debian/gcb.fr.1
@@ -0,0 +1,34 @@
+.TH GCB 1
+.SH NOM
+gcb \- calcule un long et un court chemin pour un emplacement
+.SH SYNOPSIS
+.B gcb units station1 station2
+.SH DESCRIPTION
+.B Gcb
+calcule la distance d'un long/court chemin et renvoie la latitude et la longitude (en degr�s et en minutes).
+Vous devez donner les latitudes/longitudes des deux stations.
+Le r�sultat sera alors la distance de la station1 � la station2.
+
+Entrez les latitudes/longitudes des deux stations sous le format suivant:
+ddd.mmHddd.mmG, les z�ros de d�but/fin peuvent �tre omis.
+
+d = Degr�s, m = Minutes, H = H�misph�re (N ou S),
+G = Greenwich (O ou E)
+
+Les unit�s sont 'n' pour les miles nautiques, 'k' pour les kilom�tres, et 's' pour les miles terrestres am�ricains (Statute Miles)
+
+.SH EXEMPLES
+gcb n 35.19n97.27w 0s0e           (Moore � Premier M�ridien/Equator)
+
+gcb n 35.19N97.27W 38.51n77.02W   (Moore � Washington D.C., casse m�lang�e)
+
+gcb n 33.56n118.24w 55.45n37.35e  (L.A. � Moscow)
+
+gcb n 35N70W 35N71W		 (Sans point de s�paration, tout en majuscule)
+
+.SH VOIR AUSSI
+/usr/share/doc/gcb/README.debian
+
+.SH AUTEUR
+Cette page de manuel a �t� �crite par Joop Stakenborg <pa3aba at debian.org>,
+pour le syst�me d'exploitation Debian GNU/Linux.
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..1f990d3
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,83 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	# Add here commands to configure the package.
+
+	touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp 
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE)
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+	# Add here commands to clean up after the build process.
+	[ ! -f Makefile ] || $(MAKE) clean
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	# Add here commands to install the package into debian/gcb.
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/gcb
+
+
+# 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_installchangelogs 
+	dh_installdocs
+	dh_installexamples
+#	dh_install
+	dh_installman debian/gcb.1 debian/gcb.fr.1
+	dh_link
+	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
diff --git a/gc.c b/gc.c
index ebc2560..f8a248d 100644
--- a/gc.c
+++ b/gc.c
@@ -12,10 +12,10 @@
  *
  *      Usage examples:
  *
- *      gc n 35.19n97.27w 0s0e           (Moore to Prime/Equator)
- *      gc n 35.19N97.27W 38.51n77.02W   (Moore to Washington D.C., mixed case)
- *      gc n 33.56n118.24w 55.45n37.35e  (L.A. to Moscow)
- *	gc n 35N70W 35N71W		 (No decimal points used, all uppercase)
+ *      gcb n 35.19n97.27w 0s0e           (Moore to Prime/Equator)
+ *      gcb n 35.19N97.27W 38.51n77.02W   (Moore to Washington D.C., mixed case)
+ *      gcb n 33.56n118.24w 55.45n37.35e  (L.A. to Moscow)
+ *	gcb n 35N70W 35N71W		 (No decimal points used, all uppercase)
  *
  *	Modified the program to incorporate short and long path information
  *	from the Satellite Handbook.  This version also takes into consideration
@@ -23,7 +23,7 @@
  *	antipodal points, which are easily calculated.  These last points were
  *	made in discussions with John Allison who makes the nice MAPIT program.
  *
- *	Compile GNU C with: cc -O gc.c -o gc -lm
+ *	Compile GNU C with: cc -O gc.c -o gcb -lm
  */
 
 /* Includes */
@@ -101,7 +101,7 @@ void parse(s, lat, lon)
 char    *s;
 double  *lat, *lon;
 {
-        register char   *i, *t, *e;
+        register char   *i, *t=NULL, *e;
 
         e = s + strlen(s);
         for (i = s; i < e; ++i)  {
@@ -148,7 +148,7 @@ double  *lat, *lon;
                 *lat = -89.9;
 }
 
-void main(argc, argv)
+int main(argc, argv)
 int  argc;
 char **argv;
 {
@@ -157,17 +157,15 @@ char **argv;
 	int	units;
 
         if (argc != 4)  {
-            fprintf(stderr, "\nUsage: gc units station1 station2\n\n" \
-            "This program computes Great Circle Bearing and Range\n" \
+            fprintf(stderr, "\nUsage: gcb units station1 station2\n\n" \
+            "This program computes long/short radio path\n" \
             "given the latitude and longitude (degrees and minutes).\n\n" \
             "You must input the lat/long of the two stations.\n" \
             "The output will then be relative from station1 to station2.\n\n" \
             "Input the two station lat/longs using the following format:\n\n" \
             "\tdd.mmHddd.mmG  lead/lagging zeros can be left out.\n\n" \
-            "d = Degrees, m = Minutes, H = Hemisphere (N or S), " \
-	    "G = Greenwich (W or E)\n\n" \
-            "units is 'n' for Nautical, 'k' for kilometers, and 's' for " \
-            "Statute.\n\n");
+            "d = Degrees, m = Minutes, H = Hemisphere (N or S), G = Greenwich (W or E)\n\n" \
+            "units is 'n' for Nautical, 'k' for kilometers, and 's' for Statute.\n\n");
 
                 exit(1);
         }
@@ -261,10 +259,10 @@ char **argv;
 
         /* Computations complete, show answer */
 
-        printf("Short Path Bearing is %03.0f Degrees for %.0f %s\n",
+        printf("Short Radio Path is %03.0f Degrees for %.0f %s\n",
 	        azsp, distsp, Units[units].text);
 
-        printf(" Long Path Bearing is %03.0f Degrees for %.0f %s\n",
+        printf(" Long Radio Path is %03.0f Degrees for %.0f %s\n",
 	        azlp, distlp, Units[units].text);
 
         exit(0);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/gcb.git



More information about the pkg-hamradio-commits mailing list