# -*- 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                nbd
version             3.20
categories          sysutils
license             GPL-2
platforms           darwin
maintainers         {mit.edu:quentin @quentinmit} \
                    openmaintainer
description         Network Block Device server
long_description    Network Block Device server. Only the server is available. \
                    The NBD client does not support Darwin.
homepage            https://nbd.sourceforge.io/
master_sites        sourceforge
use_xz              yes

depends_build-append  port:pkgconfig

depends_lib-append  path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    path:lib/pkgconfig/gnutls.pc:gnutls

checksums           rmd160  49a4abd8cb2fc3cc5ddc01a0e85c272add7f34f2 \
                    sha256  e0e1b3538ab7ae5accf56180afd1a9887d415b98d21223b8ad42592b4af7d6cd \
                    size    535136

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

post-destroot {
    # The configure script automatically detects that it can't build nbd-client,
    # but it still installs the manpage.
    delete ${destroot}${prefix}/share/man/man8/nbd-client.8
}
