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

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

p0f: whitespace / formatting changes / add modeline

  • 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 94505 2012-06-21 02:08:47Z 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
12
13description         versatile passive OS fingerprinting, masquerade detection tool
14
15long_description    p0f is a versatile passive OS fingerprinting and \
16                    masquerade detection utility, to be used for evidence or \
17                    information gathering on servers, firewalls, IDSes, and \
18                    honeypots, for pen-testing, or just for the fun of it.
19
20homepage            http://lcamtuf.coredump.cx/p0f3/
21master_sites        ${homepage}releases/ \
22                    ${homepage}releases/old/${major}.x/
23extract.suffix      .tgz
24
25checksums           sha1    7b4d5b2f24af4b5a299979134bc7f6d7b1eaf875 \
26                    rmd160  87d5b30d2d5e156b9fdcb026160155f413ce13d3
27
28depends_build       port:gmake
29
30worksrcdir          ${name}
31
32patchfiles          p0f.c.patch \
33                    p0fq.c.patch
34
35post-patch  {
36    reinplace "s|/etc/p0f|${prefix}/share/p0f|g" ${worksrcpath}/config.h
37}
38
39use_configure       no
40
41build.args          CC=${configure.cc}
42
43destroot {
44    xinstall -m 755 -s ${worksrcpath}/p0f ${destroot}${prefix}/bin
45    xinstall -m 644 ${worksrcpath}/p0f.1 ${destroot}${prefix}/share/man/man1
46    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} \
47        ${destroot}${prefix}/share/${name}
48    xinstall -m 644 -W ${worksrcpath} p0f.fp p0fa.fp p0fr.fp p0fo.fp \
49        ${destroot}${prefix}/share/${name}
50    xinstall -m 644 -W ${worksrcpath}/doc COPYING CREDITS ChangeLog KNOWN_BUGS \
51        README TODO ${destroot}${prefix}/share/doc/${name}
52}
53
54livecheck.regex     ${name}-(\[0-9.\]+b?)${extract.suffix}
55livecheck.type      regex
56livecheck.url       http://lcamtuf.coredump.cx/p0f3/releases/
Note: See TracBrowser for help on using the repository browser.