summaryrefslogtreecommitdiff
path: root/ham/yaesu
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2002-06-15 21:57:53 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2002-06-15 21:57:53 +0000
commit5f7a574461e5b3eac7f35a32b9e813c7c2ac6b0a (patch)
tree3e085c6f6111d5017f05f3002fb3cd6d92820d29 /ham/yaesu
parent4aa068ea115713f9237f62ae1495aef3e36f25ad (diff)
downloadpkgsrc-5f7a574461e5b3eac7f35a32b9e813c7c2ac6b0a.tar.gz
add '-p device_name' option so that non-PC platforms can use the program.
The previous behaviour was to hard code /dev/ttyE{0,1,2,3} as the only device choices.
Diffstat (limited to 'ham/yaesu')
-rw-r--r--ham/yaesu/distinfo4
-rw-r--r--ham/yaesu/patches/patch-ab19
-rw-r--r--ham/yaesu/patches/patch-ad23
3 files changed, 39 insertions, 7 deletions
diff --git a/ham/yaesu/distinfo b/ham/yaesu/distinfo
index 4a1cc87f360..7d13c58a19b 100644
--- a/ham/yaesu/distinfo
+++ b/ham/yaesu/distinfo
@@ -3,6 +3,6 @@
SHA1 (yaesu-0.12.tar.gz) = a073e78f0635c84222176941e39cc62dca92f00d
Size (yaesu-0.12.tar.gz) = 24694 bytes
SHA1 (patch-aa) = 9fc04c222e7ed26c8e73449e475ff639d7ced051
-SHA1 (patch-ab) = 309c2caccceef1ebccbcaa3ed3bcf50b14073450
+SHA1 (patch-ab) = 0a96f808929b7d1f1d4363e57c24dd33142e5f4e
SHA1 (patch-ac) = cd5ee0384a53f436e07b4cec904c3a2176a40cdf
-SHA1 (patch-ad) = 3f2d89f5650f5dc4f2dcf16f164840f20e262ac5
+SHA1 (patch-ad) = 89bb7dc00a7da82778ed357594cb5d0dfa756f64
diff --git a/ham/yaesu/patches/patch-ab b/ham/yaesu/patches/patch-ab
index 760e1eb1c4b..29ae17a2310 100644
--- a/ham/yaesu/patches/patch-ab
+++ b/ham/yaesu/patches/patch-ab
@@ -1,8 +1,8 @@
-$NetBSD: patch-ab,v 1.2 2002/06/07 10:38:45 cjep Exp $
+$NetBSD: patch-ab,v 1.3 2002/06/15 21:57:53 dmcmahill Exp $
---- README.orig Sun Sep 20 16:34:46 1998
+--- README.orig Sun Sep 20 11:34:46 1998
+++ README
-@@ -34,8 +34,8 @@
+@@ -34,13 +34,20 @@
to make a note of it. Off to usage...
Using my program is very simple, to execute it you must provide the com port
@@ -13,3 +13,16 @@ $NetBSD: patch-ab,v 1.2 2002/06/07 10:38:45 cjep Exp $
type in the following...
'yaesu 3'
+
+-where 3 represents com4. Once you have gotten this far with the correct port,
++where 3 represents com4.
++
++If you need to use a different device, you can specify that with -p serial_device,
++for example:
++
++ yaesu -p /dev/ttyC1
++
++Once you have gotten this far with the correct port,
+ the program's menu should guide you along. Please see the bug list, disclaimer
+ and copying section below.
+
diff --git a/ham/yaesu/patches/patch-ad b/ham/yaesu/patches/patch-ad
index a3a2ae5303a..33e72b209ff 100644
--- a/ham/yaesu/patches/patch-ad
+++ b/ham/yaesu/patches/patch-ad
@@ -1,6 +1,9 @@
-$NetBSD: patch-ad,v 1.4 2002/06/15 21:27:25 wiz Exp $
+$NetBSD: patch-ad,v 1.5 2002/06/15 21:57:54 dmcmahill Exp $
---- main.c.orig Sat Nov 4 23:48:33 1995
+the addition of the -p flag is required for non-PC machines which
+might use a different serial device.
+
+--- main.c.orig Sat Nov 4 17:48:33 1995
+++ main.c
@@ -5,7 +5,6 @@
#include <stdlib.h>
@@ -48,3 +51,19 @@ $NetBSD: patch-ad,v 1.4 2002/06/15 21:27:25 wiz Exp $
exit(3);
}
break;
+@@ -130,6 +129,15 @@
+ printf("Invalid serial port number!!!\n Remember: com1 is 0, com2 is 1, etc.\n");
+ return(-1);
+ }
++ } else if (argc == 3) {
++ if (strcmp("-p",argv[1]) != 0) {
++ perror("Invalid flag");
++ exit(3);
++ }
++ if ((fdSer = open(argv[2], O_RDWR )) < 0) {
++ perror("open of serial port failed");
++ exit(3);
++ }
+ } else {
+ printf("usage: yaesu [port #]\n");
+ exit(3);