# -*- 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

PortSystem          1.0

name                postfinger
version             1.30
categories          mail
platforms           any
maintainers         nomaintainer
license             GPL-2+

description         Postfix Configuration Summary Reporter
long_description    ${description}

homepage            http://ftp.wl0.org/postfinger
master_sites        http://ftp.wl0.org/postfinger/

supported_archs     noarch

extract.suffix

# Fix the bad README file on the dist mirrors.
dist_subdir         ${name}/${version}

distfiles           ${name}-${version} \
                    README
checksums           ${name}-${version} \
                    rmd160  62f8e8ce2888bf3d9e615072e9f25284d3f4155e \
                    sha256  2c993b87ca3063eb4b81f7f652d6292a72d777be500bda214d54ce485aee2fd0 \
                    README \
                    rmd160  7f08ecd13c073d81ca11ef097370fbdd361adb3d \
                    sha256  1e842f569b1d7878adc6bb38a1f5e80d8d3d25de051b820527f7f9fb9a8a4d95

extract.mkdir       yes
extract {
    file copy ${distpath}/[lindex ${distfiles} 0] ${worksrcpath}/${name}
    file copy ${distpath}/[lindex ${distfiles} 1] ${worksrcpath}/
}
use_configure       no
build               {}
destroot {
    xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
    xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}/
}

livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     ${name}-(\[0-9.\]+)
