[39689] trunk/dports/net

febeling at macports.org febeling at macports.org
Sat Aug 30 14:52:07 PDT 2008


Revision: 39689
          http://trac.macosforge.org/projects/macports/changeset/39689
Author:   febeling at macports.org
Date:     2008-08-30 14:52:05 -0700 (Sat, 30 Aug 2008)
Log Message:
-----------
new port: tuntaposx

Added Paths:
-----------
    trunk/dports/net/tuntaposx/
    trunk/dports/net/tuntaposx/Portfile

Added: trunk/dports/net/tuntaposx/Portfile
===================================================================
--- trunk/dports/net/tuntaposx/Portfile	                        (rev 0)
+++ trunk/dports/net/tuntaposx/Portfile	2008-08-30 21:52:05 UTC (rev 39689)
@@ -0,0 +1,47 @@
+# $Id $
+
+PortSystem 1.0
+
+name			tuntaposx
+version			20080804
+
+categories		net
+maintainers		febeling openmaintainer
+description		Tun and tap virtual devices.
+long_description	Unix-style tun and tap virtual network interfaces for Mac OS X. \
+	You typically use these for VPN and OS virtualization.
+homepage                http://tuntaposx.sourceforge.net/
+platforms		darwin
+master_sites		sourceforge
+distname                tuntap_${version}_src
+worksrcdir              tuntap
+checksums		sha1 2315388ac0e7e090c0e5322fbffb3a9b044e55f5
+use_configure		no
+destroot.violate_mtree  yes
+destroot.args           BASE=${destroot}${prefix}
+
+startupitem.create      yes
+startupitem.pidfile     none
+set kext_dir            ${prefix}/Library/Extensions
+startupitem.start       "kextload ${kext_dir}/tap.kext ; kextload  ${kext_dir}/tun.kext"
+startupitem.stop        "kextunload ${kext_dir}/tap.kext ; kextunload  ${kext_dir}/tun.kext"
+
+post-destroot {
+	set docs ${destroot}${prefix}/share/doc/${name}-${version}
+	xinstall -m 755 -d ${docs}
+	xinstall -m 644 -W ${worksrcpath} README ChangeLog ${docs}
+}
+
+post-activate {
+	set tap_loaded [expr [string length [exec kextstat -lb foo.tap]] > 0]
+	set tun_loaded [expr [string length [exec kextstat -lb foo.tun]] > 0]
+
+	if {${tap_loaded} || ${tun_loaded}} {
+		ui_msg "**********************************************************************"
+		ui_msg "* Warning: tuntaposx virtual device kernel extension loaded already. *"
+		ui_msg "* Maybe you have installed the tuntaposx package already without     *"
+		ui_msg "* using MacPorts, e.g. by installing Tunnelblick openvpn GUI. See    *"
+		ui_msg "* kextstat(8), kextload(8) and kextunload(8) for manual handling.    *"
+		ui_msg "**********************************************************************"
+	}
+}


Property changes on: trunk/dports/net/tuntaposx/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080830/0c93d2da/attachment.html 


More information about the macports-changes mailing list