aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/rancid3
diff options
context:
space:
mode:
authorfeld <feld@FreeBSD.org>2017-07-09 10:59:46 +0800
committerfeld <feld@FreeBSD.org>2017-07-09 10:59:46 +0800
commitc9b11aeb5464f7d5549229b631edf242df196b14 (patch)
treecdaa50fb2349979d442b6f9a9f76a84cbbcd1fd4 /net-mgmt/rancid3
parent63afaab3c316d9694dcdfcd5cc0bf3bfc1cdeeff (diff)
downloadfreebsd-ports-gnome-c9b11aeb5464f7d5549229b631edf242df196b14.tar.gz
freebsd-ports-gnome-c9b11aeb5464f7d5549229b631edf242df196b14.tar.zst
freebsd-ports-gnome-c9b11aeb5464f7d5549229b631edf242df196b14.zip
net-mgmt/rancid3: Fix building in jails without networking
MFH: 2017Q3
Diffstat (limited to 'net-mgmt/rancid3')
-rw-r--r--net-mgmt/rancid3/files/patch-configure46
1 files changed, 46 insertions, 0 deletions
diff --git a/net-mgmt/rancid3/files/patch-configure b/net-mgmt/rancid3/files/patch-configure
new file mode 100644
index 000000000000..f8beb5d7dcd9
--- /dev/null
+++ b/net-mgmt/rancid3/files/patch-configure
@@ -0,0 +1,46 @@
+--- configure.orig 2017-07-09 02:56:22 UTC
++++ configure
+@@ -5471,24 +5471,25 @@ fi
+ # ping seems to take one of two formats for count (N)
+ # BSD: ping -c N host
+ # SVR: ping host N
+-$PING_PATH -c 1 -v 127.0.0.1 > /dev/null 2>&1
+-if test $? -eq 0 ; then
+- LG_PING_CMD="$PING_PATH -c 1"
+-else
+- $PING_PATH 127.0.0.1 56 1 > /dev/null 2>&1
+- if test $? -eq 0 ; then
+- LG_PING_CMD="$PING_PATH"
+- else
+- # cygwin using windows ping?
+- $PING_PATH -n 1 127.0.0.1 > /dev/null 2>&1
+- if test $? -eq 0 ; then
+- LG_PING_CMD="$PING_PATH -n 1"
+- else
+- as_fn_error $? "can't figure out how to pass count == 1 to $PING_PATH." "$LINENO" 5
+- exit 1
+- fi
+- fi
+-fi
++#$PING_PATH -c 1 -v 127.0.0.1 > /dev/null 2>&1
++#if test $? -eq 0 ; then
++# LG_PING_CMD="$PING_PATH -c 1"
++#else
++# $PING_PATH 127.0.0.1 56 1 > /dev/null 2>&1
++# if test $? -eq 0 ; then
++# LG_PING_CMD="$PING_PATH"
++# else
++# # cygwin using windows ping?
++# $PING_PATH -n 1 127.0.0.1 > /dev/null 2>&1
++# if test $? -eq 0 ; then
++# LG_PING_CMD="$PING_PATH -n 1"
++# else
++# as_fn_error $? "can't figure out how to pass count == 1 to $PING_PATH." "$LINENO" 5
++# exit 1
++# fi
++# fi
++#fi
++LG_PING_CMD="$PING_PATH -c 1"
+
+ rd_cv_lg_ping_cmd=$LG_PING_CMD
+