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

name                tinc
version             1.0.36
revision            2
categories          net security
maintainers         nomaintainer
license             {GPL-2+ OpenSSLException}

conflicts           tinc-devel

description         Virtual Private Network (VPN) Daemon

long_description    tinc is a Virtual Private Network (VPN) daemon that uses \
                    tunneling and encryption to create a secure private \
                    network between hosts on the Internet.

homepage            https://www.tinc-vpn.org/
master_sites        ${homepage}packages/

checksums           rmd160  02a6618451e3c5290d4257046a4ed9f261e725e2 \
                    sha256  40f73bb3facc480effe0e771442a706ff0488edea7a5f2505d4ccb2aa8163108 \
                    size    500320

depends_lib         port:zlib \
                    port:lzo2

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS \
        COPYING \
        COPYING.README \
        ChangeLog \
        NEWS \
        README \
        THANKS \
        ${docdir}
}

subport tinc-devel {
    conflicts       tinc

    version         1.1pre18
    revision        0
    checksums       rmd160  538c125f59196492a4a778dcc42fe2b3f6467da0 \
                    sha256  2757ddc62cf64b411f569db2fa85c25ec846c0db110023f6befb33691f078986 \
                    size    732111
}
