# -*- 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
PortGroup           github 1.0

github.setup        CyberShadow dhcptest 0.7
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball

categories          net
license             Boost-1
maintainers         nomaintainer

description         Cross-platform DHCP test client
long_description    This is a DHCP test tool. It can send DHCP discover \
                    packets, and listen for DHCP replies.

checksums           rmd160  4b3ab0bb209ed449e22ac3779346de402edb58e2 \
                    sha256  1da188de642b47a31b3516caf27f820aa0298ec2bf91c1a2c01fc06dcc8a4bc5 \
                    size    10422

depends_build       port:dmd \
                    port:druntime \
                    port:phobos

use_configure       no

build {
    system -W ${worksrcpath} "dmd dhcptest.d"
}

destroot {
    xinstall -m 755 ${worksrcpath}/dhcptest ${destroot}${prefix}/bin/dhcptest
}
