From 8bf629ffe53e3b9e98cc91167413f0f76a295eff Mon Sep 17 00:00:00 2001 From: hubertf Date: Wed, 8 May 2002 00:02:39 +0000 Subject: Add yaesu-0.12: control interface for Yaesu FT-890 HF transceiver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Archaic program to control a Yaesu FT-890 HF transceiver off of a serial port. (This is of interest to a ham radio operator or SWL.) Author: kg0cq@amsat.org (Emarit Ranu) Submitted by Dawid SzymaƱski in PR 16378 --- ham/yaesu/DESCR | 3 +++ ham/yaesu/Makefile | 19 +++++++++++++++++++ ham/yaesu/PLIST | 3 +++ ham/yaesu/distinfo | 7 +++++++ ham/yaesu/patches/patch-aa | 12 ++++++++++++ ham/yaesu/patches/patch-ab | 15 +++++++++++++++ ham/yaesu/patches/patch-ac | 17 +++++++++++++++++ ham/yaesu/patches/patch-ad | 42 ++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 118 insertions(+) create mode 100644 ham/yaesu/DESCR create mode 100644 ham/yaesu/Makefile create mode 100644 ham/yaesu/PLIST create mode 100644 ham/yaesu/distinfo create mode 100644 ham/yaesu/patches/patch-aa create mode 100644 ham/yaesu/patches/patch-ab create mode 100644 ham/yaesu/patches/patch-ac create mode 100644 ham/yaesu/patches/patch-ad (limited to 'ham/yaesu') diff --git a/ham/yaesu/DESCR b/ham/yaesu/DESCR new file mode 100644 index 00000000000..40fbba1d837 --- /dev/null +++ b/ham/yaesu/DESCR @@ -0,0 +1,3 @@ +Archaic program to control a Yaesu FT-890 HF transceiver off of a serial port. +(This is of interest to a ham radio operator or SWL.) +Author: kg0cq@amsat.org (Emarit Ranu) diff --git a/ham/yaesu/Makefile b/ham/yaesu/Makefile new file mode 100644 index 00000000000..034ff7fe37b --- /dev/null +++ b/ham/yaesu/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/05/08 00:02:39 hubertf Exp $ +# + +DISTNAME= yaesu-0.12 +CATEGORIES= ham +MASTER_SITES= ${MASTER_SITE_SUNSITE:=apps/ham/} + +MAINTAINER= dawszy@arhea.net +#HOMEPAGE= not known +COMMENT= control interface for Yaesu FT-890 HF transceiver + +WRKSRC= ${WRKDIR}/yaesu +NO_CONFIGURE= yes + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/yaesu ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/yaesu.README + +.include "../../mk/bsd.pkg.mk" diff --git a/ham/yaesu/PLIST b/ham/yaesu/PLIST new file mode 100644 index 00000000000..514e60bc1d6 --- /dev/null +++ b/ham/yaesu/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/05/08 00:02:39 hubertf Exp $ +bin/yaesu +share/doc/yaesu.README diff --git a/ham/yaesu/distinfo b/ham/yaesu/distinfo new file mode 100644 index 00000000000..900735c0113 --- /dev/null +++ b/ham/yaesu/distinfo @@ -0,0 +1,7 @@ + +SHA1 (yaesu-0.12.tar.gz) = a073e78f0635c84222176941e39cc62dca92f00d +Size (yaesu-0.12.tar.gz) = 24694 bytes +SHA1 (patch-aa) = 45e9d3ad4f1078314c7d511b30b361ca3e1296dd +SHA1 (patch-ab) = 8cbb28d281b0155fac1eb38f9e83ba764adc4f46 +SHA1 (patch-ac) = 8445a04d1d341410d23f533ca34ea3a4841af400 +SHA1 (patch-ad) = 2c464c4610ce9340b3582c0daf6124de87bf2d5e diff --git a/ham/yaesu/patches/patch-aa b/ham/yaesu/patches/patch-aa new file mode 100644 index 00000000000..ca9772672c6 --- /dev/null +++ b/ham/yaesu/patches/patch-aa @@ -0,0 +1,12 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/05/08 00:02:39 hubertf Exp $ + +--- main.c.orig Sat Apr 13 21:01:49 2002 ++++ main.c +@@ -5,7 +5,6 @@ + #include + #include + #include +-#include + #include + float freq_to_change_to; + char flag_data_return[5]; diff --git a/ham/yaesu/patches/patch-ab b/ham/yaesu/patches/patch-ab new file mode 100644 index 00000000000..46dff3a5f72 --- /dev/null +++ b/ham/yaesu/patches/patch-ab @@ -0,0 +1,15 @@ +$NetBSD: patch-ab,v 1.1.1.1 2002/05/08 00:02:39 hubertf Exp $ + +--- README.orig Sat Apr 13 21:05:20 2002 ++++ README +@@ -34,8 +34,8 @@ + to make a note of it. Off to usage... + + Using my program is very simple, to execute it you must provide the com port +-as an argument to the command line. Remember, com1 is /dev/ttyS0 and com2 +-is /dev/ttyS1, etc. As an example, my box is on com4 (/dev/tty3), so I must ++as an argument to the command line. Remember, com1 is /dev/ttyE0 and com2 ++is /dev/ttyE1, etc. As an example, my box is on com4 (/dev/ttyE3), so I must + type in the following... + + 'yaesu 3' diff --git a/ham/yaesu/patches/patch-ac b/ham/yaesu/patches/patch-ac new file mode 100644 index 00000000000..2c7a8fe8597 --- /dev/null +++ b/ham/yaesu/patches/patch-ac @@ -0,0 +1,17 @@ +$NetBSD: patch-ac,v 1.1.1.1 2002/05/08 00:02:39 hubertf Exp $ + +--- config.h.orig Sat Apr 13 21:06:53 2002 ++++ config.h +@@ -1,10 +1,10 @@ + /* + * This is the port the interface will be on. +- * Remember, ttyS0 is DOS' com1, ttyS1 is com2 and so on. ++ * Remember, ttyE0 is DOS' com1, ttyE1 is com2 and so on. + * This will be configurable at runtime via a config file. + */ + +-/* #define PORT "/dev/ttyS3" */ ++/* #define PORT "/dev/ttyE3" */ + + /* + * This should never have to be changed, it is the pacing byte. diff --git a/ham/yaesu/patches/patch-ad b/ham/yaesu/patches/patch-ad new file mode 100644 index 00000000000..21a1968d3d1 --- /dev/null +++ b/ham/yaesu/patches/patch-ad @@ -0,0 +1,42 @@ +$NetBSD: patch-ad,v 1.1.1.1 2002/05/08 00:02:39 hubertf Exp $ + +--- main.c.orig Sat Apr 13 21:07:41 2002 ++++ main.c +@@ -100,29 +100,29 @@ + if (argc == 2) { + switch(argv[1][0]) { + case '0': +- if ((fdSer = open("/dev/ttyS0", O_RDWR )) < 0) { +- perror("open of /dev/ttyS0 failed!!!\n"); ++ if ((fdSer = open("/dev/ttyE0", O_RDWR )) < 0) { ++ perror("open of /dev/ttyE0 failed!!!\n"); + exit(3); + } + break; + + case '1': +- if ((fdSer = open("/dev/ttyS1", O_RDWR )) < 0) { +- perror("open of /dev/ttyS1 failed!!!\n"); ++ if ((fdSer = open("/dev/ttyE1", O_RDWR )) < 0) { ++ perror("open of /dev/ttyE1 failed!!!\n"); + exit(3); + } + break; + + case '2': +- if ((fdSer = open("/dev/ttyS2", O_RDWR )) < 0) { +- perror("open of /dev/ttyS2 failed"); ++ if ((fdSer = open("/dev/ttyE2", O_RDWR )) < 0) { ++ perror("open of /dev/ttyE2 failed"); + exit(3); + } + break; + + case '3': +- if ((fdSer = open("/dev/ttyS3", O_RDWR )) < 0) { +- perror("open of /dev/ttyS3 failed"); ++ if ((fdSer = open("/dev/ttyE3", O_RDWR )) < 0) { ++ perror("open of /dev/ttyE3 failed"); + exit(3); + } + break; -- cgit v1.2.3