debian/0000755000000000000000000000000011727714360007176 5ustar debian/rules0000755000000000000000000000452011727713363010261 0ustar #!/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 # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif config.status: configure dh_testdir dh_autotools-dev_updateconfig # Add here commands to configure the package. CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info build: build-stamp build-stamp: config.status dh_testdir # Add here commands to compile the package. $(MAKE) #docbook-to-man debian/yagiuda.sgml > yagiuda.1 touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp # Add here commands to clean up after the build process. [ ! -f Makefile ] || $(MAKE) distclean dh_autotools-dev_restoreconfig dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs # Add here commands to install the package into debian/yagiuda. $(MAKE) install DESTDIR=$(CURDIR)/debian/yagiuda # 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 ChangeLog dh_installdocs dh_installexamples # dh_install # dh_installmenu # dh_installdebconf # dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime # dh_installinit # dh_installcron # dh_installinfo dh_installman dh_link dh_strip dh_compress dh_fixperms # dh_perl # dh_python # dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/control0000644000000000000000000000127111727713326010603 0ustar Source: yagiuda Section: hamradio Priority: extra Maintainer: Debian QA Group Build-Depends: debhelper (>= 7), autotools-dev (>= 20100122.1) Standards-Version: 3.8.4 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. debian/source/0000755000000000000000000000000011435274167010500 5ustar debian/source/format0000644000000000000000000000001411435274167011706 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000564511727714314011061 0ustar 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 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 for the patch! -- Ralf Treinen 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 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 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 Sun, 08 Nov 2009 18:15:49 +0000 yagiuda (1.19-5) unstable; urgency=low * Upload on behalf of Milos Mandaric, thanks! -- Joop Stakenborg 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 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 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 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 Mon, 22 Aug 2005 20:20:13 +0200 yagiuda (1.19-1) unstable; urgency=low * Initial release. -- Joop Stakenborg Tue, 9 Aug 2005 11:48:31 +0200 debian/compat0000644000000000000000000000000211435272430010365 0ustar 7 debian/dirs0000644000000000000000000000002111435272430010044 0ustar usr/bin usr/sbin debian/patches/0000755000000000000000000000000011727714142010623 5ustar debian/patches/optopt-declaration0000644000000000000000000000104011435275344014353 0ustar Author: Jakub Wilk Description: Fix FTBFS on mips/mipsel Integrated-by: Ralf Treinen 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) debian/patches/series0000644000000000000000000000005311435274710012034 0ustar optopt-declaration debian-changes-1.19-6.2 debian/patches/debian-changes-1.19-6.20000644000000000000000000003624111727714142014275 0ustar 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@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@f1 fcomplex /* current */ 100+40*elements+(n-1)*16 Current_n@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 #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 #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 #include #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 #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 #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 #endif #include +#include #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 #include #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 #include #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 #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 #include #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 #include #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 #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 #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 #include #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 #include #include #include @@ -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 #endif #include +#include #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 #include #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 #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 #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 #include #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 #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 #include #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 #include #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 #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) { debian/copyright0000644000000000000000000000061211435272430011121 0ustar This package was debianized by Joop Stakenborg 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 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 debian/docs0000644000000000000000000000002611435272430010040 0ustar BUGS NEWS README TODO