aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--security/vpnc/Makefile2
-rw-r--r--security/vpnc/files/patch-vpnc-script23
2 files changed, 22 insertions, 3 deletions
diff --git a/security/vpnc/Makefile b/security/vpnc/Makefile
index 68f94fb21430..c395b45754b6 100644
--- a/security/vpnc/Makefile
+++ b/security/vpnc/Makefile
@@ -7,7 +7,7 @@
PORTNAME= vpnc
PORTVERSION= 0.5.1
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= security
MASTER_SITES= http://www.unix-ag.uni-kl.de/~massar/vpnc/ \
CRITICAL
diff --git a/security/vpnc/files/patch-vpnc-script b/security/vpnc/files/patch-vpnc-script
index d4f4e4914d41..3d183f2d96a3 100644
--- a/security/vpnc/files/patch-vpnc-script
+++ b/security/vpnc/files/patch-vpnc-script
@@ -1,5 +1,8 @@
---- vpnc-script.orig 2008-02-26 00:42:09.000000000 +0100
-+++ vpnc-script 2008-02-26 00:43:41.000000000 +0100
+
+$FreeBSD$
+
+--- vpnc-script.orig
++++ vpnc-script
@@ -56,8 +56,8 @@
;;
esac
@@ -11,3 +14,19 @@
FULL_SCRIPTNAME=/usr/local/sbin/vpnc
SCRIPTNAME=`basename $FULL_SCRIPTNAME`
+@@ -407,11 +407,13 @@
+ fi
+ fi
+ elif [ "$OS" = "FreeBSD" ]; then
+- if [ ! -e /dev/tun ]; then
++ kldstat -q -m if_tun
++ if [ ${?} != 0 ]; then
+ kldload if_tun
+ fi
+ elif [ "$OS" = "GNU/kFreeBSD" ]; then
+- if [ ! -e /dev/tun ]; then
++ kldstat -q -m if_tun
++ if [ ${?} != 0 ]; then
+ kldload if_tun
+ fi
+ elif [ "$OS" = "NetBSD" ]; then