From 20185945628dcdf1923d201dd9b85afcfe8fc118 Mon Sep 17 00:00:00 2001 From: Thierry Thomas Date: Sun, 22 Jan 2006 10:13:06 +0000 Subject: The OpenFOAM (Open Field Operation and Manipulation) CFD Toolbox can simulate anything from complex fluid flows involving chemical reactions, turbulence and heat transfer, to solid dynamics, electromagnetics and the pricing of financial options. WWW: http://www.opencfd.co.uk/openfoam/index.html PR: ports/91886 Submitted by: thierry --- science/openfoam/files/patch-bin_foamSystemCheck | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 science/openfoam/files/patch-bin_foamSystemCheck (limited to 'science/openfoam/files/patch-bin_foamSystemCheck') diff --git a/science/openfoam/files/patch-bin_foamSystemCheck b/science/openfoam/files/patch-bin_foamSystemCheck new file mode 100644 index 000000000000..5b5c4cd5b2e8 --- /dev/null +++ b/science/openfoam/files/patch-bin_foamSystemCheck @@ -0,0 +1,23 @@ +--- bin/foamSystemCheck.orig Tue Jun 21 18:07:04 2005 ++++ bin/foamSystemCheck Mon Dec 26 16:03:08 2005 +@@ -119,6 +119,20 @@ + RESULT="Ping_not_installed_in_usual_path" + fi + ;; ++ FreeBSD) ++ if [ -x '/sbin/ping' ] ; then ++ PINGTEST=`/sbin/ping -c 1 $1 2>&1` ++ if [ -n "`echo $PINGTEST | grep '1 packets received'`" ] ; then ++ RESULT="Successful" ++ elif [ -n "`echo $PINGTEST | grep 'unknown host'`" ] ; then ++ RESULT='Unknown host' ++ else ++ RESULT='Networking not set' ++ fi ++ else ++ RESULT="Ping_not_installed_in_usual_path" ++ fi ++ ;; + # OSF*) + # if [ -x '/usr/sbin/ping' ] ; then + # PINGTEST=`ping -t 3 -c 1 $1 2>&1` -- cgit v1.2.3