# $Id: Portfile 83385 2011-08-31 01:52:26Z dports@macports.org $

PortSystem 1.0

name            waitfor
version         0.5
categories      sysutils
platforms       darwin
maintainers     toby
description     waits until a url is available, a port is being listened to, etc.
long_description \
    utility that will wait until a url is available, until a \
    port is being listened to, until an amount of time has passed \
    or until a shell command succeeds.
license         GPL-2

homepage        http://www.hennessynet.com/waitfor/
master_sites    ${homepage}
checksums       md5 9c8759e26e8f5cb2345443a6523dfca3

depends_run     bin:python:python26

use_configure   no

build {}

destroot {
    xinstall -m 755 ${worksrcpath}/waitfor ${destroot}${prefix}/bin
    xinstall -m 644 ${worksrcpath}/waitfor.1 ${destroot}${prefix}/share/man/man1
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} COPYING INSTALL README waitfor.xml \
        ${destroot}${prefix}/share/doc/${name}
}

livecheck.type  regex
livecheck.url   ${homepage}
livecheck.regex ${name}-(\[0-9\]+\\.\[0-9\]+)\\.tar\\.gz
