- Update minicom to 2.6

- Add additional patches for Linux-specific issues
This commit is contained in:
Johan van Selst 2011-12-29 08:17:09 +00:00
parent d3ef7e16cf
commit 14c57f74b6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=288216
9 changed files with 51 additions and 29 deletions

View file

@ -7,9 +7,9 @@
# #
PORTNAME= minicom PORTNAME= minicom
PORTVERSION= 2.5 PORTVERSION= 2.6
CATEGORIES= comms CATEGORIES= comms
MASTER_SITES= http://alioth.debian.org/frs/download.php/3487/ MASTER_SITES= http://alioth.debian.org/frs/download.php/3689/
MAINTAINER= johans@FreeBSD.org MAINTAINER= johans@FreeBSD.org
COMMENT= An MS-DOS Telix serial communication program "workalike" COMMENT= An MS-DOS Telix serial communication program "workalike"

View file

@ -1,2 +1,2 @@
SHA256 (minicom-2.5.tar.gz) = 2aa43f98580d3c9c59b12895f15783695cde85472f6bfc7974bcc0935af0a8fd SHA256 (minicom-2.6.tar.gz) = ea5fe79c22dcb115cf5ed287b0e7a69e069bedd39889aa89b1a23f64f53fceb3
SIZE (minicom-2.5.tar.gz) = 822499 SIZE (minicom-2.6.tar.gz) = 830255

View file

@ -1,6 +1,6 @@
--- src/updown.c.orig 2008-04-17 19:52:52.000000000 +0200 --- src/updown.c.orig 2011-09-07 23:04:32.000000000 +0200
+++ src/updown.c 2008-04-17 19:53:27.000000000 +0200 +++ src/updown.c 2011-12-28 16:07:59.000000000 +0100
@@ -244,7 +244,7 @@ @@ -296,7 +296,7 @@ void updown(int what, int nr)
do_log("%s", cmdline); /* jl 22.06.97 */ do_log("%s", cmdline); /* jl 22.06.97 */
if (P_PFULL(g) == 'N') { if (P_PFULL(g) == 'N') {

View file

@ -1,6 +1,6 @@
--- src/window.c.orig 2008-02-06 22:49:55.000000000 +0100 --- src/window.c.orig 2010-12-12 14:56:25.000000000 +0100
+++ src/window.c 2008-04-17 20:08:10.000000000 +0200 +++ src/window.c 2011-12-28 16:07:59.000000000 +0100
@@ -70,6 +70,7 @@ @@ -66,6 +66,7 @@ static const char *CE, *Al, *Dl, *AL, *D
static const char *CS, *SF, *SR, *VB, *BL; static const char *CS, *SF, *SR, *VB, *BL;
static const char *VE, *VI, *KS, *KE; static const char *VE, *VI, *KS, *KE;
static const char *CD, *CL, *IC, *DC; static const char *CD, *CL, *IC, *DC;
@ -8,7 +8,7 @@
static const char *CR, *NL; static const char *CR, *NL;
#ifdef ST_LINE #ifdef ST_LINE
static const char *TS, *FS, *DS; static const char *TS, *FS, *DS;
@@ -342,8 +343,8 @@ @@ -335,8 +336,8 @@ static void _gotoxy(int x, int y)
else if (NL != NULL && x == 0 && x == curx && y == cury + 1) else if (NL != NULL && x == 0 && x == curx && y == cury + 1)
outstr(NL); outstr(NL);
#endif #endif
@ -19,7 +19,7 @@
else else
outstr(tgoto(CM, x, y)); outstr(tgoto(CM, x, y));
curx = x; curx = x;
@@ -2007,7 +2008,7 @@ @@ -2000,7 +2001,7 @@ int win_init(int fg, int bg, int attr)
CL = tgetstr("cl", &_tptr); CL = tgetstr("cl", &_tptr);
IC = tgetstr("ic", &_tptr); IC = tgetstr("ic", &_tptr);
DC = tgetstr("dc", &_tptr); DC = tgetstr("dc", &_tptr);
@ -28,7 +28,7 @@
CR = tgetstr("cr", &_tptr); CR = tgetstr("cr", &_tptr);
NL = tgetstr("nl", &_tptr); NL = tgetstr("nl", &_tptr);
AC = tgetstr("ac", &_tptr); AC = tgetstr("ac", &_tptr);
@@ -2066,11 +2067,11 @@ @@ -2059,11 +2060,11 @@ int win_init(int fg, int bg, int attr)
_has_am = tgetflag("am"); _has_am = tgetflag("am");
_mv_standout = tgetflag("ms"); _mv_standout = tgetflag("ms");
if (tgetflag("bs")) { if (tgetflag("bs")) {

View file

@ -1,7 +1,7 @@
--- doc/minirc.dfl.orig 2003-03-30 20:55:39.000000000 +0200 --- doc/minirc.dfl.orig 2009-12-12 16:47:47.000000000 +0100
+++ doc/minirc.dfl 2008-04-17 20:17:35.000000000 +0200 +++ doc/minirc.dfl 2011-12-28 16:07:59.000000000 +0100
@@ -1,2 +1,7 @@ @@ -1,2 +1,7 @@
# $Id: minirc.dfl,v 1.1.1.1 2003/03/30 18:55:39 al-guest Exp $ # $Id: minirc.dfl,v 1.1.1.1 2003-03-30 18:55:39 al-guest Exp $
# Machine-generated file - use "minicom -s" to change parameters. # Machine-generated file - use "minicom -s" to change parameters.
+pr port /dev/cuad0 +pr port /dev/cuad0
+pu baudrate 9600 +pu baudrate 9600

View file

@ -0,0 +1,11 @@
--- src/main.c.orig 2011-09-30 09:57:00.000000000 +0200
+++ src/main.c 2011-12-28 16:07:59.000000000 +0100
@@ -112,7 +112,7 @@ char *esc_key(void)
static void get_alrm(int dummy)
{
(void)dummy;
- errno = ETIME;
+ errno = ETIMEDOUT;
longjmp(albuf, 1);
}

View file

@ -1,10 +1,10 @@
--- src/minicom.h.orig 2008-04-17 20:06:14.000000000 +0200 --- src/minicom.h.orig 2011-09-30 09:57:22.000000000 +0200
+++ src/minicom.h 2008-04-17 20:06:22.000000000 +0200 +++ src/minicom.h 2011-12-28 16:12:54.000000000 +0100
@@ -34,6 +34,7 @@ @@ -35,6 +35,7 @@
#include "libport.h"
#include <time.h> #include <time.h>
#include <stdbool.h>
+#include <limits.h> +#include <limits.h>
#ifdef USE_SOCKET #if HAVE_LOCKDEV
#include <sys/socket.h> #include <ttylock.h>

View file

@ -0,0 +1,11 @@
--- src/script.c.orig 2011-07-23 19:58:32.000000000 +0200
+++ src/script.c 2011-12-28 16:07:59.000000000 +0100
@@ -69,7 +69,7 @@ struct env {
struct env *curenv; /* Execution environment */
int gtimeout = 120; /* Global Timeout */
int etimeout = 0; /* Timeout in expect routine */
-jmp_buf ejmp; /* To jump to if expect times out */
+sigjmp_buf ejmp; /* To jump to if expect times out */
int inexpect = 0; /* Are we in the expect routine */
const char *newline; /* What to print for '\n'. */
const char *s_login = "name"; /* User's login name */

View file

@ -1,6 +1,6 @@
--- src/sysdep1.c.orig 2007-10-10 22:18:20.000000000 +0200 --- src/sysdep1.c.orig 2009-12-12 16:47:47.000000000 +0100
+++ src/sysdep1.c 2008-04-17 19:48:58.000000000 +0200 +++ src/sysdep1.c 2011-12-28 16:07:59.000000000 +0100
@@ -84,13 +84,13 @@ @@ -65,13 +65,13 @@ static void m_setrts(int fd)
if (portfd_is_socket) if (portfd_is_socket)
return; return;
#endif #endif
@ -16,8 +16,8 @@
+ ioctl(fd, TIOCMSET, &mcs); + ioctl(fd, TIOCMSET, &mcs);
} }
#endif #endif
#ifdef _COHERENT }
@@ -213,11 +213,11 @@ @@ -180,11 +180,11 @@ int m_getdcd(int fd)
return portfd_is_connected; return portfd_is_connected;
} }
#endif #endif
@ -31,7 +31,7 @@
return -1; return -1;
return mcs & TIOCM_CAR ? 1 : 0; return mcs & TIOCM_CAR ? 1 : 0;
} }
@@ -260,8 +260,8 @@ @@ -227,8 +227,8 @@ void m_savestate(int fd)
ioctl(fd, TIOCLGET, &lsw); ioctl(fd, TIOCLGET, &lsw);
# endif # endif
#endif #endif
@ -42,7 +42,7 @@
#endif #endif
} }
@@ -285,8 +285,8 @@ @@ -252,8 +252,8 @@ void m_restorestate(int fd)
ioctl(fd, TIOCLSET, &lsw); ioctl(fd, TIOCLSET, &lsw);
# endif # endif
#endif #endif