Index: head/comms/tits/Makefile =================================================================== --- head/comms/tits/Makefile (revision 504421) +++ head/comms/tits/Makefile (revision 504422) @@ -1,26 +1,26 @@ # Created by: Steve Woodford # $FreeBSD$ PORTNAME= tits -PORTVERSION= 1.1.2 -PORTREVISION= 2 +PORTVERSION= 1.3.0 CATEGORIES= comms MASTER_SITES= http://www.mctavish.co.uk/tits/ MAINTAINER= mich@FreeBSD.org COMMENT= Server which provides telnet(1) access to one or more tty ports LICENSE= BSD4CLAUSE USES= uidfix USE_RC_SUBR= tits + MAKE_ENV= BINDIR=${PREFIX}/sbin MANDIR=${PREFIX}/man/man post-patch: ${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/tits.8 post-install: ${INSTALL_DATA} ${WRKSRC}/tits.conf \ ${STAGEDIR}${PREFIX}/etc/tits.conf.default .include Index: head/comms/tits/distinfo =================================================================== --- head/comms/tits/distinfo (revision 504421) +++ head/comms/tits/distinfo (revision 504422) @@ -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 Index: head/comms/tits/files/patch-tty.c =================================================================== --- head/comms/tits/files/patch-tty.c (revision 504421) +++ head/comms/tits/files/patch-tty.c (nonexistent) @@ -1,20 +0,0 @@ ---- tty.c 2001/04/18 14:43:52 1.1 -+++ tty.c 2001/04/18 14:45:57 -@@ -32,6 +32,7 @@ - #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); Property changes on: head/comms/tits/files/patch-tty.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/comms/tits/files/patch-Makefile =================================================================== --- head/comms/tits/files/patch-Makefile (revision 504421) +++ head/comms/tits/files/patch-Makefile (revision 504422) @@ -1,21 +1,30 @@ ---- 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 12:47:19 UTC ++++ Makefile +@@ -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. -WARNS= 2 +NO_WERROR=1 PROG= tits -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 + Index: head/comms/tits/files/patch-dispatcher.c =================================================================== --- head/comms/tits/files/patch-dispatcher.c (revision 504421) +++ head/comms/tits/files/patch-dispatcher.c (revision 504422) @@ -1,11 +1,11 @@ ---- dispatcher.c.orig Tue Sep 24 13:21:42 2002 -+++ dispatcher.c Tue Sep 24 13:23:15 2002 -@@ -131,7 +131,7 @@ +--- dispatcher.c.orig 2006-03-19 11:34:47 UTC ++++ dispatcher.c +@@ -237,7 +237,7 @@ dispatcher_mainloop(void) struct context *ctx; struct client_ctx *cc; struct pollfd *pf; - nfds_t pfds; + unsigned int pfds; int nfds, errcnt = 0; - - while (!TAILQ_EMPTY(&contexts)) { + int timeout; + time_t delta = 0; Index: head/comms/tits/files/patch-listener.c =================================================================== --- head/comms/tits/files/patch-listener.c (revision 504421) +++ head/comms/tits/files/patch-listener.c (revision 504422) @@ -1,13 +1,14 @@ ---- listener.c.orig +--- listener.c.orig 2009-11-16 14:30:13 UTC +++ listener.c -@@ -189,10 +189,6 @@ +@@ -189,11 +189,6 @@ listener_destroy(struct client_ctx *cc) 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); } Index: head/comms/tits/files/patch-rtelnet.c =================================================================== --- head/comms/tits/files/patch-rtelnet.c (nonexistent) +++ head/comms/tits/files/patch-rtelnet.c (revision 504422) @@ -0,0 +1,11 @@ +--- rtelnet.c.orig 2019-06-17 13:22:22 UTC ++++ rtelnet.c +@@ -900,7 +900,7 @@ cf_rtelnet_port(void *cs, char **argv, i + + if (isdigit((unsigned char)argv[1][0])) { + ro->ro_port = atoi(argv[1]); +- if (ro->ro_port < 0 || ro->ro_port > IPPORT_ANONMAX) ++ if (ro->ro_port < 0 || ro->ro_port > IPPORT_MAX) + return (config_err(cs, "Invalid port number '%s'", + argv[1])); + } else Property changes on: head/comms/tits/files/patch-rtelnet.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property