Ignore:
Timestamp:
Oct 28, 2012, 1:17:46 AM (8 years ago)
Author:
ryandesign@…
Message:

p0f: update to 3.06b (#34899); add universal variant and ensure we're using the right -arch flags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/net/p0f/Portfile

    r94506 r99133  
    55
    66name                p0f
    7 version             2.0.8
     7version             3.06b
    88set major           [lindex [split ${version} .] 0]
    99categories          net security
     
    2424extract.suffix      .tgz
    2525
    26 checksums           sha1    7b4d5b2f24af4b5a299979134bc7f6d7b1eaf875 \
    27                     rmd160  87d5b30d2d5e156b9fdcb026160155f413ce13d3
     26checksums           rmd160  040dbec1457b8817075e3777e2c45020739930f9 \
     27                    sha256  d151931be2557ac45f9baa0a9384b8643979f4227c391ed395792874f2c6cde7
    2828
    2929depends_build       port:gmake
    3030
    31 worksrcdir          ${name}
     31depends_lib         port:libpcap
    3232
    33 patchfiles          p0f.c.patch \
    34                     p0fq.c.patch
     33set datadir         ${prefix}/share/${name}
    3534
    3635post-patch  {
    37     reinplace "s|/etc/p0f|${prefix}/share/p0f|g" ${worksrcpath}/config.h
     36    reinplace "s|\"p0f.fp\"|\"${datadir}/p0f.fp\"|g" ${worksrcpath}/config.h
    3837}
    3938
    4039use_configure       no
    4140
    42 build.args          CC=${configure.cc}
     41variant universal {}
     42
     43build.args          CC="${configure.cc} [get_canonical_archflags cc]"
     44
     45post-build {
     46    # build tools not handled by the build.sh script separately
     47    system -W ${worksrcpath}/tools "${build.cmd} [join ${build.args}]"
     48}
    4349
    4450destroot {
    45     xinstall -m 755 -s ${worksrcpath}/p0f ${destroot}${prefix}/bin
    46     xinstall -m 644 ${worksrcpath}/p0f.1 ${destroot}${prefix}/share/man/man1
    47     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} \
    48         ${destroot}${prefix}/share/${name}
    49     xinstall -m 644 -W ${worksrcpath} p0f.fp p0fa.fp p0fr.fp p0fo.fp \
    50         ${destroot}${prefix}/share/${name}
    51     xinstall -m 644 -W ${worksrcpath}/doc COPYING CREDITS ChangeLog KNOWN_BUGS \
    52         README TODO ${destroot}${prefix}/share/doc/${name}
     51    xinstall -m 755 -s -W ${worksrcpath} \
     52        ${name} \
     53        tools/${name}-client \
     54        tools/${name}-sendsyn \
     55        tools/${name}-sendsyn6 \
     56        ${destroot}${prefix}/bin
     57    # the manpage is unavailable in version 3.05b, uncomment when provided again
     58    #xinstall -m 644 ${worksrcpath}/p0f.1 ${destroot}${prefix}/share/man/man1
     59    xinstall -m 755 -d ${destroot}${datadir} ${destroot}${prefix}/share/doc
     60    xinstall -m 644 ${worksrcpath}/p0f.fp ${destroot}${datadir}
     61    copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
     62    xinstall -m 644 -W ${worksrcpath}/tools README-TOOLS \
     63        ${destroot}${prefix}/share/doc/${name}
    5364}
    5465
Note: See TracChangeset for help on using the changeset viewer.