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
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 94506 2012-06-21 02:15:01Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                p0f
7version             2.0.8
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           sha1    7b4d5b2f24af4b5a299979134bc7f6d7b1eaf875 \
27                    rmd160  87d5b30d2d5e156b9fdcb026160155f413ce13d3
28
29depends_build       port:gmake
30
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
38}
39
40use_configure       no
41
42build.args          CC=${configure.cc}
43
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}
53}
54
55livecheck.regex     ${name}-(\[0-9.\]+b?)${extract.suffix}
56livecheck.type      regex
57livecheck.url       [lindex ${master_sites} 0]
Note: See TracBrowser for help on using the repository browser.