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

gitlab.setup        gsasl libntlm 1.8 v
revision            0

categories          net security devel
license             LGPL-2.1+
maintainers         {sethm.id.au:dev @McDaMastR} \
                    openmaintainer

description         Implement Microsoft's NTLM authentication
long_description    NTLM employs a challenge-response mechanism for     \
                    authentication, in which clients are able to prove  \
                    their identities without sending a password to the  \
                    server. It consists of three messages, commonly     \
                    referred to as Type 1 (negotiation), Type 2         \
                    (challenge) and Type 3 (authentication).

checksums           rmd160  b850a059441b212301a3f3db13e46fb951f3a95f \
                    sha256  0880e4bd738cd18a480fdf9fe3864679fca5f5e62af35a999b1912c52ff2df80 \
                    size    47814

use_autoreconf      yes
autoreconf.cmd      ./bootstrap
autoreconf.args

configure.args-append \
                    --enable-shared \
                    --disable-silent-rules \
                    --enable-static \
                    --disable-valgrind-tests

test.run            yes
test.target         check

depends_build-append \
                    port:autoconf \
                    port:automake \
                    port:coreutils \
                    port:gettext \
                    bin:git:git \
                    port:libtool

post-destroot {
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -W ${worksrcpath} -m 0644 \
        AUTHORS \
        COPYING \
        NEWS \
        README \
        THANKS \
        ${destroot}${prefix}/share/doc/${name}
}
