aboutsummaryrefslogtreecommitdiff
path: root/net/tcpview
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2016-08-08 05:22:32 +0000
committerCy Schubert <cy@FreeBSD.org>2016-08-08 05:22:32 +0000
commitb9c29970bf6bc64b2f53ba219ff18228660010d7 (patch)
tree23e14b681835d4aa6a614b52ed3476a4d7952d90 /net/tcpview
parent91d1d84cc930ec348b7e01a0062459f328c9f7c9 (diff)
downloadports-b9c29970bf6bc64b2f53ba219ff18228660010d7.tar.gz
ports-b9c29970bf6bc64b2f53ba219ff18228660010d7.zip
Add patch to support synth.
Submitted by: marino@
Notes
Notes: svn path=/head/; revision=419797
Diffstat (limited to 'net/tcpview')
-rw-r--r--net/tcpview/files/patch-ostype13
1 files changed, 13 insertions, 0 deletions
diff --git a/net/tcpview/files/patch-ostype b/net/tcpview/files/patch-ostype
new file mode 100644
index 000000000000..c52322f1e8c9
--- /dev/null
+++ b/net/tcpview/files/patch-ostype
@@ -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