Index: Makefile =================================================================== --- Makefile (revision 310915) +++ Makefile (working copy) @@ -1,12 +1,9 @@ -# New ports collection makefile for: vpnc-scripts -# Date created: 20 Apr 2012 -# Whom: Ryan Steinmetz -# +# Created by: Ryan Steinmetz # $FreeBSD$ -# PORTNAME= vpnc-scripts PORTVERSION= 20121109 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= ftp://ftp.infradead.org/pub/${PORTNAME}/ \ http://mirrors.rit.edu/zi/ @@ -15,7 +12,6 @@ COMMENT= A collection of scripts to setup routes and other changes for a VPN LICENSE= GPLv2 -LICENSE_FILE= ${WRKSRC}/COPYING NO_BUILD= yes Index: files/patch-vpnc-script =================================================================== --- files/patch-vpnc-script (revision 0) +++ files/patch-vpnc-script (working copy) @@ -0,0 +1,40 @@ +--- ./vpnc-script.orig 2012-11-08 21:59:04.000000000 +0100 ++++ ./vpnc-script 2013-01-24 09:54:15.000000000 +0100 +@@ -121,7 +121,7 @@ + include /lib/network + MODIFYRESOLVCONF=modify_resolvconf_openwrt + RESTORERESOLVCONF=restore_resolvconf_openwrt +-elif [ -x /sbin/resolvconf ]; then # Optional tool on Debian, Ubuntu, Gentoo ++elif [ -x /sbin/resolvconf ] && [ "$OS" != "FreeBSD" ]; then # Optional tool on Debian, Ubuntu, Gentoo - but not FreeBSD, it seems to work different + MODIFYRESOLVCONF=modify_resolvconf_manager + RESTORERESOLVCONF=restore_resolvconf_manager + elif [ -x /sbin/netconfig ]; then # tool on Suse after 11.1 +@@ -198,9 +198,12 @@ + + destroy_tun_device() { + case "$OS" in +- NetBSD|FreeBSD|OpenBSD) # and probably others... ++ NetBSD|OpenBSD) # and probably others... + ifconfig "$TUNDEV" destroy + ;; ++ FreeBSD) ++ ifconfig "$TUNDEV" destroy > /dev/null 2>&1 & ++ ;; + esac + } + +@@ -593,9 +596,13 @@ + fi + fi + elif [ "$OS" = "FreeBSD" ]; then +- if [ ! -e /dev/tun ]; then ++ if ! kldstat -q -m if_tun > /dev/null; then + kldload if_tun + fi ++ ++ if ! ifconfig $TUNDEV > /dev/null; then ++ ifconfig $TUNDEV create ++ fi + elif [ "$OS" = "GNU/kFreeBSD" ]; then + if [ ! -e /dev/tun ]; then + kldload if_tun Property changes on: files/patch-vpnc-script ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property