# $Id$

PortSystem          1.0

name                tinc
version             1.0.21
revision            2
categories          net
maintainers         bentzen.com.au:mike
license             GPL-2+
platforms           darwin

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            http://www.tinc-vpn.org/
master_sites        ${homepage}packages/

checksums           rmd160  5ba2cd3cfa971d82a474c68bf6147b9ce68d876a \
                    sha256  6ac15eab766c021629992053aa1a23f31a0c429eb0f3eb8f49c923476eea618b

depends_lib         port:tuntaposx \
                    port:zlib \
                    path:lib/libssl.dylib:openssl \
                    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.1pre7
    revision        1
    checksums       rmd160  402837edcce64e045882faef31228a1e6959f805 \
                    sha256  ff330627ad0d6ce1233408bb75b11d7506be13eb0c802ff1657866d97545074b
}