Ticket #17892: tuntaposx_Portfile.diff

File tuntaposx_Portfile.diff, 1.8 KB (added by michaelld (Michael Dickens), 16 years ago)

'diff -u' of the tuntaposx Portfile, matching the previous tarball

  • (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
    12# $Id $
    23
    34PortSystem 1.0
    45
    56name                    tuntaposx
    67version                 20080804
    7 
     8revision                1
    89categories              net
    910maintainers             febeling openmaintainer
    1011description             Tun and tap virtual devices.
     
    1819checksums               sha1 2315388ac0e7e090c0e5322fbffb3a9b044e55f5
    1920use_configure           no
    2021destroot.violate_mtree  yes
    21 destroot.args           BASE=${destroot}${prefix}
     22destroot.args   BASE=${destroot}${prefix}
     23
     24# make sure to NOT use MacPorts' GCC; must have Apple's
     25build.env       CC=/usr/bin/gcc \
     26                CXX=/usr/bin/g++
     27
     28# patches that remove the hard-wired CC and CXX definitions
     29patchfiles      patch-src-tap-Makefile.diff \
     30                        patch-src-tun-Makefile.diff
    2231
     32# how to create the startup item
    2333startupitem.create      yes
    2434startupitem.pidfile     none
    2535set kext_dir            ${prefix}/Library/Extensions
    2636startupitem.start       "kextload ${kext_dir}/tap.kext ; kextload  ${kext_dir}/tun.kext"
    2737startupitem.stop        "kextunload ${kext_dir}/tap.kext ; kextunload  ${kext_dir}/tun.kext"
    2838
     39# use the standard environment variable CXX for the C++ compiler
     40post-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
    2947post-destroot {
    3048        set docs ${destroot}${prefix}/share/doc/${name}-${version}
    3149        xinstall -m 755 -d ${docs}
    32         xinstall -m 644 -W ${worksrcpath} README ChangeLog ${docs}
     50        xinstall -m 644 -W ${worksrcpath} README Changelog ${docs}
    3351}
    3452
    3553post-activate {