svn commit: r419797 - head/net/tcpview/files

Cy Schubert cy at FreeBSD.org
Mon Aug 8 05:22:34 UTC 2016


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


More information about the svn-ports-head mailing list