[90483] trunk/dports/net/tuntaposx/Portfile

ryandesign at macports.org ryandesign at macports.org
Tue Mar 6 15:29:44 PST 2012


Revision: 90483
          http://trac.macports.org/changeset/90483
Author:   ryandesign at macports.org
Date:     2012-03-06 15:29:44 -0800 (Tue, 06 Mar 2012)
Log Message:
-----------
tuntaposx: add modeline; whitespace changes

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

Modified: trunk/dports/net/tuntaposx/Portfile
===================================================================
--- trunk/dports/net/tuntaposx/Portfile	2012-03-06 23:05:25 UTC (rev 90482)
+++ trunk/dports/net/tuntaposx/Portfile	2012-03-06 23:29:44 UTC (rev 90483)
@@ -1,65 +1,72 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem 1.0
+PortSystem          1.0
 
-name			tuntaposx
-version			20090913
-revision		1
-categories		net
-license			BSD
-maintainers		nomaintainer
-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 1a9fb5e077c6d21b7715c8cb26f2ebdcbd681202
+name                tuntaposx
+version             20090913
+revision            1
+categories          net
+platforms           darwin
+license             BSD
+maintainers         nomaintainer
+
+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/
+master_sites        sourceforge
+distname            tuntap_${version}_src
+worksrcdir          tuntap
+
+checksums           sha1    1a9fb5e077c6d21b7715c8cb26f2ebdcbd681202
+
 destroot.violate_mtree  yes
-destroot.args           BASE=${destroot}${prefix}
+destroot.args       BASE=${destroot}${prefix}
 
-patchfiles		patch-src__tap__Makefile patch-src__tun__Makefile
+patchfiles          patch-src__tap__Makefile \
+                    patch-src__tun__Makefile
 
 configure {
-	reinplace "s|CCP = g++|CCP = ${configure.cxx}|" ${worksrcpath}/src/tun/Makefile \
-	                                                ${worksrcpath}/src/tap/Makefile
-	reinplace "s|CC = gcc|CC = ${configure.cc}|" ${worksrcpath}/src/tun/Makefile \
-	                                             ${worksrcpath}/src/tap/Makefile
-	if {[variant_isset universal]} {
-		reinplace "s|__CFLAGS__|${configure.universal_cflags}|" ${worksrcpath}/src/tun/Makefile \
-		                                              ${worksrcpath}/src/tap/Makefile
-	} else {
-		reinplace "s|__CFLAGS__|${configure.cflags}|" ${worksrcpath}/src/tun/Makefile \
-		                                              ${worksrcpath}/src/tap/Makefile
-	}
+    reinplace "s|CCP = g++|CCP = ${configure.cxx}|" ${worksrcpath}/src/tun/Makefile \
+                                                    ${worksrcpath}/src/tap/Makefile
+    reinplace "s|CC = gcc|CC = ${configure.cc}|"    ${worksrcpath}/src/tun/Makefile \
+                                                    ${worksrcpath}/src/tap/Makefile
+    if {[variant_isset universal]} {
+        reinplace "s|__CFLAGS__|${configure.universal_cflags}|" ${worksrcpath}/src/tun/Makefile \
+                                                                ${worksrcpath}/src/tap/Makefile
+    } else {
+        reinplace "s|__CFLAGS__|${configure.cflags}|"   ${worksrcpath}/src/tun/Makefile \
+                                                        ${worksrcpath}/src/tap/Makefile
+    }
 }
 
-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"
+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}
+    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 "**********************************************************************"
-	}
+    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 "**********************************************************************"
+    }
 }
 
 if {${os.major} <= 9} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120306/d37a46a4/attachment.html>


More information about the macports-changes mailing list