source: trunk/dports/net/p0f/Portfile

Last change on this file was 142536, checked in by ryandesign@…, 21 months ago

p0f: update to 3.08b (#49653)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
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
2# $Id: Portfile 142536 2015-11-14 17:21:41Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                p0f
7version             3.08b
8set major           [lindex [split ${version} .] 0]
9categories          net security
10platforms           darwin
11maintainers         nomaintainer
12license             LGPL-2.1
13
14description         versatile passive OS fingerprinting, masquerade detection tool
15
16long_description    p0f is a versatile passive OS fingerprinting and \
17                    masquerade detection utility, to be used for evidence or \
18                    information gathering on servers, firewalls, IDSes, and \
19                    honeypots, for pen-testing, or just for the fun of it.
20
21homepage            http://lcamtuf.coredump.cx/p0f3/
22master_sites        ${homepage}releases/ \
23                    ${homepage}releases/old/${major}.x/
24extract.suffix      .tgz
25
26checksums           rmd160  9aee741e742d12c285febb0b1653ab68ebf3271a \
27                    sha256  da89a7fe4ba5db3704207f4bde231643bedd4fe8653ab8111c65766c8c768aec
28
29depends_build       port:gmake
30
31depends_lib         port:libpcap
32
33set datadir         ${prefix}/share/${name}
34
35post-patch  {
36    reinplace "s|\"p0f.fp\"|\"${datadir}/p0f.fp\"|g" ${worksrcpath}/config.h
37}
38
39use_configure       no
40
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}
49
50destroot {
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}
64}
65
66livecheck.regex     ${name}-(\[0-9.\]+b?)${extract.suffix}
67livecheck.type      regex
68livecheck.url       [lindex ${master_sites} 0]
Note: See TracBrowser for help on using the repository browser.