# -*- 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: Portfile 94457 2012-06-19 21:28:17Z ryandesign@macports.org $

PortSystem          1.0

name                nsrllookup
version             1.1-2
set branch          [join [lrange [split [lindex [split ${version} -] 0] .] 0 1] .]
categories          security sysutils
platforms           darwin
maintainers         gmail.com:jessekornblum
license             ISC

description         Look up hashes in the NSRL

long_description    Look up hashes in the National Software Reference Library database of hashes

homepage            http://nsrlquery.sourceforge.net/
master_sites        sourceforge:project/nsrlquery/nsrllookup/${branch}
use_bzip2           yes

checksums           rmd160  8d07f29938cc9d2ae7a6d7c66327d30f71a08831 \
                    sha256  610f055c0795c7b23cf05e32cc98bbfb417983f55a9538f21a8ccf8edae7dab7

configure.args      --disable-silent-rules

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS CHANGELOG LICENSE NEWS THANKS \
        ${destroot}${docdir}
}

livecheck.regex     /${name}-(\[0-9.-\]+)${extract.suffix}
