# -*- 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 # $Id$ PortSystem 1.0 name p0f version 2.0.8 set major [lindex [split ${version} .] 0] categories net security platforms darwin maintainers nomaintainer license LGPL-2.1 description versatile passive OS fingerprinting, masquerade detection tool long_description p0f is a versatile passive OS fingerprinting and \ masquerade detection utility, to be used for evidence or \ information gathering on servers, firewalls, IDSes, and \ honeypots, for pen-testing, or just for the fun of it. homepage http://lcamtuf.coredump.cx/p0f3/ master_sites ${homepage}releases/ \ ${homepage}releases/old/${major}.x/ extract.suffix .tgz checksums sha1 7b4d5b2f24af4b5a299979134bc7f6d7b1eaf875 \ rmd160 87d5b30d2d5e156b9fdcb026160155f413ce13d3 depends_build port:gmake worksrcdir ${name} patchfiles p0f.c.patch \ p0fq.c.patch post-patch { reinplace "s|/etc/p0f|${prefix}/share/p0f|g" ${worksrcpath}/config.h } use_configure no build.args CC=${configure.cc} destroot { xinstall -m 755 -s ${worksrcpath}/p0f ${destroot}${prefix}/bin xinstall -m 644 ${worksrcpath}/p0f.1 ${destroot}${prefix}/share/man/man1 xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} \ ${destroot}${prefix}/share/${name} xinstall -m 644 -W ${worksrcpath} p0f.fp p0fa.fp p0fr.fp p0fo.fp \ ${destroot}${prefix}/share/${name} xinstall -m 644 -W ${worksrcpath}/doc COPYING CREDITS ChangeLog KNOWN_BUGS \ README TODO ${destroot}${prefix}/share/doc/${name} } livecheck.regex ${name}-(\[0-9.\]+b?)${extract.suffix} livecheck.type regex livecheck.url [lindex ${master_sites} 0]