# -*- 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        NetworkBlockDevice nbd 3.27.0 nbd-
github.tarball_from releases
revision            0

categories          sysutils
license             GPL-2
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.

depends_build-append  path:bin/pkg-config:pkgconfig \
                      port:bison

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

checksums           rmd160  08a2405e42201ff4f955837238e6e0c0ce269046 \
                    sha256  4d74caa77f3be254b884ebcff149a40c78af022338b52fe16cd059c0ce4280be \
                    size    1122165

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
}
