# -*- 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
description client for cisco vpn concentrator
long_description vpnc is an open source replacement for the commercial \
cisco vpnclient. It is supposed to work with the following \
- Cisco VPN concentrator 3000 Series \
- Cisco PIX / ASA Zecurity Appliances \
homepage http://www.unix-ag.uni-kl.de/~massar/vpnc/
master_sites http://www.unix-ag.uni-kl.de/~massar/vpnc/
checksums sha1 321527194e937371c83b5e7c38e46fca4f109304 \
rmd160 6f3926901e75dc98762f6ef45782930f2fb76a2f
depends_lib port:libgcrypt \
depends_run port:tuntaposx
patchfiles patch-config.c patch-sysdep.h
post-patch { reinplace "s|__ETCDIR__|${prefix}/etc|g" ${worksrcpath}/config.c }
build.args PREFIX=${prefix} ETCDIR=${prefix}/etc/vpnc CC="${configure.cc} [get_canonical_archflags]"
destroot.args PREFIX=${prefix} ETCDIR=${prefix}/etc/vpnc
variant hybrid_cert description "Enable the support for hybrid and cert modes in vpnc" {
depends_lib-append path:lib/libssl.dylib:openssl
build.args-append "OPENSSL_GPL_VIOLATION=-DOPENSSL_GPL_VIOLATION OPENSSLLIBS=-lcrypto"
livecheck.url ${homepage}
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"