Date: Sun, 1 Mar 2015 22:15:21 +0000 (UTC) From: John Marino <marino@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r380230 - in head/net/omnitty: . files Message-ID: <201503012215.t21MFLTq010129@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marino Date: Sun Mar 1 22:15:21 2015 New Revision: 380230 URL: https://svnweb.freebsd.org/changeset/ports/380230 QAT: https://qat.redports.org/buildarchive/r380230/ Log: net/omnitty: Allow greater than 32-character hostnames PR: 197601 Submitted by: David (catwhisker.org) Modified: head/net/omnitty/Makefile head/net/omnitty/files/patch-main.c Modified: head/net/omnitty/Makefile ============================================================================== --- head/net/omnitty/Makefile Sun Mar 1 22:06:50 2015 (r380229) +++ head/net/omnitty/Makefile Sun Mar 1 22:15:21 2015 (r380230) @@ -3,9 +3,9 @@ PORTNAME= omnitty PORTVERSION= 0.3.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net -MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} +MASTER_SITES= SF/omnitty/omnitty/omnitty-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Curses-based SSH multiplexer @@ -16,16 +16,14 @@ USES= gmake GNU_CONFIGURE= yes LIBS+= -lncurses -ALL_TARGET= ${PORTNAME} - +ALL_TARGET= omnitty PLIST_FILES= bin/omnitty man/man1/omnitty.1.gz post-patch: - ${REINPLACE_CMD} 's|<alloca.h>|<stdlib.h>|' \ - ${WRKSRC}/machmgr.c + ${REINPLACE_CMD} 's|<alloca.h>|<stdlib.h>|' ${WRKSRC}/machmgr.c do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1 + ${INSTALL_PROGRAM} ${WRKSRC}/omnitty ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/omnitty.1 ${STAGEDIR}${MANPREFIX}/man/man1 .include <bsd.port.mk> Modified: head/net/omnitty/files/patch-main.c ============================================================================== --- head/net/omnitty/files/patch-main.c Sun Mar 1 22:06:50 2015 (r380229) +++ head/net/omnitty/files/patch-main.c Sun Mar 1 22:15:21 2015 (r380230) @@ -1,5 +1,13 @@ --- main.c.orig 2005-10-26 06:08:25.000000000 +0800 +++ main.c 2011-04-22 23:14:33.000000000 +0800 +@@ -36,6 +36,7 @@ + /* minimum terminal dimensions to run program */ + #define MIN_REQUIRED_WIDTH 80 + #define MIN_REQUIRED_HEIGHT 25 ++#define MAX_HOSTNAME_LENGTH 64 + + #define REMINDER_LINE "OmNiTTY-R v" OMNITTY_VERSION \ + " \007F1\007:menu \006F2/3\007:sel \003F4\007:tag" \ @@ -88,6 +88,12 @@ define_key("\e[15~", KEY_F(5)); define_key("\e[17~", KEY_F(6)); define_key("\e[18~", KEY_F(7)); define_key("\e[19~", KEY_F(8)); @@ -13,6 +21,19 @@ getmaxyx(stdscr, h, w); if (h < MIN_REQUIRED_HEIGHT || w < MIN_REQUIRED_WIDTH) { +@@ -288,10 +289,10 @@ + } + + static void add_machine() { +- static char buf[32]; ++ static char buf[MAX_HOSTNAME_LENGTH]; + + *buf = 0; +- if (minibuf_prompt(minibuf, "Add: ", 0xE0, buf, 32)) { ++ if (minibuf_prompt(minibuf, "Add: ", 0xE0, buf, sizeof(buf))) { + if (*buf == '@') add_machines_from_file(buf+1); + else machmgr_add(buf); + } @@ -335,9 +341,10 @@ while (!quit) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503012215.t21MFLTq010129>