diff options
author | Mark Felder <feld@FreeBSD.org> | 2017-07-09 03:00:16 +0000 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2017-07-09 03:00:16 +0000 |
commit | 6e7d3ec869a31c60f9b9bd30ad02ea4cdecc9779 (patch) | |
tree | 9e403fe2c4812c9a054e91f85b93497ab9b8cf5d /net-mgmt | |
parent | MFH: r445357 (diff) |
MFH: r445363
net-mgmt/rancid3: Fix building in jails without networking
Approved by: ports-secteam (with hat)
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/rancid3/files/patch-configure | 46 |
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 + |