# $Id: Portfile 91221 2012-03-26 07:10:19Z ryandesign@macports.org $

PortSystem          1.0

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

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           md5     9352d53e892df4127e839f54a0e8af2a \
                    sha1    e5ab3e880ced785b6774b9851b48e73604cf3627 \
                    rmd160  3ef30cd81bd72600ad1803c07c571e33f4cfed31

depends_lib         port:tuntaposx \
                    port:zlib \
                    port: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}
}
