From owner-svn-ports-head@FreeBSD.ORG Sun Mar 1 22:15:22 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 85ECFBD2; Sun, 1 Mar 2015 22:15:22 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6693BCCA; Sun, 1 Mar 2015 22:15:22 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t21MFMBE010131; Sun, 1 Mar 2015 22:15:22 GMT (envelope-from marino@FreeBSD.org) Received: (from marino@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t21MFLTq010129; Sun, 1 Mar 2015 22:15:21 GMT (envelope-from marino@FreeBSD.org) Message-Id: <201503012215.t21MFLTq010129@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: marino set sender to marino@FreeBSD.org using -f From: John Marino Date: Sun, 1 Mar 2015 22:15:21 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r380230 - in head/net/omnitty: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Mar 2015 22:15:22 -0000 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|||' \ - ${WRKSRC}/machmgr.c + ${REINPLACE_CMD} 's|||' ${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 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) {