source: trunk/dports/net/p0f/Portfile @ 94506

Last change on this file since 94506 was 94506, checked in by ryandesign@…, 8 years ago

p0f: license LGPL-2.1; reuse master_sites in livecheck.url

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
RevLine 
[94505]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
[20348]2# $Id: Portfile 94506 2012-06-21 02:15:01Z ryandesign@macports.org $
[8385]3
[94505]4PortSystem          1.0
[8385]5
[94505]6name                p0f
7version             2.0.8
[94504]8set major           [lindex [split ${version} .] 0]
[94505]9categories          net security
10platforms           darwin
11maintainers         nomaintainer
[94506]12license             LGPL-2.1
[8385]13
[94505]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
[94504]21homepage            http://lcamtuf.coredump.cx/p0f3/
22master_sites        ${homepage}releases/ \
23                    ${homepage}releases/old/${major}.x/
[94505]24extract.suffix      .tgz
[8385]25
[94505]26checksums           sha1    7b4d5b2f24af4b5a299979134bc7f6d7b1eaf875 \
27                    rmd160  87d5b30d2d5e156b9fdcb026160155f413ce13d3
[8385]28
[94505]29depends_build       port:gmake
[8385]30
[94505]31worksrcdir          ${name}
32
33patchfiles          p0f.c.patch \
34                    p0fq.c.patch
35
36post-patch  {
37    reinplace "s|/etc/p0f|${prefix}/share/p0f|g" ${worksrcpath}/config.h
[8385]38}
39
[94505]40use_configure       no
[61095]41
[94505]42build.args          CC=${configure.cc}
[61094]43
[94505]44destroot {
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}
[8385]53}
[94315]54
[94505]55livecheck.regex     ${name}-(\[0-9.\]+b?)${extract.suffix}
56livecheck.type      regex
[94506]57livecheck.url       [lindex ${master_sites} 0]
Note: See TracBrowser for help on using the repository browser.