diff --git a/comms/tits/Makefile b/comms/tits/Makefile index 78c8e5b5f796..d9848de486a6 100644 --- a/comms/tits/Makefile +++ b/comms/tits/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= tits -PORTVERSION= 1.1.2 -PORTREVISION= 2 +PORTVERSION= 1.3.0 CATEGORIES= comms MASTER_SITES= http://www.mctavish.co.uk/tits/ diff --git a/comms/tits/distinfo b/comms/tits/distinfo index 92b2bbd0715d..9ed1dfe95a6a 100644 --- a/comms/tits/distinfo +++ b/comms/tits/distinfo @@ -1,2 +1,3 @@ -SHA256 (tits-1.1.2.tar.gz) = da82e0ca603dbcb59c4d28353a47a70d228e6b2cd6df23f952abe367850970e0 -SIZE (tits-1.1.2.tar.gz) = 21948 +TIMESTAMP = 1560688435 +SHA256 (tits-1.3.0.tar.gz) = f6cd7bf11b8aa730be0ddd6ed6f6a3a8380285959a586e9404d5ec02ef73f237 +SIZE (tits-1.3.0.tar.gz) = 31811 diff --git a/comms/tits/files/patch-Makefile b/comms/tits/files/patch-Makefile index 4e56d6d80bfb..e2f82f7c73c4 100644 --- a/comms/tits/files/patch-Makefile +++ b/comms/tits/files/patch-Makefile @@ -1,6 +1,6 @@ ---- Makefile.orig Wed Sep 24 16:05:07 2003 -+++ Makefile Wed Sep 24 16:06:52 2003 -@@ -29,15 +29,15 @@ +--- Makefile.orig 2011-01-15 13:47:19.000000000 +0100 ++++ Makefile 2019-06-16 14:35:41.993206000 +0200 +@@ -29,22 +29,22 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. @@ -11,11 +11,20 @@ -MAN= tits.8 +MAN8= tits.8 - SRCS= main.c buffer.c client.c context.c listener.c telnet.c tty.c - SRCS+= dispatcher.c setup.c config.c server.c logger.c + SRCS= main.c buffer.c client.c context.c listener.c masterpty.c telnet.c + SRCS+= tty.c dispatcher.c setup.c config.c server.c logger.c stdio2pty.c + SRCS+= rtelnet.c + .if !defined(SMALLPROG) -CPPFLAGS+= -DLIBWRAP -DTITS_DEFAULT_CONFIG_FILE=\"${LOCALBASE}/etc/tits.conf\" +CFLAGS+= -DLIBWRAP -DTITS_DEFAULT_CONFIG_FILE=\"${LOCALBASE}/etc/tits.conf\" LDADD+= -lwrap + .else +-CPPFLAGS+= -DTITS_DEFAULT_CONFIG_FILE=\"/etc/tits.conf\" ++CFLAGS+= -DTITS_DEFAULT_CONFIG_FILE=\"${LOCALBASE}/etc/tits.conf\" + .endif +-CPPFLAGS+= -DTITS_DEFAULT_LINKDIR=\"/var/run\" ++CFLAGS+= -DTITS_DEFAULT_LINKDIR=\"/var/run\" PREFIX?= /usr/local BINDIR?= ${PREFIX}/sbin + diff --git a/comms/tits/files/patch-listener.c b/comms/tits/files/patch-listener.c index ce1f4be4daa9..48e85b8b60d9 100644 --- a/comms/tits/files/patch-listener.c +++ b/comms/tits/files/patch-listener.c @@ -1,12 +1,13 @@ ---- listener.c.orig -+++ listener.c -@@ -189,10 +189,6 @@ +--- listener.c.orig 2019-06-16 14:38:29.081725000 +0200 ++++ listener.c 2019-06-16 14:38:31.587036000 +0200 +@@ -189,11 +189,6 @@ NULL) context_del_client(cc->cc_ctx, ccc); - if (lc->lc_args.la_address) - (void) free(lc->lc_args.la_address); -- (void) free(lc->lc_args.la_port); +- if (lc->lc_args.la_port) +- (void) free(lc->lc_args.la_port); - (void) free(lc); } diff --git a/comms/tits/files/patch-tty.c b/comms/tits/files/patch-tty.c index f17162b9a7dd..ed7af5a27a0a 100644 --- a/comms/tits/files/patch-tty.c +++ b/comms/tits/files/patch-tty.c @@ -1,20 +1,10 @@ ---- tty.c 2001/04/18 14:43:52 1.1 -+++ tty.c 2001/04/18 14:45:57 -@@ -32,6 +32,7 @@ - #include +--- tty.c.orig 2011-01-15 13:48:44.000000000 +0100 ++++ tty.c 2019-06-16 14:41:22.199765000 +0200 +@@ -33,6 +33,7 @@ #include #include + #include +#include - #include + #include #include -@@ -216,8 +217,7 @@ - * If this is *not* a pseudo tty, ensure DTR is asserted. - * Note: This relies on TIOCGFLAGS returning ENOTTY for pty(4)'s. - */ -- if (ioctl(cc->cc_fd, TIOCGFLAGS, &flags) == 0 && errno == ENOTTY && -- ioctl(cc->cc_fd, TIOCSDTR, 0) < 0) { -+ if (ioctl(cc->cc_fd, TIOCSDTR, 0) < 0 && errno != ENOTTY) { - (void) close(cc->cc_fd); - (void) free(tc->tc_to.to_device); - (void) free(tc);