Date: Mon, 8 Aug 2016 05:22:33 +0000 (UTC) From: Cy Schubert <cy@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r419797 - head/net/tcpview/files Message-ID: <201608080522.u785MXSS000885@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cy Date: Mon Aug 8 05:22:32 2016 New Revision: 419797 URL: https://svnweb.freebsd.org/changeset/ports/419797 Log: Add patch to support synth. Submitted by: marino@ Added: head/net/tcpview/files/patch-ostype (contents, props changed) Added: head/net/tcpview/files/patch-ostype ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/tcpview/files/patch-ostype Mon Aug 8 05:22:32 2016 (r419797) @@ -0,0 +1,13 @@ +Workaround if /etc/motd is missing + +--- ostype.orig 1993-04-19 19:18:37.000000000 +0300 ++++ ostype +@@ -6,6 +6,8 @@ + set os="UNKNOWN" + if ( -f /etc/motd ) then + set os=`awk -f ostype.awk /etc/motd` ++else ++ set os=$(uname -a | awk -f ostype.awk /tmp/motd) + endif + if ($os == "") exit 1 + if ($os == "UNKNOWN") then
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608080522.u785MXSS000885>