aboutsummaryrefslogtreecommitdiffstats
path: root/security/openvpn20
diff options
context:
space:
mode:
authorvd <vd@FreeBSD.org>2006-03-01 00:25:43 +0800
committervd <vd@FreeBSD.org>2006-03-01 00:25:43 +0800
commit50043c2aeb886bd59e59bc458d36f315643346a6 (patch)
tree307e310c4491ff1b36c063f7da54c5de5a968dd3 /security/openvpn20
parentd9f320024e22cd487c41d7e0ae3a889fb9b3cfbe (diff)
downloadfreebsd-ports-gnome-50043c2aeb886bd59e59bc458d36f315643346a6.tar.gz
freebsd-ports-gnome-50043c2aeb886bd59e59bc458d36f315643346a6.tar.zst
freebsd-ports-gnome-50043c2aeb886bd59e59bc458d36f315643346a6.zip
Fix FreeBSD 4 jail build
PR: ports/93833 Patch by: dinoex Submitted by: Matthias Andree <matthias.andree@gmx.de> (maintainer) Approved by: portmgr (marcus)
Diffstat (limited to 'security/openvpn20')
-rw-r--r--security/openvpn20/files/patch-tests-for-jail2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/openvpn20/files/patch-tests-for-jail b/security/openvpn20/files/patch-tests-for-jail
index c7a2c0d203cb..6a0e72746ab6 100644
--- a/security/openvpn20/files/patch-tests-for-jail
+++ b/security/openvpn20/files/patch-tests-for-jail
@@ -30,7 +30,7 @@
+ # FreeBSD jails map the outgoing IP to the jail IP - we need to
+ # allow the real IP unless we want the test to run forever.
+ if test "`sysctl 2>/dev/null -n security.jail.jailed`" = 1 \
-+ || `ps -ostate $$ | tail -n1 | grep >/dev/null J` ; then
++ || ps -ostate= -p $$ | grep -q J; then
+ addopts="--float"
+ if test "x`ifconfig | grep inet`" = x ; then
+ echo "###"