[hamradio-commits] [yagiuda] 02/04: Created Debain folder, added previous work to it

Dave Hibberd hibby-guest at moszumanska.debian.org
Sat Sep 19 16:26:55 UTC 2015


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

hibby-guest pushed a commit to branch master
in repository yagiuda.

commit fb4546f75a07c8c9aa99f246da9eb99622d25d2e
Author: Dave Hibberd <d at vehibberd.com>
Date:   Thu Sep 3 22:48:59 2015 +0100

    Created Debain folder, added previous work to it
---
 debian/changelog                              | 102 ++++++
 debian/compat                                 |   1 +
 debian/control                                |  21 ++
 debian/copyright                              |  37 ++
 debian/copyright.old                          |  11 +
 debian/debian/changelog                       | 102 ++++++
 debian/debian/compat                          |   1 +
 debian/debian/control                         |  21 ++
 debian/debian/copyright                       |  37 ++
 debian/debian/copyright.old                   |  11 +
 debian/debian/dirs                            |   1 +
 debian/debian/docs                            |   4 +
 debian/debian/patches/compiler-flags.patch    |  14 +
 debian/debian/patches/debian-changes-1.19-6.2 | 496 ++++++++++++++++++++++++++
 debian/debian/patches/optopt-declaration      |  18 +
 debian/debian/patches/series                  |   4 +
 debian/debian/patches/spelling.patch          | 235 ++++++++++++
 debian/debian/rules                           |   4 +
 debian/debian/source/format                   |   1 +
 debian/debian/watch                           |   2 +
 debian/dirs                                   |   1 +
 debian/docs                                   |   4 +
 debian/patches/compiler-flags.patch           |  14 +
 debian/patches/debian-changes-1.19-6.2        | 496 ++++++++++++++++++++++++++
 debian/patches/optopt-declaration             |  18 +
 debian/patches/series                         |   4 +
 debian/patches/spelling.patch                 | 235 ++++++++++++
 debian/rules                                  |   4 +
 debian/source/format                          |   1 +
 debian/watch                                  |   2 +
 30 files changed, 1902 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..670032f
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,102 @@
+yagiuda (1.19-9) UNRELEASED; urgency=medium
+
+  * package adopted (Closes: 555148).
+  * dh-autoreconf working
+  * bumped debhelper to 9
+  * bumped standards to 3.9.6 
+
+ -- Dave Hibberd <d at vehibberd.com>  Tue, 05 May 2015 21:03:05 +0100
+
+yagiuda (1.19-8) unstable; urgency=low
+
+  * QA upload.
+  * Fix "FTBFS: dpkg-buildpackage: error: dpkg-source -b yagiuda-1.19
+    gave error exit status 2": update handling of config.{guess,sub}:
+    - remove the changes to these files from the auto-generated patch
+    - use autotools-dev helpers in debian/rules to update/restore them
+    - make build dependency on autotools-dev versioned
+    (Closes: #652211)
+
+ -- gregor herrmann <gregoa at debian.org>  Tue, 13 Mar 2012 19:58:01 +0100
+
+yagiuda (1.19-7) unstable; urgency=low
+
+  * QA upload
+  * Source format 3.0 (quilt)
+  * patch optopt-declaration: fix declaration of optopt (closes: 593486).
+    Thanks a lot to Jakub Wilk <jwilk at debian.org> for the patch!
+
+ -- Ralf Treinen <treinen at debian.org>  Wed, 25 Aug 2010 22:19:13 +0200
+
+yagiuda (1.19-6.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Added the copyright years 1999-2010 to fix lintian warning. I've a mail
+  * from the author specifying 1999 as the initial release.
+
+
+ -- Fernando M. Maresca <fmaresca at gmail.com>  Tue, 09 Feb 2010 09:52:25 -0300
+
+yagiuda (1.19-6.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix "-t and -T can't be specified together as indicated in doc"
+    Applied patch provided in the bug report to optimise.c (Closes: #567963)
+  * Lintian fixes: 
+    Added missing dep. on {misc:Depends}
+    Actualized debhelper version to >=7
+    Actualized Standards-Version to 3.8.4
+    Typos fixed in man pages.
+
+ -- Fernando M. Maresca <fmaresca at gmail.com>  Mon, 01 Feb 2010 12:08:30 -0300
+
+yagiuda (1.19-6) unstable; urgency=low
+
+  * Retiring - set the package maintainer to Debian QA Group.
+
+ -- Joop Stakenborg <pa3aba at debian.org>  Sun, 08 Nov 2009 18:15:49 +0000
+
+yagiuda (1.19-5) unstable; urgency=low
+
+  * Upload on behalf of Milos Mandaric, thanks!
+
+ -- Joop Stakenborg <pa3aba at debian.org>  Mon, 05 Jan 2009 21:33:47 +0100
+
+yagiuda (1.19-4.1) unstable; urgency=low
+
+  * Non-maintainer upload
+  * The way "type" variable was getting the value in src/input.c is fixed.
+    (LP #312842).
+  * Fixed homepage in README
+  * Standards-Version changed to 3.8.0 in debian/control
+
+ -- Milos Mandaric <milos at manda.com.ba>  Mon, 05 Jan 2009 16:28:40 +0100
+
+yagiuda (1.19-4) unstable; urgency=low
+
+  * Lintian fixes.
+  * Update standards version.
+  * Move from optional to extra to fix a override disparity.
+
+ -- Joop Stakenborg <pa3aba at debian.org>  Wed, 12 Dec 2007 19:09:59 +0100
+
+yagiuda (1.19-3) unstable; urgency=low
+
+  * Make this package conflict with psi3, which also uses "input" for a
+    binary name. Closes: #393085.
+
+ -- Joop Stakenborg <pa3aba at debian.org>  Tue, 17 Oct 2006 14:21:47 +0200
+
+yagiuda (1.19-2) unstable; urgency=low
+
+  * Remove all of the "extern int errno" and "int errno" lines.
+    Closes: #324396.
+
+ -- Joop Stakenborg <pa3aba at debian.org>  Mon, 22 Aug 2005 20:20:13 +0200
+
+yagiuda (1.19-1) unstable; urgency=low
+
+  * Initial release.
+
+ -- Joop Stakenborg <pa3aba at debian.org>  Tue,  9 Aug 2005 11:48:31 +0200
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..e85a05c
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,21 @@
+Source: yagiuda
+Maintainer: Debian Hamradio Maintainers <debian-hams at lists.debian.org>
+Uploaders: Dave Hibberd <d at vehibberd.com>
+Section: hamradio
+Priority: extra
+Build-Depends: debhelper (>= 9),
+               dh-autoreconf
+Standards-Version: 3.9.6
+Homepage: http://www.g8wrb.org/yagi/
+
+Package: yagiuda
+Architecture: any
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Conflicts: psi3
+Description: software to analyse performance of Yagi-Uda antennas
+ You give the dimensions and positions of each element, and the
+ program calculates gain, input impedance, front-to back ratio,
+ beam-patterns etc. An optimisation program 'optimise' tries to
+ optimise a design. The optimiser can also tell you the sensitivity
+ of a good design, to small mechanical errors.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..b4d88a5
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,37 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: yagiuda
+Source: 
+
+Files: *
+Copyright:
+        (C) Dr. David Kirkby <david.kirkby at onetel.net>
+License: GPL-2+
+
+Files: debian/*
+Copyright:
+        (C) 2015 Dave Hibberd <d at vehibberd.com>
+	(C) 2012 Gregor Herrman <gergoa at debian.org>
+	(C) 2010 Ralph Treinen <treinen at debian.org>
+	(C) 2010 Fernando M. Maresca <fmaresca at gmail.com>
+	(C) 2009 Milos Mandaric <milos at manda.com.ba>
+        (C) 2005,2006,2007,2009 Joop Stakenborg <pa3aba at debian.org>
+License: GPL-2+
+
+License: GPL-2+
+ 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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ .
+ The GPL License which applies to this package can be found on your Debian
+ system at /usr/share/common-licenses/GPL-2.
+
diff --git a/debian/copyright.old b/debian/copyright.old
new file mode 100644
index 0000000..418aed9
--- /dev/null
+++ b/debian/copyright.old
@@ -0,0 +1,11 @@
+This package was debianized by Joop Stakenborg <pa3aba at debian.org> on
+Tue,  9 Aug 2005 11:48:31 +0200.
+
+It was downloaded from http://www.g8wrb.org/yagi/yagiuda-1.19.tar.gz
+
+Copyright 1999-2010: Dr. David Kirkby <david.kirkby at onetel.net>
+
+License:
+
+This sofware is release under the GNU GPL license. You should find a copy of
+this license on your debian system under /usr/share/common-licenses
diff --git a/debian/debian/changelog b/debian/debian/changelog
new file mode 100644
index 0000000..670032f
--- /dev/null
+++ b/debian/debian/changelog
@@ -0,0 +1,102 @@
+yagiuda (1.19-9) UNRELEASED; urgency=medium
+
+  * package adopted (Closes: 555148).
+  * dh-autoreconf working
+  * bumped debhelper to 9
+  * bumped standards to 3.9.6 
+
+ -- Dave Hibberd <d at vehibberd.com>  Tue, 05 May 2015 21:03:05 +0100
+
+yagiuda (1.19-8) unstable; urgency=low
+
+  * QA upload.
+  * Fix "FTBFS: dpkg-buildpackage: error: dpkg-source -b yagiuda-1.19
+    gave error exit status 2": update handling of config.{guess,sub}:
+    - remove the changes to these files from the auto-generated patch
+    - use autotools-dev helpers in debian/rules to update/restore them
+    - make build dependency on autotools-dev versioned
+    (Closes: #652211)
+
+ -- gregor herrmann <gregoa at debian.org>  Tue, 13 Mar 2012 19:58:01 +0100
+
+yagiuda (1.19-7) unstable; urgency=low
+
+  * QA upload
+  * Source format 3.0 (quilt)
+  * patch optopt-declaration: fix declaration of optopt (closes: 593486).
+    Thanks a lot to Jakub Wilk <jwilk at debian.org> for the patch!
+
+ -- Ralf Treinen <treinen at debian.org>  Wed, 25 Aug 2010 22:19:13 +0200
+
+yagiuda (1.19-6.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Added the copyright years 1999-2010 to fix lintian warning. I've a mail
+  * from the author specifying 1999 as the initial release.
+
+
+ -- Fernando M. Maresca <fmaresca at gmail.com>  Tue, 09 Feb 2010 09:52:25 -0300
+
+yagiuda (1.19-6.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix "-t and -T can't be specified together as indicated in doc"
+    Applied patch provided in the bug report to optimise.c (Closes: #567963)
+  * Lintian fixes: 
+    Added missing dep. on {misc:Depends}
+    Actualized debhelper version to >=7
+    Actualized Standards-Version to 3.8.4
+    Typos fixed in man pages.
+
+ -- Fernando M. Maresca <fmaresca at gmail.com>  Mon, 01 Feb 2010 12:08:30 -0300
+
+yagiuda (1.19-6) unstable; urgency=low
+
+  * Retiring - set the package maintainer to Debian QA Group.
+
+ -- Joop Stakenborg <pa3aba at debian.org>  Sun, 08 Nov 2009 18:15:49 +0000
+
+yagiuda (1.19-5) unstable; urgency=low
+
+  * Upload on behalf of Milos Mandaric, thanks!
+
+ -- Joop Stakenborg <pa3aba at debian.org>  Mon, 05 Jan 2009 21:33:47 +0100
+
+yagiuda (1.19-4.1) unstable; urgency=low
+
+  * Non-maintainer upload
+  * The way "type" variable was getting the value in src/input.c is fixed.
+    (LP #312842).
+  * Fixed homepage in README
+  * Standards-Version changed to 3.8.0 in debian/control
+
+ -- Milos Mandaric <milos at manda.com.ba>  Mon, 05 Jan 2009 16:28:40 +0100
+
+yagiuda (1.19-4) unstable; urgency=low
+
+  * Lintian fixes.
+  * Update standards version.
+  * Move from optional to extra to fix a override disparity.
+
+ -- Joop Stakenborg <pa3aba at debian.org>  Wed, 12 Dec 2007 19:09:59 +0100
+
+yagiuda (1.19-3) unstable; urgency=low
+
+  * Make this package conflict with psi3, which also uses "input" for a
+    binary name. Closes: #393085.
+
+ -- Joop Stakenborg <pa3aba at debian.org>  Tue, 17 Oct 2006 14:21:47 +0200
+
+yagiuda (1.19-2) unstable; urgency=low
+
+  * Remove all of the "extern int errno" and "int errno" lines.
+    Closes: #324396.
+
+ -- Joop Stakenborg <pa3aba at debian.org>  Mon, 22 Aug 2005 20:20:13 +0200
+
+yagiuda (1.19-1) unstable; urgency=low
+
+  * Initial release.
+
+ -- Joop Stakenborg <pa3aba at debian.org>  Tue,  9 Aug 2005 11:48:31 +0200
+
diff --git a/debian/debian/compat b/debian/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/debian/control b/debian/debian/control
new file mode 100644
index 0000000..e85a05c
--- /dev/null
+++ b/debian/debian/control
@@ -0,0 +1,21 @@
+Source: yagiuda
+Maintainer: Debian Hamradio Maintainers <debian-hams at lists.debian.org>
+Uploaders: Dave Hibberd <d at vehibberd.com>
+Section: hamradio
+Priority: extra
+Build-Depends: debhelper (>= 9),
+               dh-autoreconf
+Standards-Version: 3.9.6
+Homepage: http://www.g8wrb.org/yagi/
+
+Package: yagiuda
+Architecture: any
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Conflicts: psi3
+Description: software to analyse performance of Yagi-Uda antennas
+ You give the dimensions and positions of each element, and the
+ program calculates gain, input impedance, front-to back ratio,
+ beam-patterns etc. An optimisation program 'optimise' tries to
+ optimise a design. The optimiser can also tell you the sensitivity
+ of a good design, to small mechanical errors.
diff --git a/debian/debian/copyright b/debian/debian/copyright
new file mode 100644
index 0000000..b4d88a5
--- /dev/null
+++ b/debian/debian/copyright
@@ -0,0 +1,37 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: yagiuda
+Source: 
+
+Files: *
+Copyright:
+        (C) Dr. David Kirkby <david.kirkby at onetel.net>
+License: GPL-2+
+
+Files: debian/*
+Copyright:
+        (C) 2015 Dave Hibberd <d at vehibberd.com>
+	(C) 2012 Gregor Herrman <gergoa at debian.org>
+	(C) 2010 Ralph Treinen <treinen at debian.org>
+	(C) 2010 Fernando M. Maresca <fmaresca at gmail.com>
+	(C) 2009 Milos Mandaric <milos at manda.com.ba>
+        (C) 2005,2006,2007,2009 Joop Stakenborg <pa3aba at debian.org>
+License: GPL-2+
+
+License: GPL-2+
+ 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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ .
+ The GPL License which applies to this package can be found on your Debian
+ system at /usr/share/common-licenses/GPL-2.
+
diff --git a/debian/debian/copyright.old b/debian/debian/copyright.old
new file mode 100644
index 0000000..418aed9
--- /dev/null
+++ b/debian/debian/copyright.old
@@ -0,0 +1,11 @@
+This package was debianized by Joop Stakenborg <pa3aba at debian.org> on
+Tue,  9 Aug 2005 11:48:31 +0200.
+
+It was downloaded from http://www.g8wrb.org/yagi/yagiuda-1.19.tar.gz
+
+Copyright 1999-2010: Dr. David Kirkby <david.kirkby at onetel.net>
+
+License:
+
+This sofware is release under the GNU GPL license. You should find a copy of
+this license on your debian system under /usr/share/common-licenses
diff --git a/debian/debian/dirs b/debian/debian/dirs
new file mode 100644
index 0000000..e772481
--- /dev/null
+++ b/debian/debian/dirs
@@ -0,0 +1 @@
+usr/bin
diff --git a/debian/debian/docs b/debian/debian/docs
new file mode 100644
index 0000000..b5c7362
--- /dev/null
+++ b/debian/debian/docs
@@ -0,0 +1,4 @@
+BUGS
+NEWS
+README
+TODO
diff --git a/debian/debian/patches/compiler-flags.patch b/debian/debian/patches/compiler-flags.patch
new file mode 100644
index 0000000..4062134
--- /dev/null
+++ b/debian/debian/patches/compiler-flags.patch
@@ -0,0 +1,14 @@
+Description: Fixes buildtime error caused by fprintf and -Wformat-security default flag
+Author: Dave Hibberd <d at vehibberd.com>
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+
+--- a/src/error_message.c
++++ b/src/error_message.c
+@@ -6,5 +6,5 @@
+ 
+ void error_message(char *str)
+ {
+-	fprintf(stderr,str);
++	fputs(str,stderr);
+ }
diff --git a/debian/debian/patches/debian-changes-1.19-6.2 b/debian/debian/patches/debian-changes-1.19-6.2
new file mode 100644
index 0000000..5ed2956
--- /dev/null
+++ b/debian/debian/patches/debian-changes-1.19-6.2
@@ -0,0 +1,496 @@
+Description: Upstream changes introduced up to version 1.19-6.2
+ This patch has been created by dpkg-source during the package build.
+
+--- yagiuda-1.19.orig/README
++++ yagiuda-1.19/README
+@@ -17,5 +17,4 @@ email:david.kirkby at onetel.net
+              Fax: 020 7679 6406 
+ 
+ The *latest* version will be found at:
+-http://www.medphys.ucl.ac.uk/~davek/ham/yagi/
+-
++http://www.g8wrb.org/yagi/
+--- yagiuda-1.19.orig/man/man5/output.5
++++ yagiuda-1.19/man/man5/output.5
+@@ -31,10 +31,10 @@ f(MHz) E(deg) H(deg) R       jX   VSWR
+ 145.000 53.2  68.4  37.55   1.61  1.335  9.742    103.055     17.777
+ .br
+ 145.500 52.3  66.6  33.26   5.00  1.530  9.947     25.734     18.547
+-.b
++.br
+ 146.000 51.3  64.6  28.77   9.63  1.832 10.149     18.919     18.919
+ 
+-.tp
++.nf  
+ .br
+ .SH What is what in the .dat file
+ The f(MHz) column is the frequency (MHz) at which the data is evaluated at.
+--- yagiuda-1.19.orig/man/man5/yagi.5
++++ yagiuda-1.19/man/man5/yagi.5
+@@ -28,9 +28,6 @@ offset(bytes)              information
+ 36                         step_frequency       double
+ 44                         angular_step         double
+ 52                         0                    double
+-.                          .                      .
+-.                          .                      .
+-.                          .                      .
+ 92                         0                    double
+ 
+ Following the header, there starts the coordinates(x,y,l) of each
+@@ -51,10 +48,10 @@ offset(bytes)              information
+ 100+(n-1)*24               x_n                  double
+ 100+(n-1)*24+8             y_n                  double
+ 100+(n-1)*24+16            l_n                  double
+-.............. Repeated for each element.
++--------------  Repeated for each element.
+ 100+24*elements            Voltage1             fcomplex  /* voltage */
+ 100+24*elements+(n-1)*16   Voltage_n            fcomplex
+-.............. Repeated for each element n at each frequency step f.
++--------------  Repeated for each element n at each frequency step f.
+ 100+40*elements            Current1 at f1          fcomplex /* current */
+ 100+40*elements+(n-1)*16   Current_n at f1         fcomplex
+ 
+--- yagiuda-1.19.orig/man/man5/input.5
++++ yagiuda-1.19/man/man5/input.5
+@@ -35,7 +35,7 @@ ANGULAR_STEP
+ DATA_DRIVEN 
+ DATA_PARASITIC
+ 
+-.f
++.nf
+ The 
+ .IR #
+ is used as a comment.
+--- yagiuda-1.19.orig/man/man1/optimise.1
++++ yagiuda-1.19/man/man1/optimise.1
+@@ -358,7 +358,7 @@ is the standard deviation in mm of the a
+ of elements will be with 3 standard deviations of the mean length (stats theory says this), set
+ -t0.2 if virtually all (well 99.7%) of elements are within 3x0.2=0.6 mm of the correct length. This
+ option *must* be used with the '-T'  option and can't be used with any other options apart from
+-'-Z', '-v' and '-d'.
++\&'-Z', '-v' and '-d'.
+ .TP
+ .BI \-x reactance
+ When optimising an antenna, consider any input reactance of less than 
+@@ -450,7 +450,7 @@ is the standard deviation in mm of the a
+ of elements will be with 3 standard deviations of the correct position (stats theory says this), set
+ -T2 if virtually all (well 99.7%) of elements are within 3x2=6 mm of the correct position.This
+ option *must* be used with the '-t'  option and can't be used with any other options apart from
+-'-Z', '-v' and '-d'.
++\&'-Z', '-v' and '-d'.
+ .TP
+ .BI \-W  Weighted_algorithm
+ Try to get an antenna which is better according to a weighted combination of 
+--- yagiuda-1.19.orig/man/man1/output.1
++++ yagiuda-1.19/man/man1/output.1
+@@ -130,7 +130,7 @@ filename        ASCII file with antenna
+ filename.out    Binary data file, created by yagi.
+ filename.dat    ASCII file with gain, FB ratio etc.
+ filename.gai    ASCII file with angular dependence of gain.
+-.f
++.nf
+ .br
+ .SH "SEE ALSO"
+ first(1), input(1), yagi(1), optimise(1).
+--- yagiuda-1.19.orig/src/genetic_algorithm_lib.c
++++ yagiuda-1.19/src/genetic_algorithm_lib.c
+@@ -32,7 +32,6 @@ double pmutate=0.1 ;
+ double pcross=0.9 ;
+ double psimplex=0.5 ;
+ double ptrans=0.03 ;
+-extern int errno;
+ 
+ GeneRecord *Pop1=NULL,*Pop2=NULL ;
+ 
+--- yagiuda-1.19.orig/src/power_input.c
++++ yagiuda-1.19/src/power_input.c
+@@ -6,7 +6,6 @@
+ #include <errno.h>
+ #include "yagi.h"
+ 
+-extern int errno;
+ 
+ /* uses formulae of page 1-12 of Lawsons book. No idea where
+ it comes from! */
+--- yagiuda-1.19.orig/src/auto.c
++++ yagiuda-1.19/src/auto.c
+@@ -7,7 +7,6 @@
+ 
+ #include "yagi.h"
+ 
+-extern int errno;
+ /* The function automatic_enhancement optimises only for the gain, by 
+ adjusting the length of the reflector (A=-1), the driven(A=0) the 
+ first director (A=1), second director (A=2 ) etc */
+--- yagiuda-1.19.orig/src/get_number_of_elements.c
++++ yagiuda-1.19/src/get_number_of_elements.c
+@@ -6,7 +6,6 @@
+ #include <errno.h>
+ #include "yagi.h"
+ 
+-extern int errno;
+ 
+ int get_number_of_elements(char *input_filename, int *driven , int *parasitic)
+ {
+--- yagiuda-1.19.orig/src/self.c
++++ yagiuda-1.19/src/self.c
+@@ -8,7 +8,6 @@
+ #include <math.h>
+ #include <errno.h>
+ #include "yagi.h"
+-extern int errno;
+ 
+ void self_impedance(int i, double frequency, int driven, int parasitic, double **data, double **impedance)
+ {
+--- yagiuda-1.19.orig/src/perform.c
++++ yagiuda-1.19/src/perform.c
+@@ -11,7 +11,6 @@
+ between 0 and 1, for use in a genetic algorithm to get performance. All
+ parameters are roughly linear */ 
+ 
+-extern int errno;
+ extern double Zo;
+ 
+ double performance(struct flags flag, struct performance_data data, struct performance_data max, struct performance_data weight, struct performance_data start)
+--- yagiuda-1.19.orig/src/mutual.c
++++ yagiuda-1.19/src/mutual.c
+@@ -6,7 +6,6 @@
+ #include <errno.h>
+ #include "yagi.h"
+ 
+-extern int errno;
+ 
+ void mutual_impedance(int i, int j, double frequency, int driven, int parasitic, double **d, double **p, double **impedance)
+ {
+--- yagiuda-1.19.orig/src/sens.c
++++ yagiuda-1.19/src/sens.c
+@@ -9,7 +9,6 @@
+ #include <errno.h>
+ #include "yagi.h"
+ 
+-extern int errno;
+ extern double boom_factor;
+ 
+ void sensitivity(double boom_sd, double length_sd, double **driven_data, double**parasitic_data, int driven, int parasites)
+--- yagiuda-1.19.orig/src/randomise.c
++++ yagiuda-1.19/src/randomise.c
+@@ -10,7 +10,6 @@
+ #include "yagi.h"
+ 
+ extern double boom_factor;
+-extern int errno;
+ #define MIN_RDS   0.05 /* Minimum reflector-driven spacing in lambda */
+ 
+ void randomise(int randomisation_method, double frequency, double max_percent, double **driven_data, double**parasitic_data, int driven, int parasites)
+--- yagiuda-1.19.orig/src/get_command_line_options.c
++++ yagiuda-1.19/src/get_command_line_options.c
+@@ -9,7 +9,6 @@
+ 
+ extern char     *optarg;
+ extern int optind, opterr;
+-extern int errno;
+ extern struct performance_data max, weight;
+ extern double original_percent; 
+ extern double percent;
+@@ -21,7 +20,6 @@ extern int iterations, fitness_method;
+ extern double vswr;
+ extern double boom_sd, length_sd;
+ extern int K_times, K_times_max;
+-int errno;
+ double min_offset_from_peak=0.0;
+ double angular_stepsize_2=0.0;
+ 
+--- yagiuda-1.19.orig/src/test_stop.c
++++ yagiuda-1.19/src/test_stop.c
+@@ -2,10 +2,9 @@
+ #include <stdlib.h>
+ #endif
+ #include <stdio.h>
++#include <errno.h>
+ #include "yagi.h"
+ 
+-extern int errno;
+-
+ void test_for_stop_file(void)
+ {
+ 	if (   fopen("stop","r") !=NULL        )
+--- yagiuda-1.19.orig/src/read_header.c
++++ yagiuda-1.19/src/read_header.c
+@@ -6,7 +6,6 @@
+ #include <unistd.h>
+ #include <errno.h>
+ #include "yagi.h"
+-extern int errno;
+ 
+ int read_header(FILE *ifp, FILE *ofp, double *min_f, double *max_f,
+ 	 double *step_f, double *f, double *angular_step)
+--- yagiuda-1.19.orig/src/better.c
++++ yagiuda-1.19/src/better.c
+@@ -10,7 +10,6 @@ its better. */
+ 
+ extern double vswr, Zo;
+ extern struct performance_data max;
+-extern int errno;
+ int is_it_better(int criteria,struct performance_data n, struct performance_data o) 
+ {
+ 	double resistance_error;
+--- yagiuda-1.19.orig/src/fitness.c
++++ yagiuda-1.19/src/fitness.c
+@@ -9,7 +9,6 @@ double which increases with a better ant
+ 
+ #include "yagi.h"
+ 
+-extern int errno;
+ extern struct performance_data max, weight;
+ 
+ double get_genetic_algorithm_fitness(struct flags flag, double frequency, int driven, int parasitic, double **driven_data, double **parasitic_data, double *v, double **z, double *pin, struct FCOMPLEX *voltage, struct FCOMPLEX *current, struct FCOMPLEX *input_impedance, struct element_data *coordinates, double **A, double  *b, int *indx, struct performance_data *data2) 
+--- yagiuda-1.19.orig/src/globals.h
++++ yagiuda-1.19/src/globals.h
+@@ -1,6 +1,5 @@
+ extern char     *optarg;
+ extern int optind, opterr;
+-extern int errno;
+ 
+ double original_percent=10; /* Automatic changing: 10, to 1, then 0.1 then 0.01% */
+ double percent;
+@@ -12,5 +11,4 @@ int popsize=0;
+ int iterations, fitness_method=0;
+ double vswr=1.0;
+ double boom_sd, length_sd;
+-int errno;
+ int K_times=1, K_times_max=10;
+--- yagiuda-1.19.orig/src/fill_v_vector.c
++++ yagiuda-1.19/src/fill_v_vector.c
+@@ -5,7 +5,6 @@
+ #include <math.h>
+ #include <errno.h>
+ #include "yagi.h"
+-extern int errno;
+ 
+ void fill_v_vector(int driven, int parasitic, double **driven_data, double *v)
+ {
+--- yagiuda-1.19.orig/src/vswr.c
++++ yagiuda-1.19/src/vswr.c
+@@ -6,7 +6,6 @@
+ 
+ #include <errno.h>
+ #include "yagi.h"
+-extern int errno;
+ 
+ 
+ /* We calculate the vswr, given the magnitude of the reflection 
+--- yagiuda-1.19.orig/src/show_all_optimise_parameters.c
++++ yagiuda-1.19/src/show_all_optimise_parameters.c
+@@ -4,7 +4,6 @@
+ #include <stdio.h>
+ #include <errno.h>
+ #include "yagi.h"
+-extern int errno;
+ 
+ /* Since there are a large number of parametres set in the header file
+ and 'optimise.c', I've added a function to print the lot. This will
+--- yagiuda-1.19.orig/src/z_input.c
++++ yagiuda-1.19/src/z_input.c
+@@ -5,7 +5,6 @@
+ #include <math.h>
+ #include <errno.h>
+ #include "yagi.h"
+-extern int errno;
+ 
+ /* compute the input impedance (driving impedance) */
+ 
+--- yagiuda-1.19.orig/src/gaussian.c
++++ yagiuda-1.19/src/gaussian.c
+@@ -6,7 +6,6 @@
+ #include <errno.h>
+ #include "yagi.h"
+ 
+-extern int errno;
+ 
+ /* The function Gaussian (normal) distibuted  deviate with 0 mean
+ and unit standard deviation. This is used in yagi to as it best represents
+--- yagiuda-1.19.orig/src/max_gain.c
++++ yagiuda-1.19/src/max_gain.c
+@@ -6,7 +6,6 @@
+ #include <errno.h>
+ #include "yagi.h"
+ 
+-extern int errno;
+ 
+ /* The maximum gain of a Yagi is given in the ARRL handbook, 1991, pp33-17
+ as 12dB at one wavelength boom length, rising at 2.6 dB 
+--- yagiuda-1.19.orig/src/reflection_coefficient.c
++++ yagiuda-1.19/src/reflection_coefficient.c
+@@ -5,7 +5,6 @@
+ #include <math.h>
+ #include <errno.h>
+ #include "yagi.h"
+-extern int errno;
+ extern double Zo;
+ 
+ void reflection_coefficient(struct FCOMPLEX zi, double *magnitude, double *phase)
+--- yagiuda-1.19.orig/src/input.c
++++ yagiuda-1.19/src/input.c
+@@ -15,6 +15,7 @@ manually if required. Be warned though,
+ manually! 
+ */
+ 
++#include <string.h>
+ #include <stdio.h>
+ #include <malloc.h>
+ #include <math.h>
+@@ -79,17 +80,17 @@ int main(int argc, char **argv)
+ 	if(data_entry=='i' || data_entry=='I')
+ 	{
+ 		scale_factor=39.37; /* inches in 1m */
+-		type="\"\"";
++		strcpy(type, "\"\"");
+ 	}
+ 	else if(data_entry=='m' || data_entry=='m')
+ 	{
+ 		scale_factor=1000.0; /* mm in 1m */
+-		type="mm";
++		strcpy(type, "mm");
+ 	}
+ 	else if(data_entry=='w' || data_entry=='w')
+ 	{
+ 		scale_factor=frequency/300; /* wavelegths in 1m */
+-		type="lambda";
++		strcpy(type, "lambda");
+ 	}
+ 	else
+ 		exit(1);
+--- yagiuda-1.19.orig/src/end_stop.c
++++ yagiuda-1.19/src/end_stop.c
+@@ -2,9 +2,9 @@
+ #include <stdlib.h>
+ #endif
+ #include <stdio.h>
++#include <errno.h>
+ #include "yagi.h"
+ 
+-extern int errno;
+ 
+ void end_if_stop_exists(int *i, int iterations,int divisor)
+ {
+--- yagiuda-1.19.orig/src/write_gain.c
++++ yagiuda-1.19/src/write_gain.c
+@@ -5,7 +5,6 @@
+ #include <math.h>
+ #include <errno.h>
+ #include "yagi.h"
+-extern int errno;
+ 
+ 
+ void write_gain_at_various_angles(FILE *gain_fp, double angular_step, double pin, double normalised_f, double f, struct element_data *coordinates, struct FCOMPLEX *current, int elements, double design_f)
+--- yagiuda-1.19.orig/src/test2.c
++++ yagiuda-1.19/src/test2.c
+@@ -6,7 +6,6 @@
+ #include <errno.h>
+ #include "yagi.h"
+ 
+-extern int errno;
+ 
+ int main(int argc, char **argv)
+ {
+--- yagiuda-1.19.orig/src/getfiles.c
++++ yagiuda-1.19/src/getfiles.c
+@@ -6,7 +6,6 @@
+ #include <errno.h>
+ #include "yagi.h"
+ 
+-extern int errno;
+ 
+ /* This routine checks the number of arguments. If thats OK, the 
+ only arguemnt is the input data file. The output data file name is
+--- yagiuda-1.19.orig/src/solve.c
++++ yagiuda-1.19/src/solve.c
+@@ -5,7 +5,6 @@
+ #include <memory.h>
+ #include <errno.h>
+ #include "yagi.h"
+-extern int errno;
+ 
+ #define MAX_NON_ITERATIVE 100000
+ 
+--- yagiuda-1.19.orig/src/copy_matrix.c
++++ yagiuda-1.19/src/copy_matrix.c
+@@ -4,7 +4,6 @@
+ #include <errno.h>
+ #include "yagi.h"
+ 
+-extern int errno;
+ 
+ void copy_matrix(int length, int width, double **to, double **from) 
+ {
+--- yagiuda-1.19.orig/src/optimise.c
++++ yagiuda-1.19/src/optimise.c
+@@ -42,8 +42,6 @@ int main(int argc, char **argv)
+ 	/* Since there are so many command line options to get, as of version 1.10
+ 	of the software, all the options are got from a sepparate file, using lots
+ 	of global variables! */
+-	flag.eflg=31;    /* set elements to move */
+-	flag.oflg=32805; /* Set things to optimise for */
+ 	test_for_stop_file(); /* Exit if the file "stop" exists */
+ 	get_command_line_options(argc, argv,&flag);
+ 	if(!flag.Tflg && !flag.tflg)
+@@ -51,6 +49,9 @@ int main(int argc, char **argv)
+ 	/* a function check_flags() does all the checking to make sure flags 
+ 	set (by user adding options) are reasonable. It also acts on many of them. */
+ 	check_flags(flag, argc, optind, argv[0]);
++    /* set these _after_ check_flags, FMM 20100131 */
++	flag.eflg=31;    /* set elements to move */
++	flag.oflg=32805; /* Set things to optimise for */
+ 	iterations=atoi(argv[optind+1]);
+ 	if(flag.Aflg)
+ 		iterations=2;
+--- yagiuda-1.19.orig/src/gain.c
++++ yagiuda-1.19/src/gain.c
+@@ -8,7 +8,6 @@
+ #include "yagi.h"
+ #define TINY 1e-10
+ 
+-extern int errno;
+ 
+ /* This function finds the gain both in the E plane (xz plane) and the
+ H plane (xy plane) at angle (theta, phi). The method used is as described
+--- yagiuda-1.19.orig/src/fill_z_matrix.c
++++ yagiuda-1.19/src/fill_z_matrix.c
+@@ -4,7 +4,6 @@
+ #include <stdio.h>
+ #include <errno.h>
+ #include "yagi.h"
+-extern int errno;
+ /* We calculate the full Z matrix. Since the matrix is symmetrical, we only
+ need compute Z_i,j for j=1 to i. The function mutual, filles in Zji, when
+ we ask it to fill in Zij. */
+--- yagiuda-1.19.orig/src/write_coordinates.c
++++ yagiuda-1.19/src/write_coordinates.c
+@@ -5,7 +5,6 @@
+ #include <math.h>
+ #include <errno.h>
+ #include "yagi.h"
+-extern int errno;
+ 
+ /* This function write the x and y locations of the centre of the element and
+ the length of the elements to disk */
+--- yagiuda-1.19.orig/src/write_header_to_disk.c
++++ yagiuda-1.19/src/write_header_to_disk.c
+@@ -7,7 +7,6 @@
+ #include <errno.h>
+ #include "yagi.h"
+ 
+-extern int errno;
+ 
+ void write_header_to_disk(FILE *ofp, int elements, int driven,
+ int parasitic, double min_frequency, double max_frequency, double frequency,
+--- yagiuda-1.19.orig/src/check_flags.c
++++ yagiuda-1.19/src/check_flags.c
+@@ -8,7 +8,6 @@
+ 
+ /* This function checks that all the options are sensible */
+ 
+-extern int errno;
+ 
+ void check_flags(struct flags flag, int argc, int optind, char *exefilename)
+ {
diff --git a/debian/debian/patches/optopt-declaration b/debian/debian/patches/optopt-declaration
new file mode 100644
index 0000000..a8bcca8
--- /dev/null
+++ b/debian/debian/patches/optopt-declaration
@@ -0,0 +1,18 @@
+Author: Jakub Wilk <jwilk at debian.org>
+Description: Fix FTBFS on mips/mipsel
+Integrated-by: Ralf Treinen <treinen at debian.org>
+Debian-bug: 593486
+
+Index: yagiuda-1.19/src/getopt.c
+===================================================================
+--- yagiuda-1.19.orig/src/getopt.c	2010-08-25 22:15:18.000000000 +0200
++++ yagiuda-1.19/src/getopt.c	2010-08-25 22:15:57.000000000 +0200
+@@ -35,7 +35,7 @@
+ 
+ int     opterr = 1;
+ int     optind = 1;
+-int     optopt;
++static int optopt;
+ char    *optarg;
+ 
+ void ERR(char *s, char c, char **argv)  
diff --git a/debian/debian/patches/series b/debian/debian/patches/series
new file mode 100644
index 0000000..6177f42
--- /dev/null
+++ b/debian/debian/patches/series
@@ -0,0 +1,4 @@
+spelling.patch
+compiler-flags.patch
+optopt-declaration
+debian-changes-1.19-6.2
diff --git a/debian/debian/patches/spelling.patch b/debian/debian/patches/spelling.patch
new file mode 100644
index 0000000..3f27853
--- /dev/null
+++ b/debian/debian/patches/spelling.patch
@@ -0,0 +1,235 @@
+Description: This fixes spelling through the codebase, some changes necessary, some not
+Author: Dave Hibberd <d at vehibberd.com>
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+
+--- a/doc/output.1.html
++++ b/doc/output.1.html
+@@ -84,7 +84,7 @@
+           range, or if it happened to go 3dB down in two or  more
+           points.  You  can  change  E_max,  if  you need to, but
+           rarely if every should  need  to.  I've  never  seen  a
+-          failure here, but are guarding against one. If you dont
++          failure here, but are guarding against one. If you don't
+           want the pattern, use  the  -e  option  instead,  which
+           skips it. See also '-H' below.
+ 
+@@ -96,7 +96,7 @@
+           range, or if it happended to go 3dB down in two or more
+           points.  Also,  if it goes more than 3dB down, but that
+           starts to come up again. You can change H_max,  if  you
+-          need to, as failures do occasionally occur. If you dont
++          need to, as failures do occasionally occur. If you don't
+           want the pattern use -h option instead, which will skip
+           it.
+           An obvious example of an antenna where  you  cant  find
+--- a/src/com_hack.h
++++ b/src/com_hack.h
+@@ -10,7 +10,7 @@
+ 
+              fcomplex complex(double re, double im);
+ 
+-Hence all the C routines used here *must* be converted to double. Please *dont*
++Hence all the C routines used here *must* be converted to double. Please *don't*
+ use the numerical recipes header file 'complex.h', use my 'complex_hack.h' 
+ 
+ The line:
+--- a/src/dobetter.c
++++ b/src/dobetter.c
+@@ -24,7 +24,7 @@
+ 			if(run_first_time==TRUE && flag.wflg)
+ 				fprintf(update_fp, "Optimised for wide-band use\n");
+ 			if(run_first_time==TRUE && flag.gflg)
+-				fprintf(update_fp, "Optimised With the genetic algoritm\n");
++				fprintf(update_fp, "Optimised With the genetic algorithm\n");
+ 			run_first_time=FALSE;
+ 
+ 			print_relavent_performance_data(update_fp,"",i,flag,n,new_perf,TRUE,print_fitnessQ); 
+--- a/src/end_stop.c
++++ b/src/end_stop.c
+@@ -12,7 +12,7 @@
+ 	{
+ 		if(fopen("stop","rt") != NULL)
+ 			*i=iterations;  /* force it to exit very soon */
+-		errno=0; /* Will be set to non zero if file dont exist */
++		errno=0; /* Will be set to non zero if file doesn't exist */
+ 		printf("%d\r", *i);
+ 	} 
+ }
+--- a/src/get_command_line_options.c
++++ b/src/get_command_line_options.c
+@@ -248,7 +248,7 @@
+ 					K_times_max=atoi(optarg);
+ 					if(K_times_max < 1 )
+ 					{
+-						error_message("The '-K' option setting the number of attemps to stay with hte original data after a good one found, to avoid local optimums, must be an integer > 1.\n");
++						error_message("The '-K' option setting the number of attempts to stay with hte original data after a good one found, to avoid local optimums, must be an integer > 1.\n");
+ 						exit(1);
+ 					}
+ 			      break;
+@@ -293,7 +293,7 @@
+ 						exit(1);
+ 					}
+ 					if(flag->eflg==0)
+-						printf("Thats odd, you dont want to move any elements (-e0 option)\n");
++						printf("Thats odd, you don't want to move any elements (-e0 option)\n");
+ 			      break;
+ 			 case 'h':
+ 			      flag->hflg=1;
+--- a/src/linear.c
++++ b/src/linear.c
+@@ -18,7 +18,7 @@
+ 	total_elements_tested=flag.Cflg; /* The user wants to test this number */
+ 	if(total_elements_tested > elements -1)
+ 	{
+-		printf("We can only try to get the currents similar on the %d elements, and we dont have the %d elements that you requsted via the -C option\n", elements-1, flag.Cflg);
++		printf("We can only try to get the currents similar on the %d elements, and we don't have the %d elements that you requsted via the -C option\n", elements-1, flag.Cflg);
+ 		exit(1);
+ 	}
+ 	for(k=elements; k>elements-total_elements_tested; k--)
+--- a/src/max_side.c
++++ b/src/max_side.c
+@@ -13,7 +13,7 @@
+ 
+ The other one, find_max_sidelobe_slow is much more accurate, doing a good
+ job of finding the sidelobes, but takes longer to do. Hence its not
+-really suitable for optimisation, but its okay for 'output' where we dont
++really suitable for optimisation, but its okay for 'output' where we don't
+ care too much about spped. */
+ 
+ extern double angular_stepsize_2,min_offset_from_peak;
+--- a/src/nr_hack.h
++++ b/src/nr_hack.h
+@@ -8,7 +8,7 @@
+ 
+              void cisi(double x, double *ci, double *si);
+ 
+-Hence all the C routines used here *must* be converted to double. Please *dont*
++Hence all the C routines used here *must* be converted to double. Please *don't*
+ use the numerical recipes header file 'nr.h', use my 'nr_hacked.h' */
+ 
+ 
+--- a/src/perform.c
++++ b/src/perform.c
+@@ -91,7 +91,7 @@
+ 		/* The folloing is an imperical relationship developed by me, by writing
+ 		a number of VSWR's down (1.0, 1.1, 1.5, 2.0, 3.0 and infinity and 
+ 		writing down what I donsidered their fitness (1.0, 0.9, 0.8, 0.5 and 0.1)
+-		then fitting a polynomial thru em. The fitness dont work out exactly
++		then fitting a polynomial thru em. The fitness doesn't work out exactly
+ 		as above, but they seem reasonable. This has a maximum value of 
+ 		0.98220 at VSWR=1.0, but I wont bother addeding the scale factor
+ 		1/.98220 = 1.0181, since this will not improve things - only slow the 
+--- a/src/randomise.c
++++ b/src/randomise.c
+@@ -55,7 +55,7 @@
+ 		{
+ 			y=1+0.02*max_percent*(randreal()-0.5);
+ 			parasitic_data[i][LENGTH]*=y;
+-			/* make sure directors dont get longer down the boom */
++			/* make sure directors don't get longer down the boom */
+ 			if((parasitic_data[i][LENGTH]>parasitic_data[i-1][LENGTH]) && (i>2))
+ 				parasitic_data[i][LENGTH]=parasitic_data[i-1][LENGTH]; 
+ 		}
+--- a/man/man1/first.1
++++ b/man/man1/first.1
+@@ -59,7 +59,7 @@
+ .SH AUTHORS
+ 
+ Dr. David Kirkby G8WRB (david.kirkby at onetel.net).
+-with help with the conversion to the DOS/PC enviroment from Dr. Joe Mack NA3T (mack at fcrfv2.ncifcrf.gov)
++with help with the conversion to the DOS/PC environment from Dr. Joe Mack NA3T (mack at fcrfv2.ncifcrf.gov)
+ .SH "SEE ALSO"
+ input(1), output(1), yagi(1), optimise(1).
+ .SH BUGS
+--- a/man/man1/output.1
++++ b/man/man1/output.1
+@@ -58,10 +58,10 @@
+ (2) The 3dB point is outside the assumed angular range. 
+ You then have to either:
+ .br
+-(a) Calculate with the -e option, which avoids calculation of the 3dB E-plane beamwidth or
++(a) Calculate with the \-e option, which avoids calculation of the 3dB E-plane beamwidth or
+ .br
+-(b) Do (a) above, then find approximately where the 3dB point is (from the .gai file -see later), then set
+-options -E and -H so the program calculates them properly.
++(b) Do (a) above, then find approximately where the 3dB point is (from the .gai file - see later), then set
++options \-E and \-H so the program calculates them properly.
+ .LP
+ 
+ 
+@@ -89,18 +89,18 @@
+ .TP
+ .B \-p  
+ Put data into a file filename.freq for reading into gnuplot, and a commmand file filename.gc for
+-gnuplot to use. (run 'output -p filename' then 'gnuplot filename.gc' )
++gnuplot to use. (run 'output \-p filename' then 'gnuplot filename.gc' )
+ .TP
+ .B \-s
+ Suppress all diagnostic output. By default, the program print the percentage of the job completed.
+ .TP
+ .BI \-E E_max
+ When the program computes the E-plane 3dB beamwidth, it assumes the antenna pattern is 3dB down somewhere in the range 90 to Emax, where E_max is by default 179 degrees. This can fail if it is never 3dB down in the range, or if it happened to go 3dB down in two or more points. You can change E_max, if you need to, but
+-rarely if every should need to. I've never seen a failure here, but are guarding against one. If you dont want the pattern, use the -e option instead, which skips it. See also '-H' below.
++rarely if every should need to. I've never seen a failure here, but are guarding against one. If you don't want the pattern, use the \-e option instead, which skips it. See also '\-H' below.
+ .TP
+ .BI \-H H_max
+ When the program computes the H-plane 3dB beamwidth, it assumes the antenna pattern is 3dB down somewhere in the range 0 to Hmax, where H_max is by defualt 60 degrees. This can fail if it is never 3dB down in the range, or if it happended to go 3dB down in two or more points. Also, if it goes more than 3dB down, but that starts to come up again. You can change H_max, if you need to, as
+-failures do occasionally occur. If you dont want the pattern use -h option instead, which will skip it.
++failures do occasionally occur. If you don't want the pattern use \-h option instead, which will skip it.
+ .br 
+ An obvious example of an antenna where you cant find the 3dB bandwidth for the H-plane is the 1ele dipole. The radiation is symmetrical about its axis, so the level is the same everywhere in the H plane. The program automatically avoids calculating it for a 1 ele beam.
+ 
+--- a/man/man5/output.5
++++ b/man/man5/output.5
+@@ -24,9 +24,9 @@
+ .nf
+ f(MHz) E(deg) H(deg) R       jX   VSWR  Gain(dBi)  FB(dB) SideLobes(dB)
+ .br
+-144.000 54.7  71.5  44.47  -2.35  1.136  9.386     21.944     16.650
++144.000 54.7  71.5  44.47  \-2.35  1.136  9.386     21.944     16.650
+ .br
+-144.500 54.0  70.1  41.34  -0.75  1.210  9.553     27.244     17.153
++144.500 54.0  70.1  41.34  \-0.75  1.210  9.553     27.244     17.153
+ .br
+ 145.000 53.2  68.4  37.55   1.61  1.335  9.742    103.055     17.777
+ .br
+@@ -53,29 +53,29 @@
+ .br
+ The FB(dB) column is the front to back ratio in dB. 
+ .br
+-The Sidelobes(dB) column is the minimum level in dB down from the peak gain of any sidelobe. This is not calculated unless the '-c' option is used, and then only on some optimisation techniques.
++The Sidelobes(dB) column is the minimum level in dB down from the peak gain of any sidelobe. This is not calculated unless the '\-c' option is used, and then only on some optimisation techniques.
+ 
+ .SH Example of a .gai File
+ The following is a small section of the .gai file.
+ .nf
+ f(MHz)     theta  gain-E(dBi) G(E)-peak   phi   gain-H(dBi) G(H)-peak
+-144.0000 -90.0000  -12.5584   -21.9444 -180.0000 -12.5584  -21.9444
++144.0000 \-90.0000  \-12.5584   \-21.9444 \-180.0000 \-12.5584  \-21.9444
+ .br
+-144.0000 -45.0000   -7.3507   -16.7367 -135.0000  -3.5971  -12.9830
++144.0000 \-45.0000   \-7.3507   \-16.7367 \-135.0000  \-3.5971  \-12.9830
+ .br
+-144.0000   0.0000 -999.0000 -1008.3860  -90.0000  -0.9010  -10.2870
++144.0000   0.0000 \-999.0000 \-1008.3860  \-90.0000  \-0.9010  \-10.2870
+ .br
+-144.0000  45.0000    0.1848    -9.2012  -45.0000   4.0261   -5.3599
++144.0000  45.0000    0.1848    \-9.2012  \-45.0000   4.0261   \-5.3599
+ .br
+ 144.0000  90.0000    9.3860     0.0000    0.0000   9.3860    0.0000
+ .br
+-144.0000 135.0000    0.1848    -9.2012   45.0000   4.0261   -5.3599
++144.0000 135.0000    0.1848    \-9.2012   45.0000   4.0261   \-5.3599
+ .br
+-144.0000 180.0000 -999.0000 -1008.3860   90.0000  -0.9010  -10.2870
++144.0000 180.0000 \-999.0000 \-1008.3860   90.0000  \-0.9010  \-10.2870
+ .br
+-144.0000 225.0000   -7.3507   -16.7367  135.0000  -3.5971  -12.9830
++144.0000 225.0000   \-7.3507   \-16.7367  135.0000  \-3.5971  \-12.9830
+ .br
+-144.0000 270.0000  -12.5584   -21.9444  180.0000 -12.5584  -21.9444
++144.0000 270.0000  \-12.5584   \-21.9444  180.0000 \-12.5584  \-21.9444
+ .br
+ 
+ .SH What is what in the .gai file
diff --git a/debian/debian/rules b/debian/debian/rules
new file mode 100755
index 0000000..dd9063b
--- /dev/null
+++ b/debian/debian/rules
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@ --with autoreconf
diff --git a/debian/debian/source/format b/debian/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/debian/watch b/debian/debian/watch
new file mode 100644
index 0000000..b0692c0
--- /dev/null
+++ b/debian/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://www.g8wrb.org/yagi yagiuda-(.+)\.tar\.gz
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..b5c7362
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,4 @@
+BUGS
+NEWS
+README
+TODO
diff --git a/debian/patches/compiler-flags.patch b/debian/patches/compiler-flags.patch
new file mode 100644
index 0000000..4062134
--- /dev/null
+++ b/debian/patches/compiler-flags.patch
@@ -0,0 +1,14 @@
+Description: Fixes buildtime error caused by fprintf and -Wformat-security default flag
+Author: Dave Hibberd <d at vehibberd.com>
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+
+--- a/src/error_message.c
++++ b/src/error_message.c
+@@ -6,5 +6,5 @@
+ 
+ void error_message(char *str)
+ {
+-	fprintf(stderr,str);
++	fputs(str,stderr);
+ }
diff --git a/debian/patches/debian-changes-1.19-6.2 b/debian/patches/debian-changes-1.19-6.2
new file mode 100644
index 0000000..5ed2956
--- /dev/null
+++ b/debian/patches/debian-changes-1.19-6.2
@@ -0,0 +1,496 @@
+Description: Upstream changes introduced up to version 1.19-6.2
+ This patch has been created by dpkg-source during the package build.
+
+--- yagiuda-1.19.orig/README
++++ yagiuda-1.19/README
+@@ -17,5 +17,4 @@ email:david.kirkby at onetel.net
+              Fax: 020 7679 6406 
+ 
+ The *latest* version will be found at:
+-http://www.medphys.ucl.ac.uk/~davek/ham/yagi/
+-
++http://www.g8wrb.org/yagi/
+--- yagiuda-1.19.orig/man/man5/output.5
++++ yagiuda-1.19/man/man5/output.5
+@@ -31,10 +31,10 @@ f(MHz) E(deg) H(deg) R       jX   VSWR
+ 145.000 53.2  68.4  37.55   1.61  1.335  9.742    103.055     17.777
+ .br
+ 145.500 52.3  66.6  33.26   5.00  1.530  9.947     25.734     18.547
+-.b
++.br
+ 146.000 51.3  64.6  28.77   9.63  1.832 10.149     18.919     18.919
+ 
+-.tp
++.nf  
+ .br
+ .SH What is what in the .dat file
+ The f(MHz) column is the frequency (MHz) at which the data is evaluated at.
+--- yagiuda-1.19.orig/man/man5/yagi.5
++++ yagiuda-1.19/man/man5/yagi.5
+@@ -28,9 +28,6 @@ offset(bytes)              information
+ 36                         step_frequency       double
+ 44                         angular_step         double
+ 52                         0                    double
+-.                          .                      .
+-.                          .                      .
+-.                          .                      .
+ 92                         0                    double
+ 
+ Following the header, there starts the coordinates(x,y,l) of each
+@@ -51,10 +48,10 @@ offset(bytes)              information
+ 100+(n-1)*24               x_n                  double
+ 100+(n-1)*24+8             y_n                  double
+ 100+(n-1)*24+16            l_n                  double
+-.............. Repeated for each element.
++--------------  Repeated for each element.
+ 100+24*elements            Voltage1             fcomplex  /* voltage */
+ 100+24*elements+(n-1)*16   Voltage_n            fcomplex
+-.............. Repeated for each element n at each frequency step f.
++--------------  Repeated for each element n at each frequency step f.
+ 100+40*elements            Current1 at f1          fcomplex /* current */
+ 100+40*elements+(n-1)*16   Current_n at f1         fcomplex
+ 
+--- yagiuda-1.19.orig/man/man5/input.5
++++ yagiuda-1.19/man/man5/input.5
+@@ -35,7 +35,7 @@ ANGULAR_STEP
+ DATA_DRIVEN 
+ DATA_PARASITIC
+ 
+-.f
++.nf
+ The 
+ .IR #
+ is used as a comment.
+--- yagiuda-1.19.orig/man/man1/optimise.1
++++ yagiuda-1.19/man/man1/optimise.1
+@@ -358,7 +358,7 @@ is the standard deviation in mm of the a
+ of elements will be with 3 standard deviations of the mean length (stats theory says this), set
+ -t0.2 if virtually all (well 99.7%) of elements are within 3x0.2=0.6 mm of the correct length. This
+ option *must* be used with the '-T'  option and can't be used with any other options apart from
+-'-Z', '-v' and '-d'.
++\&'-Z', '-v' and '-d'.
+ .TP
+ .BI \-x reactance
+ When optimising an antenna, consider any input reactance of less than 
+@@ -450,7 +450,7 @@ is the standard deviation in mm of the a
+ of elements will be with 3 standard deviations of the correct position (stats theory says this), set
+ -T2 if virtually all (well 99.7%) of elements are within 3x2=6 mm of the correct position.This
+ option *must* be used with the '-t'  option and can't be used with any other options apart from
+-'-Z', '-v' and '-d'.
++\&'-Z', '-v' and '-d'.
+ .TP
+ .BI \-W  Weighted_algorithm
+ Try to get an antenna which is better according to a weighted combination of 
+--- yagiuda-1.19.orig/man/man1/output.1
++++ yagiuda-1.19/man/man1/output.1
+@@ -130,7 +130,7 @@ filename        ASCII file with antenna
+ filename.out    Binary data file, created by yagi.
+ filename.dat    ASCII file with gain, FB ratio etc.
+ filename.gai    ASCII file with angular dependence of gain.
+-.f
++.nf
+ .br
+ .SH "SEE ALSO"
+ first(1), input(1), yagi(1), optimise(1).
+--- yagiuda-1.19.orig/src/genetic_algorithm_lib.c
++++ yagiuda-1.19/src/genetic_algorithm_lib.c
+@@ -32,7 +32,6 @@ double pmutate=0.1 ;
+ double pcross=0.9 ;
+ double psimplex=0.5 ;
+ double ptrans=0.03 ;
+-extern int errno;
+ 
+ GeneRecord *Pop1=NULL,*Pop2=NULL ;
+ 
+--- yagiuda-1.19.orig/src/power_input.c
++++ yagiuda-1.19/src/power_input.c
+@@ -6,7 +6,6 @@
+ #include <errno.h>
+ #include "yagi.h"
+ 
+-extern int errno;
+ 
+ /* uses formulae of page 1-12 of Lawsons book. No idea where
+ it comes from! */
+--- yagiuda-1.19.orig/src/auto.c
++++ yagiuda-1.19/src/auto.c
+@@ -7,7 +7,6 @@
+ 
+ #include "yagi.h"
+ 
+-extern int errno;
+ /* The function automatic_enhancement optimises only for the gain, by 
+ adjusting the length of the reflector (A=-1), the driven(A=0) the 
+ first director (A=1), second director (A=2 ) etc */
+--- yagiuda-1.19.orig/src/get_number_of_elements.c
++++ yagiuda-1.19/src/get_number_of_elements.c
+@@ -6,7 +6,6 @@
+ #include <errno.h>
+ #include "yagi.h"
+ 
+-extern int errno;
+ 
+ int get_number_of_elements(char *input_filename, int *driven , int *parasitic)
+ {
+--- yagiuda-1.19.orig/src/self.c
++++ yagiuda-1.19/src/self.c
+@@ -8,7 +8,6 @@
+ #include <math.h>
+ #include <errno.h>
+ #include "yagi.h"
+-extern int errno;
+ 
+ void self_impedance(int i, double frequency, int driven, int parasitic, double **data, double **impedance)
+ {
+--- yagiuda-1.19.orig/src/perform.c
++++ yagiuda-1.19/src/perform.c
+@@ -11,7 +11,6 @@
+ between 0 and 1, for use in a genetic algorithm to get performance. All
+ parameters are roughly linear */ 
+ 
+-extern int errno;
+ extern double Zo;
+ 
+ double performance(struct flags flag, struct performance_data data, struct performance_data max, struct performance_data weight, struct performance_data start)
+--- yagiuda-1.19.orig/src/mutual.c
++++ yagiuda-1.19/src/mutual.c
+@@ -6,7 +6,6 @@
+ #include <errno.h>
+ #include "yagi.h"
+ 
+-extern int errno;
+ 
+ void mutual_impedance(int i, int j, double frequency, int driven, int parasitic, double **d, double **p, double **impedance)
+ {
+--- yagiuda-1.19.orig/src/sens.c
++++ yagiuda-1.19/src/sens.c
+@@ -9,7 +9,6 @@
+ #include <errno.h>
+ #include "yagi.h"
+ 
+-extern int errno;
+ extern double boom_factor;
+ 
+ void sensitivity(double boom_sd, double length_sd, double **driven_data, double**parasitic_data, int driven, int parasites)
+--- yagiuda-1.19.orig/src/randomise.c
++++ yagiuda-1.19/src/randomise.c
+@@ -10,7 +10,6 @@
+ #include "yagi.h"
+ 
+ extern double boom_factor;
+-extern int errno;
+ #define MIN_RDS   0.05 /* Minimum reflector-driven spacing in lambda */
+ 
+ void randomise(int randomisation_method, double frequency, double max_percent, double **driven_data, double**parasitic_data, int driven, int parasites)
+--- yagiuda-1.19.orig/src/get_command_line_options.c
++++ yagiuda-1.19/src/get_command_line_options.c
+@@ -9,7 +9,6 @@
+ 
+ extern char     *optarg;
+ extern int optind, opterr;
+-extern int errno;
+ extern struct performance_data max, weight;
+ extern double original_percent; 
+ extern double percent;
+@@ -21,7 +20,6 @@ extern int iterations, fitness_method;
+ extern double vswr;
+ extern double boom_sd, length_sd;
+ extern int K_times, K_times_max;
+-int errno;
+ double min_offset_from_peak=0.0;
+ double angular_stepsize_2=0.0;
+ 
+--- yagiuda-1.19.orig/src/test_stop.c
++++ yagiuda-1.19/src/test_stop.c
+@@ -2,10 +2,9 @@
+ #include <stdlib.h>
+ #endif
+ #include <stdio.h>
++#include <errno.h>
+ #include "yagi.h"
+ 
+-extern int errno;
+-
+ void test_for_stop_file(void)
+ {
+ 	if (   fopen("stop","r") !=NULL        )
+--- yagiuda-1.19.orig/src/read_header.c
++++ yagiuda-1.19/src/read_header.c
+@@ -6,7 +6,6 @@
+ #include <unistd.h>
+ #include <errno.h>
+ #include "yagi.h"
+-extern int errno;
+ 
+ int read_header(FILE *ifp, FILE *ofp, double *min_f, double *max_f,
+ 	 double *step_f, double *f, double *angular_step)
+--- yagiuda-1.19.orig/src/better.c
++++ yagiuda-1.19/src/better.c
+@@ -10,7 +10,6 @@ its better. */
+ 
+ extern double vswr, Zo;
+ extern struct performance_data max;
+-extern int errno;
+ int is_it_better(int criteria,struct performance_data n, struct performance_data o) 
+ {
+ 	double resistance_error;
+--- yagiuda-1.19.orig/src/fitness.c
++++ yagiuda-1.19/src/fitness.c
+@@ -9,7 +9,6 @@ double which increases with a better ant
+ 
+ #include "yagi.h"
+ 
+-extern int errno;
+ extern struct performance_data max, weight;
+ 
+ double get_genetic_algorithm_fitness(struct flags flag, double frequency, int driven, int parasitic, double **driven_data, double **parasitic_data, double *v, double **z, double *pin, struct FCOMPLEX *voltage, struct FCOMPLEX *current, struct FCOMPLEX *input_impedance, struct element_data *coordinates, double **A, double  *b, int *indx, struct performance_data *data2) 
+--- yagiuda-1.19.orig/src/globals.h
++++ yagiuda-1.19/src/globals.h
+@@ -1,6 +1,5 @@
+ extern char     *optarg;
+ extern int optind, opterr;
+-extern int errno;
+ 
+ double original_percent=10; /* Automatic changing: 10, to 1, then 0.1 then 0.01% */
+ double percent;
+@@ -12,5 +11,4 @@ int popsize=0;
+ int iterations, fitness_method=0;
+ double vswr=1.0;
+ double boom_sd, length_sd;
+-int errno;
+ int K_times=1, K_times_max=10;
+--- yagiuda-1.19.orig/src/fill_v_vector.c
++++ yagiuda-1.19/src/fill_v_vector.c
+@@ -5,7 +5,6 @@
+ #include <math.h>
+ #include <errno.h>
+ #include "yagi.h"
+-extern int errno;
+ 
+ void fill_v_vector(int driven, int parasitic, double **driven_data, double *v)
+ {
+--- yagiuda-1.19.orig/src/vswr.c
++++ yagiuda-1.19/src/vswr.c
+@@ -6,7 +6,6 @@
+ 
+ #include <errno.h>
+ #include "yagi.h"
+-extern int errno;
+ 
+ 
+ /* We calculate the vswr, given the magnitude of the reflection 
+--- yagiuda-1.19.orig/src/show_all_optimise_parameters.c
++++ yagiuda-1.19/src/show_all_optimise_parameters.c
+@@ -4,7 +4,6 @@
+ #include <stdio.h>
+ #include <errno.h>
+ #include "yagi.h"
+-extern int errno;
+ 
+ /* Since there are a large number of parametres set in the header file
+ and 'optimise.c', I've added a function to print the lot. This will
+--- yagiuda-1.19.orig/src/z_input.c
++++ yagiuda-1.19/src/z_input.c
+@@ -5,7 +5,6 @@
+ #include <math.h>
+ #include <errno.h>
+ #include "yagi.h"
+-extern int errno;
+ 
+ /* compute the input impedance (driving impedance) */
+ 
+--- yagiuda-1.19.orig/src/gaussian.c
++++ yagiuda-1.19/src/gaussian.c
+@@ -6,7 +6,6 @@
+ #include <errno.h>
+ #include "yagi.h"
+ 
+-extern int errno;
+ 
+ /* The function Gaussian (normal) distibuted  deviate with 0 mean
+ and unit standard deviation. This is used in yagi to as it best represents
+--- yagiuda-1.19.orig/src/max_gain.c
++++ yagiuda-1.19/src/max_gain.c
+@@ -6,7 +6,6 @@
+ #include <errno.h>
+ #include "yagi.h"
+ 
+-extern int errno;
+ 
+ /* The maximum gain of a Yagi is given in the ARRL handbook, 1991, pp33-17
+ as 12dB at one wavelength boom length, rising at 2.6 dB 
+--- yagiuda-1.19.orig/src/reflection_coefficient.c
++++ yagiuda-1.19/src/reflection_coefficient.c
+@@ -5,7 +5,6 @@
+ #include <math.h>
+ #include <errno.h>
+ #include "yagi.h"
+-extern int errno;
+ extern double Zo;
+ 
+ void reflection_coefficient(struct FCOMPLEX zi, double *magnitude, double *phase)
+--- yagiuda-1.19.orig/src/input.c
++++ yagiuda-1.19/src/input.c
+@@ -15,6 +15,7 @@ manually if required. Be warned though,
+ manually! 
+ */
+ 
++#include <string.h>
+ #include <stdio.h>
+ #include <malloc.h>
+ #include <math.h>
+@@ -79,17 +80,17 @@ int main(int argc, char **argv)
+ 	if(data_entry=='i' || data_entry=='I')
+ 	{
+ 		scale_factor=39.37; /* inches in 1m */
+-		type="\"\"";
++		strcpy(type, "\"\"");
+ 	}
+ 	else if(data_entry=='m' || data_entry=='m')
+ 	{
+ 		scale_factor=1000.0; /* mm in 1m */
+-		type="mm";
++		strcpy(type, "mm");
+ 	}
+ 	else if(data_entry=='w' || data_entry=='w')
+ 	{
+ 		scale_factor=frequency/300; /* wavelegths in 1m */
+-		type="lambda";
++		strcpy(type, "lambda");
+ 	}
+ 	else
+ 		exit(1);
+--- yagiuda-1.19.orig/src/end_stop.c
++++ yagiuda-1.19/src/end_stop.c
+@@ -2,9 +2,9 @@
+ #include <stdlib.h>
+ #endif
+ #include <stdio.h>
++#include <errno.h>
+ #include "yagi.h"
+ 
+-extern int errno;
+ 
+ void end_if_stop_exists(int *i, int iterations,int divisor)
+ {
+--- yagiuda-1.19.orig/src/write_gain.c
++++ yagiuda-1.19/src/write_gain.c
+@@ -5,7 +5,6 @@
+ #include <math.h>
+ #include <errno.h>
+ #include "yagi.h"
+-extern int errno;
+ 
+ 
+ void write_gain_at_various_angles(FILE *gain_fp, double angular_step, double pin, double normalised_f, double f, struct element_data *coordinates, struct FCOMPLEX *current, int elements, double design_f)
+--- yagiuda-1.19.orig/src/test2.c
++++ yagiuda-1.19/src/test2.c
+@@ -6,7 +6,6 @@
+ #include <errno.h>
+ #include "yagi.h"
+ 
+-extern int errno;
+ 
+ int main(int argc, char **argv)
+ {
+--- yagiuda-1.19.orig/src/getfiles.c
++++ yagiuda-1.19/src/getfiles.c
+@@ -6,7 +6,6 @@
+ #include <errno.h>
+ #include "yagi.h"
+ 
+-extern int errno;
+ 
+ /* This routine checks the number of arguments. If thats OK, the 
+ only arguemnt is the input data file. The output data file name is
+--- yagiuda-1.19.orig/src/solve.c
++++ yagiuda-1.19/src/solve.c
+@@ -5,7 +5,6 @@
+ #include <memory.h>
+ #include <errno.h>
+ #include "yagi.h"
+-extern int errno;
+ 
+ #define MAX_NON_ITERATIVE 100000
+ 
+--- yagiuda-1.19.orig/src/copy_matrix.c
++++ yagiuda-1.19/src/copy_matrix.c
+@@ -4,7 +4,6 @@
+ #include <errno.h>
+ #include "yagi.h"
+ 
+-extern int errno;
+ 
+ void copy_matrix(int length, int width, double **to, double **from) 
+ {
+--- yagiuda-1.19.orig/src/optimise.c
++++ yagiuda-1.19/src/optimise.c
+@@ -42,8 +42,6 @@ int main(int argc, char **argv)
+ 	/* Since there are so many command line options to get, as of version 1.10
+ 	of the software, all the options are got from a sepparate file, using lots
+ 	of global variables! */
+-	flag.eflg=31;    /* set elements to move */
+-	flag.oflg=32805; /* Set things to optimise for */
+ 	test_for_stop_file(); /* Exit if the file "stop" exists */
+ 	get_command_line_options(argc, argv,&flag);
+ 	if(!flag.Tflg && !flag.tflg)
+@@ -51,6 +49,9 @@ int main(int argc, char **argv)
+ 	/* a function check_flags() does all the checking to make sure flags 
+ 	set (by user adding options) are reasonable. It also acts on many of them. */
+ 	check_flags(flag, argc, optind, argv[0]);
++    /* set these _after_ check_flags, FMM 20100131 */
++	flag.eflg=31;    /* set elements to move */
++	flag.oflg=32805; /* Set things to optimise for */
+ 	iterations=atoi(argv[optind+1]);
+ 	if(flag.Aflg)
+ 		iterations=2;
+--- yagiuda-1.19.orig/src/gain.c
++++ yagiuda-1.19/src/gain.c
+@@ -8,7 +8,6 @@
+ #include "yagi.h"
+ #define TINY 1e-10
+ 
+-extern int errno;
+ 
+ /* This function finds the gain both in the E plane (xz plane) and the
+ H plane (xy plane) at angle (theta, phi). The method used is as described
+--- yagiuda-1.19.orig/src/fill_z_matrix.c
++++ yagiuda-1.19/src/fill_z_matrix.c
+@@ -4,7 +4,6 @@
+ #include <stdio.h>
+ #include <errno.h>
+ #include "yagi.h"
+-extern int errno;
+ /* We calculate the full Z matrix. Since the matrix is symmetrical, we only
+ need compute Z_i,j for j=1 to i. The function mutual, filles in Zji, when
+ we ask it to fill in Zij. */
+--- yagiuda-1.19.orig/src/write_coordinates.c
++++ yagiuda-1.19/src/write_coordinates.c
+@@ -5,7 +5,6 @@
+ #include <math.h>
+ #include <errno.h>
+ #include "yagi.h"
+-extern int errno;
+ 
+ /* This function write the x and y locations of the centre of the element and
+ the length of the elements to disk */
+--- yagiuda-1.19.orig/src/write_header_to_disk.c
++++ yagiuda-1.19/src/write_header_to_disk.c
+@@ -7,7 +7,6 @@
+ #include <errno.h>
+ #include "yagi.h"
+ 
+-extern int errno;
+ 
+ void write_header_to_disk(FILE *ofp, int elements, int driven,
+ int parasitic, double min_frequency, double max_frequency, double frequency,
+--- yagiuda-1.19.orig/src/check_flags.c
++++ yagiuda-1.19/src/check_flags.c
+@@ -8,7 +8,6 @@
+ 
+ /* This function checks that all the options are sensible */
+ 
+-extern int errno;
+ 
+ void check_flags(struct flags flag, int argc, int optind, char *exefilename)
+ {
diff --git a/debian/patches/optopt-declaration b/debian/patches/optopt-declaration
new file mode 100644
index 0000000..a8bcca8
--- /dev/null
+++ b/debian/patches/optopt-declaration
@@ -0,0 +1,18 @@
+Author: Jakub Wilk <jwilk at debian.org>
+Description: Fix FTBFS on mips/mipsel
+Integrated-by: Ralf Treinen <treinen at debian.org>
+Debian-bug: 593486
+
+Index: yagiuda-1.19/src/getopt.c
+===================================================================
+--- yagiuda-1.19.orig/src/getopt.c	2010-08-25 22:15:18.000000000 +0200
++++ yagiuda-1.19/src/getopt.c	2010-08-25 22:15:57.000000000 +0200
+@@ -35,7 +35,7 @@
+ 
+ int     opterr = 1;
+ int     optind = 1;
+-int     optopt;
++static int optopt;
+ char    *optarg;
+ 
+ void ERR(char *s, char c, char **argv)  
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6177f42
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,4 @@
+spelling.patch
+compiler-flags.patch
+optopt-declaration
+debian-changes-1.19-6.2
diff --git a/debian/patches/spelling.patch b/debian/patches/spelling.patch
new file mode 100644
index 0000000..3f27853
--- /dev/null
+++ b/debian/patches/spelling.patch
@@ -0,0 +1,235 @@
+Description: This fixes spelling through the codebase, some changes necessary, some not
+Author: Dave Hibberd <d at vehibberd.com>
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+
+--- a/doc/output.1.html
++++ b/doc/output.1.html
+@@ -84,7 +84,7 @@
+           range, or if it happened to go 3dB down in two or  more
+           points.  You  can  change  E_max,  if  you need to, but
+           rarely if every should  need  to.  I've  never  seen  a
+-          failure here, but are guarding against one. If you dont
++          failure here, but are guarding against one. If you don't
+           want the pattern, use  the  -e  option  instead,  which
+           skips it. See also '-H' below.
+ 
+@@ -96,7 +96,7 @@
+           range, or if it happended to go 3dB down in two or more
+           points.  Also,  if it goes more than 3dB down, but that
+           starts to come up again. You can change H_max,  if  you
+-          need to, as failures do occasionally occur. If you dont
++          need to, as failures do occasionally occur. If you don't
+           want the pattern use -h option instead, which will skip
+           it.
+           An obvious example of an antenna where  you  cant  find
+--- a/src/com_hack.h
++++ b/src/com_hack.h
+@@ -10,7 +10,7 @@
+ 
+              fcomplex complex(double re, double im);
+ 
+-Hence all the C routines used here *must* be converted to double. Please *dont*
++Hence all the C routines used here *must* be converted to double. Please *don't*
+ use the numerical recipes header file 'complex.h', use my 'complex_hack.h' 
+ 
+ The line:
+--- a/src/dobetter.c
++++ b/src/dobetter.c
+@@ -24,7 +24,7 @@
+ 			if(run_first_time==TRUE && flag.wflg)
+ 				fprintf(update_fp, "Optimised for wide-band use\n");
+ 			if(run_first_time==TRUE && flag.gflg)
+-				fprintf(update_fp, "Optimised With the genetic algoritm\n");
++				fprintf(update_fp, "Optimised With the genetic algorithm\n");
+ 			run_first_time=FALSE;
+ 
+ 			print_relavent_performance_data(update_fp,"",i,flag,n,new_perf,TRUE,print_fitnessQ); 
+--- a/src/end_stop.c
++++ b/src/end_stop.c
+@@ -12,7 +12,7 @@
+ 	{
+ 		if(fopen("stop","rt") != NULL)
+ 			*i=iterations;  /* force it to exit very soon */
+-		errno=0; /* Will be set to non zero if file dont exist */
++		errno=0; /* Will be set to non zero if file doesn't exist */
+ 		printf("%d\r", *i);
+ 	} 
+ }
+--- a/src/get_command_line_options.c
++++ b/src/get_command_line_options.c
+@@ -248,7 +248,7 @@
+ 					K_times_max=atoi(optarg);
+ 					if(K_times_max < 1 )
+ 					{
+-						error_message("The '-K' option setting the number of attemps to stay with hte original data after a good one found, to avoid local optimums, must be an integer > 1.\n");
++						error_message("The '-K' option setting the number of attempts to stay with hte original data after a good one found, to avoid local optimums, must be an integer > 1.\n");
+ 						exit(1);
+ 					}
+ 			      break;
+@@ -293,7 +293,7 @@
+ 						exit(1);
+ 					}
+ 					if(flag->eflg==0)
+-						printf("Thats odd, you dont want to move any elements (-e0 option)\n");
++						printf("Thats odd, you don't want to move any elements (-e0 option)\n");
+ 			      break;
+ 			 case 'h':
+ 			      flag->hflg=1;
+--- a/src/linear.c
++++ b/src/linear.c
+@@ -18,7 +18,7 @@
+ 	total_elements_tested=flag.Cflg; /* The user wants to test this number */
+ 	if(total_elements_tested > elements -1)
+ 	{
+-		printf("We can only try to get the currents similar on the %d elements, and we dont have the %d elements that you requsted via the -C option\n", elements-1, flag.Cflg);
++		printf("We can only try to get the currents similar on the %d elements, and we don't have the %d elements that you requsted via the -C option\n", elements-1, flag.Cflg);
+ 		exit(1);
+ 	}
+ 	for(k=elements; k>elements-total_elements_tested; k--)
+--- a/src/max_side.c
++++ b/src/max_side.c
+@@ -13,7 +13,7 @@
+ 
+ The other one, find_max_sidelobe_slow is much more accurate, doing a good
+ job of finding the sidelobes, but takes longer to do. Hence its not
+-really suitable for optimisation, but its okay for 'output' where we dont
++really suitable for optimisation, but its okay for 'output' where we don't
+ care too much about spped. */
+ 
+ extern double angular_stepsize_2,min_offset_from_peak;
+--- a/src/nr_hack.h
++++ b/src/nr_hack.h
+@@ -8,7 +8,7 @@
+ 
+              void cisi(double x, double *ci, double *si);
+ 
+-Hence all the C routines used here *must* be converted to double. Please *dont*
++Hence all the C routines used here *must* be converted to double. Please *don't*
+ use the numerical recipes header file 'nr.h', use my 'nr_hacked.h' */
+ 
+ 
+--- a/src/perform.c
++++ b/src/perform.c
+@@ -91,7 +91,7 @@
+ 		/* The folloing is an imperical relationship developed by me, by writing
+ 		a number of VSWR's down (1.0, 1.1, 1.5, 2.0, 3.0 and infinity and 
+ 		writing down what I donsidered their fitness (1.0, 0.9, 0.8, 0.5 and 0.1)
+-		then fitting a polynomial thru em. The fitness dont work out exactly
++		then fitting a polynomial thru em. The fitness doesn't work out exactly
+ 		as above, but they seem reasonable. This has a maximum value of 
+ 		0.98220 at VSWR=1.0, but I wont bother addeding the scale factor
+ 		1/.98220 = 1.0181, since this will not improve things - only slow the 
+--- a/src/randomise.c
++++ b/src/randomise.c
+@@ -55,7 +55,7 @@
+ 		{
+ 			y=1+0.02*max_percent*(randreal()-0.5);
+ 			parasitic_data[i][LENGTH]*=y;
+-			/* make sure directors dont get longer down the boom */
++			/* make sure directors don't get longer down the boom */
+ 			if((parasitic_data[i][LENGTH]>parasitic_data[i-1][LENGTH]) && (i>2))
+ 				parasitic_data[i][LENGTH]=parasitic_data[i-1][LENGTH]; 
+ 		}
+--- a/man/man1/first.1
++++ b/man/man1/first.1
+@@ -59,7 +59,7 @@
+ .SH AUTHORS
+ 
+ Dr. David Kirkby G8WRB (david.kirkby at onetel.net).
+-with help with the conversion to the DOS/PC enviroment from Dr. Joe Mack NA3T (mack at fcrfv2.ncifcrf.gov)
++with help with the conversion to the DOS/PC environment from Dr. Joe Mack NA3T (mack at fcrfv2.ncifcrf.gov)
+ .SH "SEE ALSO"
+ input(1), output(1), yagi(1), optimise(1).
+ .SH BUGS
+--- a/man/man1/output.1
++++ b/man/man1/output.1
+@@ -58,10 +58,10 @@
+ (2) The 3dB point is outside the assumed angular range. 
+ You then have to either:
+ .br
+-(a) Calculate with the -e option, which avoids calculation of the 3dB E-plane beamwidth or
++(a) Calculate with the \-e option, which avoids calculation of the 3dB E-plane beamwidth or
+ .br
+-(b) Do (a) above, then find approximately where the 3dB point is (from the .gai file -see later), then set
+-options -E and -H so the program calculates them properly.
++(b) Do (a) above, then find approximately where the 3dB point is (from the .gai file - see later), then set
++options \-E and \-H so the program calculates them properly.
+ .LP
+ 
+ 
+@@ -89,18 +89,18 @@
+ .TP
+ .B \-p  
+ Put data into a file filename.freq for reading into gnuplot, and a commmand file filename.gc for
+-gnuplot to use. (run 'output -p filename' then 'gnuplot filename.gc' )
++gnuplot to use. (run 'output \-p filename' then 'gnuplot filename.gc' )
+ .TP
+ .B \-s
+ Suppress all diagnostic output. By default, the program print the percentage of the job completed.
+ .TP
+ .BI \-E E_max
+ When the program computes the E-plane 3dB beamwidth, it assumes the antenna pattern is 3dB down somewhere in the range 90 to Emax, where E_max is by default 179 degrees. This can fail if it is never 3dB down in the range, or if it happened to go 3dB down in two or more points. You can change E_max, if you need to, but
+-rarely if every should need to. I've never seen a failure here, but are guarding against one. If you dont want the pattern, use the -e option instead, which skips it. See also '-H' below.
++rarely if every should need to. I've never seen a failure here, but are guarding against one. If you don't want the pattern, use the \-e option instead, which skips it. See also '\-H' below.
+ .TP
+ .BI \-H H_max
+ When the program computes the H-plane 3dB beamwidth, it assumes the antenna pattern is 3dB down somewhere in the range 0 to Hmax, where H_max is by defualt 60 degrees. This can fail if it is never 3dB down in the range, or if it happended to go 3dB down in two or more points. Also, if it goes more than 3dB down, but that starts to come up again. You can change H_max, if you need to, as
+-failures do occasionally occur. If you dont want the pattern use -h option instead, which will skip it.
++failures do occasionally occur. If you don't want the pattern use \-h option instead, which will skip it.
+ .br 
+ An obvious example of an antenna where you cant find the 3dB bandwidth for the H-plane is the 1ele dipole. The radiation is symmetrical about its axis, so the level is the same everywhere in the H plane. The program automatically avoids calculating it for a 1 ele beam.
+ 
+--- a/man/man5/output.5
++++ b/man/man5/output.5
+@@ -24,9 +24,9 @@
+ .nf
+ f(MHz) E(deg) H(deg) R       jX   VSWR  Gain(dBi)  FB(dB) SideLobes(dB)
+ .br
+-144.000 54.7  71.5  44.47  -2.35  1.136  9.386     21.944     16.650
++144.000 54.7  71.5  44.47  \-2.35  1.136  9.386     21.944     16.650
+ .br
+-144.500 54.0  70.1  41.34  -0.75  1.210  9.553     27.244     17.153
++144.500 54.0  70.1  41.34  \-0.75  1.210  9.553     27.244     17.153
+ .br
+ 145.000 53.2  68.4  37.55   1.61  1.335  9.742    103.055     17.777
+ .br
+@@ -53,29 +53,29 @@
+ .br
+ The FB(dB) column is the front to back ratio in dB. 
+ .br
+-The Sidelobes(dB) column is the minimum level in dB down from the peak gain of any sidelobe. This is not calculated unless the '-c' option is used, and then only on some optimisation techniques.
++The Sidelobes(dB) column is the minimum level in dB down from the peak gain of any sidelobe. This is not calculated unless the '\-c' option is used, and then only on some optimisation techniques.
+ 
+ .SH Example of a .gai File
+ The following is a small section of the .gai file.
+ .nf
+ f(MHz)     theta  gain-E(dBi) G(E)-peak   phi   gain-H(dBi) G(H)-peak
+-144.0000 -90.0000  -12.5584   -21.9444 -180.0000 -12.5584  -21.9444
++144.0000 \-90.0000  \-12.5584   \-21.9444 \-180.0000 \-12.5584  \-21.9444
+ .br
+-144.0000 -45.0000   -7.3507   -16.7367 -135.0000  -3.5971  -12.9830
++144.0000 \-45.0000   \-7.3507   \-16.7367 \-135.0000  \-3.5971  \-12.9830
+ .br
+-144.0000   0.0000 -999.0000 -1008.3860  -90.0000  -0.9010  -10.2870
++144.0000   0.0000 \-999.0000 \-1008.3860  \-90.0000  \-0.9010  \-10.2870
+ .br
+-144.0000  45.0000    0.1848    -9.2012  -45.0000   4.0261   -5.3599
++144.0000  45.0000    0.1848    \-9.2012  \-45.0000   4.0261   \-5.3599
+ .br
+ 144.0000  90.0000    9.3860     0.0000    0.0000   9.3860    0.0000
+ .br
+-144.0000 135.0000    0.1848    -9.2012   45.0000   4.0261   -5.3599
++144.0000 135.0000    0.1848    \-9.2012   45.0000   4.0261   \-5.3599
+ .br
+-144.0000 180.0000 -999.0000 -1008.3860   90.0000  -0.9010  -10.2870
++144.0000 180.0000 \-999.0000 \-1008.3860   90.0000  \-0.9010  \-10.2870
+ .br
+-144.0000 225.0000   -7.3507   -16.7367  135.0000  -3.5971  -12.9830
++144.0000 225.0000   \-7.3507   \-16.7367  135.0000  \-3.5971  \-12.9830
+ .br
+-144.0000 270.0000  -12.5584   -21.9444  180.0000 -12.5584  -21.9444
++144.0000 270.0000  \-12.5584   \-21.9444  180.0000 \-12.5584  \-21.9444
+ .br
+ 
+ .SH What is what in the .gai file
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..dd9063b
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@ --with autoreconf
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..b0692c0
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://www.g8wrb.org/yagi yagiuda-(.+)\.tar\.gz

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



More information about the pkg-hamradio-commits mailing list