Ticket #17892: tuntaposx_Portfile.diff
File tuntaposx_Portfile.diff, 1.8 KB (added by michaelld (Michael Dickens), 16 years ago) |
---|
-
(a) Portfile_orig vs. (b) Portfile
a b 1 # -*- 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 1 2 # $Id $ 2 3 3 4 PortSystem 1.0 4 5 5 6 name tuntaposx 6 7 version 20080804 7 8 revision 1 8 9 categories net 9 10 maintainers febeling openmaintainer 10 11 description Tun and tap virtual devices. … … 18 19 checksums sha1 2315388ac0e7e090c0e5322fbffb3a9b044e55f5 19 20 use_configure no 20 21 destroot.violate_mtree yes 21 destroot.args BASE=${destroot}${prefix} 22 destroot.args BASE=${destroot}${prefix} 23 24 # make sure to NOT use MacPorts' GCC; must have Apple's 25 build.env CC=/usr/bin/gcc \ 26 CXX=/usr/bin/g++ 27 28 # patches that remove the hard-wired CC and CXX definitions 29 patchfiles patch-src-tap-Makefile.diff \ 30 patch-src-tun-Makefile.diff 22 31 32 # how to create the startup item 23 33 startupitem.create yes 24 34 startupitem.pidfile none 25 35 set kext_dir ${prefix}/Library/Extensions 26 36 startupitem.start "kextload ${kext_dir}/tap.kext ; kextload ${kext_dir}/tun.kext" 27 37 startupitem.stop "kextunload ${kext_dir}/tap.kext ; kextunload ${kext_dir}/tun.kext" 28 38 39 # use the standard environment variable CXX for the C++ compiler 40 post-patch { 41 reinplace "s|CCP|CXX|g" ${worksrcpath}/src/tun/Makefile 42 reinplace "s|CCP|CXX|g" ${worksrcpath}/src/tap/Makefile 43 reinplace "s|10.4|\${MACOSX_DEPLOYMENT_TARGET}|g" ${worksrcpath}/src/tun/Makefile 44 reinplace "s|10.4|\${MACOSX_DEPLOYMENT_TARGET}|g" ${worksrcpath}/src/tap/Makefile 45 } 46 29 47 post-destroot { 30 48 set docs ${destroot}${prefix}/share/doc/${name}-${version} 31 49 xinstall -m 755 -d ${docs} 32 xinstall -m 644 -W ${worksrcpath} README Change Log ${docs}50 xinstall -m 644 -W ${worksrcpath} README Changelog ${docs} 33 51 } 34 52 35 53 post-activate {