aboutsummaryrefslogtreecommitdiffstats
path: root/comms
diff options
context:
space:
mode:
authorsbruno <sbruno@FreeBSD.org>2016-04-12 01:01:44 +0800
committersbruno <sbruno@FreeBSD.org>2016-04-12 01:01:44 +0800
commit21178bf696b57b6957a54620333431e171cfb5f0 (patch)
treeb5084ab2cbef06b7f8948e413ed14bc6bf5e1748 /comms
parent756493aafeba18cc0224c3b849b7950882fc632b (diff)
downloadfreebsd-ports-gnome-21178bf696b57b6957a54620333431e171cfb5f0.tar.gz
freebsd-ports-gnome-21178bf696b57b6957a54620333431e171cfb5f0.tar.zst
freebsd-ports-gnome-21178bf696b57b6957a54620333431e171cfb5f0.zip
Update comms/amtterm to upstream version 1.4
Drop patch files as they are included in this revisision. Reviewed by: crees mat Differential Revision: https://reviews.freebsd.org/D5876
Diffstat (limited to 'comms')
-rw-r--r--comms/amtterm/Makefile3
-rw-r--r--comms/amtterm/distinfo4
-rw-r--r--comms/amtterm/files/patch-decode-host-controls122
-rw-r--r--comms/amtterm/files/patch-redir-c28
4 files changed, 3 insertions, 154 deletions
diff --git a/comms/amtterm/Makefile b/comms/amtterm/Makefile
index 0958ace7ddcb..6be85d8fa169 100644
--- a/comms/amtterm/Makefile
+++ b/comms/amtterm/Makefile
@@ -1,8 +1,7 @@
# $FreeBSD$
PORTNAME= amtterm
-PORTVERSION= 1.3
-PORTREVISION= 3
+PORTVERSION= 1.4
CATEGORIES= comms
MASTER_SITES= https://www.kraxel.org/releases/${PORTNAME}/
diff --git a/comms/amtterm/distinfo b/comms/amtterm/distinfo
index d96b07654330..343602bb2441 100644
--- a/comms/amtterm/distinfo
+++ b/comms/amtterm/distinfo
@@ -1,2 +1,2 @@
-SHA256 (amtterm-1.3.tar.gz) = 769d02f087c7594e4a29a901580b2d39154db49ca1f3a6881598d0c595b9bc50
-SIZE (amtterm-1.3.tar.gz) = 37671
+SHA256 (amtterm-1.4.tar.gz) = e10af2b02dbf66fb24abd292b9ddc6d86b31eea09887da5cb0eb8fb2ee900e21
+SIZE (amtterm-1.4.tar.gz) = 38445
diff --git a/comms/amtterm/files/patch-decode-host-controls b/comms/amtterm/files/patch-decode-host-controls
deleted file mode 100644
index bf760a075f11..000000000000
--- a/comms/amtterm/files/patch-decode-host-controls
+++ /dev/null
@@ -1,122 +0,0 @@
---- RedirectionConstants.h 2011-05-26 05:19:45.000000000 -0400
-+++ RedirectionConstants.h 2013-12-05 18:32:54.800377337 -0500
-@@ -24,6 +24,8 @@
- #define SOL_KEEP_ALIVE_PING 0x24 //Console to Host
- #define SOL_KEEP_ALIVE_PONG 0x25 //Host to Console
- #define SOL_DATA_TO_HOST 0x28 //Console to host
-+#define SOL_CONTROLS_FROM_HOST 0x29 //Host to Console
-+
- #define SOL_DATA_FROM_HOST 0x2A //Host to Console
- #define SOL_HEARTBEAT 0x2B
-
-@@ -33,6 +35,19 @@
- #define END_SOL_REDIRECTION_LENGTH 8
- #define END_SOL_REDIRECTION_REPLY_LENGTH 8
-
-+// Control message control bits (message 0x29)
-+#define RTS_CONTROL 1
-+#define DTR_CONTROL 2
-+#define BREAK_CONTROL 4
-+
-+// Control message status bits (message 0x29)
-+#define TX_OVERFLOW 1
-+#define LOOPBACK_ACTIVE 2
-+#define SYSTEM_POWER_STATE 4
-+#define RX_FLUSH_TIMEOUT 8
-+#define TESTMODE_ACTIVE 16
-+
-+
- //IDER Messages Formats
- #define START_IDER_REDIRECTION 0x40
- #define START_IDER_REDIRECTION_REPLY 0x41
---- redir.c.orig 2011-05-26 05:19:45.000000000 -0400
-+++ redir.c 2013-12-05 18:32:54.824386101 -0500
-@@ -298,6 +302,9 @@
- return bshift;
- }
-
-+static int in_loopback_mode = 0;
-+static int powered_off = 0;
-+
- int redir_data(struct redir *r)
- {
- int rc, bshift;
-@@ -382,6 +389,55 @@
- goto again;
- redir_stop(r);
- break;
-+ case SOL_CONTROLS_FROM_HOST: {
-+ bshift = r->blen; /* FIXME */
-+ if (r->blen < bshift)
-+ goto again;
-+
-+ /* Host sends this message to the Management Console when
-+ * the host has changed its COM port control lines. This
-+ * message is likely to be one of the first messages that
-+ * the Host sends to the Console after it starts SOL
-+ * redirection.
-+ */
-+ struct controls_from_host_message *msg = (struct controls_from_host_message *) r->buf;
-+ //printf("Type %x, control %d, status %d\n", msg->type, msg->control, msg->status);
-+ if (msg->status & LOOPBACK_ACTIVE) {
-+ if (r->verbose)
-+ fprintf (stderr, "Warning, SOL device is running in loopback mode. Text input may not be accepted\n");
-+ in_loopback_mode = 1;
-+ } else if (in_loopback_mode) {
-+ if (r->verbose)
-+ fprintf (stderr, "SOL device is no longer running in loopback mode\n");
-+ in_loopback_mode = 0;
-+ }
-+
-+ if (0 == (msg->status & SYSTEM_POWER_STATE)) {
-+ if (r->verbose)
-+ fprintf (stderr, "The system is powered off.\n");
-+ powered_off = 1;
-+ } else if (powered_off) {
-+ if (r->verbose)
-+ fprintf (stderr, "The system is powered on.\n");
-+ powered_off = 0;
-+ }
-+
-+ if (r->verbose) {
-+ if (msg->status & (TX_OVERFLOW|RX_FLUSH_TIMEOUT|TESTMODE_ACTIVE))
-+ fprintf (stderr, "Other unhandled status condition\n");
-+
-+ if (msg->control & RTS_CONTROL)
-+ fprintf (stderr, "RTS is asserted on the COM Port\n");
-+
-+ if (msg->control & DTR_CONTROL)
-+ fprintf (stderr, "DTR is asserted on the COM Port\n");
-+
-+ if (msg->control & BREAK_CONTROL)
-+ fprintf (stderr, "BREAK is asserted on the COM Port\n");
-+ }
-+
-+ break;
-+ }
- default:
- snprintf(r->err, sizeof(r->err), "%s: unknown r->buf 0x%02x",
- __FUNCTION__, r->buf[0]);
---- redir.h 2011-05-26 05:19:45.000000000 -0400
-+++ redir.h 2013-12-05 18:32:54.825382282 -0500
-@@ -1,4 +1,5 @@
- #include "RedirectionConstants.h"
-+#include <stdint.h>
-
- enum redir_state {
- REDIR_NONE = 0,
-@@ -38,6 +39,14 @@
- int (*cb_recv)(void *cb_data, unsigned char *buf, int len);
- };
-
-+struct __attribute__ ((__packed__)) controls_from_host_message {
-+ unsigned char type; // 0x29
-+ unsigned char reserved[3];
-+ uint32_t host_sequence_number;
-+ unsigned char control;
-+ unsigned char status;
-+};
-+
- const char *redir_state_name(enum redir_state state);
- const char *redir_state_desc(enum redir_state state);
-
diff --git a/comms/amtterm/files/patch-redir-c b/comms/amtterm/files/patch-redir-c
deleted file mode 100644
index c6a67c28647c..000000000000
--- a/comms/amtterm/files/patch-redir-c
+++ /dev/null
@@ -1,28 +0,0 @@
-From http://people.freebsd.org/~kib/misc/amtterm.1.patch
-
---- redir.c 2011-05-26 12:19:45.000000000 +0300
-+++ redir.c 2011-12-28 22:39:15.164012594 +0200
-@@ -18,6 +18,10 @@
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-+#include <sys/types.h>
-+#include <sys/socket.h>
-+#include <netinet/in.h>
-+#include <arpa/inet.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <unistd.h>
---- tcp.c 2011-05-26 12:19:45.000000000 +0300
-+++ tcp.c 2011-12-28 22:39:32.276853072 +0200
-@@ -18,6 +18,10 @@
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-+#include <sys/types.h>
-+#include <sys/socket.h>
-+#include <netinet/in.h>
-+#include <arpa/inet.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <errno.h>