summaryrefslogtreecommitdiffstats
path: root/security/openvpn-devel
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2005-09-18 12:01:57 +0000
committervs <vs@FreeBSD.org>2005-09-18 12:01:57 +0000
commit4533c38ce6c8b382fc550ea9cba30f51a70cab18 (patch)
tree33df28db63a56a0bb60073fe0fa08290c2d48fde /security/openvpn-devel
parent696db928a61b1bb4d3e25851a3511cbc1af154fe (diff)
downloadFreeBSD-ports-4533c38ce6c8b382fc550ea9cba30f51a70cab18.zip
FreeBSD-ports-4533c38ce6c8b382fc550ea9cba30f51a70cab18.tar.gz
FreeBSD 6 no longer adds debug.if_* sysctl variables in its default kernel
(according to the release notes), so our heuristic assumes the module is missing and tries to load it, which fails as the module already exists. PR: ports/86286 Submitted by: maintainer
Diffstat (limited to 'security/openvpn-devel')
-rw-r--r--security/openvpn-devel/Makefile1
-rw-r--r--security/openvpn-devel/files/openvpn.sh.in6
2 files changed, 6 insertions, 1 deletions
diff --git a/security/openvpn-devel/Makefile b/security/openvpn-devel/Makefile
index 3696972..3eaa4c233 100644
--- a/security/openvpn-devel/Makefile
+++ b/security/openvpn-devel/Makefile
@@ -7,6 +7,7 @@
PORTNAME= openvpn
DISTVERSION= 2.0.2
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://openvpn.net/release/
diff --git a/security/openvpn-devel/files/openvpn.sh.in b/security/openvpn-devel/files/openvpn.sh.in
index 07f6447..1330f7a 100644
--- a/security/openvpn-devel/files/openvpn.sh.in
+++ b/security/openvpn-devel/files/openvpn.sh.in
@@ -59,7 +59,11 @@ prefix="%%PREFIX%%"
openvpn_precmd()
{
for i in $openvpn_if ; do
- if ! sysctl debug.if_${i}_debug >/dev/null 2>&1 ; then
+ # FreeBSD <= 5.4 does not know kldstat's -m option
+ # FreeBSD >= 6.0 does not add debug.* sysctl information
+ # in the default build - we check both to keep things simple
+ if ! sysctl debug.if_${i}_debug >/dev/null 2>&1 \
+ && ! kldstat -m if_${i} >/dev/null 2>&1 ; then
if ! kldload if_${i} ; then
warn "Could not load $i module."
return 1
OpenPOWER on IntegriCloud