# $Id: Portfile 86434 2011-10-25 18:55:10Z jmr@macports.org $

PortSystem 1.0
name              openvpn
version           1.6.0
revision          1
categories        net security
maintainers       touche.fr.st:julien.touche
description       easy-to-use, robust, and highly configurable VPN
long_description  OpenVPN is an easy-to-use, robust, and highly \
                  configurable VPN (Virtual Private Network) daemon \
                  which can be used to securely link two or more \
                  private networks using an encrypted tunnel over \
                  the internet.
homepage          http://openvpn.sourceforge.net/
master_sites      sourceforge
platforms         darwin openbsd
depends_lib       port:lzo port:openssl
checksums         md5 9eab3719b280a12d19ef1fda286cc363
configure.args	  --mandir=${prefix}/share/man \
		  --with-lzo-headers=${prefix}/include \
		  --with-lzo-lib=${prefix}/lib

post-destroot {
    xinstall -d ${destroot}${prefix}/share/${name}
    copy ${worksrcpath}/easy-rsa ${destroot}${prefix}/share/${name}
}

variant no_lzo {
	configure.args-append --disable-lzo
	depends_lib-delete port:lzo
}
