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

name                vtun
version             3.0.4
categories          net security
platforms           darwin
maintainers         nomaintainer
license             {GPL-2+ OpenSSLException}

description         vtun is for creating encrypted network links

long_description    vtun is for creating encrypted network links. It is \
                    the easiest way to create virtual tunnels over TCP/IP \
                    networks with traffic shaping, compression, and \
                    encryption. Open-Source and distributed under the GPL, \
                    it supports IP, PPP, SLIP, ethernet and other tunnel \
                    types. vtun is easily and highly configurable, it can \
                    be used for various network tasks.

homepage            http://vtun.sourceforge.net/
master_sites        sourceforge:project/vtun/vtun/${version}/

checksums           rmd160  004f2fa3a583b579706a1bc8728108ce9e4bca6e \
                    sha256  abf8df6b15e3febeaaeae2ce24ead7105eb1537ad4ec0d830c83cbb684fd98b9

patchfiles          clear_nat_hack_flags.patch \
                    patch-lfd_legacy_encrypt.c.diff

depends_lib         port:zlib \
                    path:lib/libssl.dylib:openssl \
                    port:lzo

configure.args      --with-blowfish-headers=${prefix}/include/openssl \
                    --with-lzo-headers=${prefix}/include \
                    --with-lzo-lib=${prefix}/lib \
                    --mandir=${prefix}/share/man \
                    --with-ssl-headers=${prefix}/include/openssl \
                    --with-ssl-lib=${prefix}/lib

build.target        vtund

destroot.args       INSTALL_OWNER=