summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2002-07-12 18:50:34 +0000
committercy <cy@FreeBSD.org>2002-07-12 18:50:34 +0000
commit4ac5d9607fc7602b3c08e5215a03c2f8e1895272 (patch)
treed654fb4f914d615c4d99cc61a30bb4bcb7e8e3fe /net
parenta82f08871f8013c917f065b2f8068be432ba5fea (diff)
downloadFreeBSD-ports-4ac5d9607fc7602b3c08e5215a03c2f8e1895272.zip
FreeBSD-ports-4ac5d9607fc7602b3c08e5215a03c2f8e1895272.tar.gz
Fix jjy driver. This patch fixes an invalid command to the
C-DEX JST2000. Submitted by: nork Reviewed by: Harlan Stenn <stenn@whimsy.udel.edu>
Diffstat (limited to 'net')
-rw-r--r--net/ntp-devel/Makefile1
-rw-r--r--net/ntp-devel/files/patch-ntpd::refclock_jjy.c11
-rw-r--r--net/ntp-stable/Makefile1
-rw-r--r--net/ntp-stable/files/patch-ntpd::refclock_jjy.c11
-rw-r--r--net/ntp/Makefile1
-rw-r--r--net/ntp/files/patch-ntpd::refclock_jjy.c11
6 files changed, 36 insertions, 0 deletions
diff --git a/net/ntp-devel/Makefile b/net/ntp-devel/Makefile
index ffbe2d0..e90a532 100644
--- a/net/ntp-devel/Makefile
+++ b/net/ntp-devel/Makefile
@@ -7,6 +7,7 @@
PORTNAME= ntp
PORTVERSION= 4.1.72
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://ftp.udel.edu/pub/ntp/ntp4/ \
http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/
diff --git a/net/ntp-devel/files/patch-ntpd::refclock_jjy.c b/net/ntp-devel/files/patch-ntpd::refclock_jjy.c
new file mode 100644
index 0000000..b11e8c1
--- /dev/null
+++ b/net/ntp-devel/files/patch-ntpd::refclock_jjy.c
@@ -0,0 +1,11 @@
+--- ntpd/refclock_jjy.c.orig Tue Dec 4 23:22:52 2001
++++ ntpd/refclock_jjy.c Fri Jul 12 11:35:43 2002
+@@ -704,7 +704,7 @@
+ * Send "<ENQ>1J<ETX>" command
+ */
+
+- if ( write ( pp->io.fd, "\x051J\x03", 4 ) != 4 ) {
++ if ( write ( pp->io.fd, "\0051J\003", 4 ) != 4 ) {
+ refclock_report ( peer, CEVNT_FAULT ) ;
+ }
+
diff --git a/net/ntp-stable/Makefile b/net/ntp-stable/Makefile
index 2465ba3..5653461 100644
--- a/net/ntp-stable/Makefile
+++ b/net/ntp-stable/Makefile
@@ -7,6 +7,7 @@
PORTNAME= ntp
PORTVERSION= 4.1.1a
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://ftp.udel.edu/pub/ntp/ntp4/ \
http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ \
diff --git a/net/ntp-stable/files/patch-ntpd::refclock_jjy.c b/net/ntp-stable/files/patch-ntpd::refclock_jjy.c
new file mode 100644
index 0000000..4852ac0
--- /dev/null
+++ b/net/ntp-stable/files/patch-ntpd::refclock_jjy.c
@@ -0,0 +1,11 @@
+--- ntpd/refclock_jjy.c.orig Thu Jan 17 10:40:53 2002
++++ ntpd/refclock_jjy.c Fri Jul 12 11:37:44 2002
+@@ -701,7 +701,7 @@
+ * Send "<ENQ>1J<ETX>" command
+ */
+
+- if ( write ( pp->io.fd, "\x051J\x03", 4 ) != 4 ) {
++ if ( write ( pp->io.fd, "\0051J\003", 4 ) != 4 ) {
+ refclock_report ( peer, CEVNT_FAULT ) ;
+ }
+
diff --git a/net/ntp/Makefile b/net/ntp/Makefile
index 2465ba3..5653461 100644
--- a/net/ntp/Makefile
+++ b/net/ntp/Makefile
@@ -7,6 +7,7 @@
PORTNAME= ntp
PORTVERSION= 4.1.1a
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://ftp.udel.edu/pub/ntp/ntp4/ \
http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ \
diff --git a/net/ntp/files/patch-ntpd::refclock_jjy.c b/net/ntp/files/patch-ntpd::refclock_jjy.c
new file mode 100644
index 0000000..4852ac0
--- /dev/null
+++ b/net/ntp/files/patch-ntpd::refclock_jjy.c
@@ -0,0 +1,11 @@
+--- ntpd/refclock_jjy.c.orig Thu Jan 17 10:40:53 2002
++++ ntpd/refclock_jjy.c Fri Jul 12 11:37:44 2002
+@@ -701,7 +701,7 @@
+ * Send "<ENQ>1J<ETX>" command
+ */
+
+- if ( write ( pp->io.fd, "\x051J\x03", 4 ) != 4 ) {
++ if ( write ( pp->io.fd, "\0051J\003", 4 ) != 4 ) {
+ refclock_report ( peer, CEVNT_FAULT ) ;
+ }
+
OpenPOWER on IntegriCloud