# $Id: Portfile 61763 2009-12-21 03:43:24Z ryandesign@macports.org $

PortSystem          1.0

name                tinc
version             1.0.11
categories          net
maintainers         goodlook.com.au:mike
license             GPLv2
platforms           darwin

description         Virtual Private Network Tool

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     ee0b1a3366c6e379cae34be6fa5dcb15 \
                    sha1    d67578e96cf6b734a3c5bd4b32cf3e628603328a \
                    rmd160  80c543dd4faad2355e33c7daa86c0f639447f044

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}
}
