source: trunk/dports/net/vpnc/Portfile

Last change on this file was 139229, checked in by jeremyhu@…, 2 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# -*- 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
2# $Id: Portfile 139229 2015-08-08 03:10:35Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                vpnc
7version             0.5.3
8revision            1
9categories          net
10maintainers         nomaintainer
11license             GPL-2+
12
13description         client for cisco vpn concentrator
14long_description    vpnc is an open source replacement for the commercial \
15                    cisco vpnclient. It is supposed to work with the following \
16                    systems: \
17                    - Cisco VPN concentrator 3000 Series \
18                    - Cisco IOS routers \
19                    - Cisco PIX / ASA Zecurity Appliances \
20                    - Juniper/Netscreen
21
22homepage            http://www.unix-ag.uni-kl.de/~massar/vpnc/
23platforms           darwin
24master_sites        http://www.unix-ag.uni-kl.de/~massar/vpnc/
25
26checksums           sha1 321527194e937371c83b5e7c38e46fca4f109304 \
27                    rmd160 6f3926901e75dc98762f6ef45782930f2fb76a2f
28
29depends_lib         port:libgcrypt \
30                    port:libgpg-error
31depends_run         port:tuntaposx
32
33patchfiles          patch-config.c patch-sysdep.h
34post-patch { reinplace "s|__ETCDIR__|${prefix}/etc|g" ${worksrcpath}/config.c }
35
36use_configure       no
37
38variant universal {}
39
40build.args          PREFIX=${prefix} ETCDIR=${prefix}/etc/vpnc CC="${configure.cc} [get_canonical_archflags]"
41
42destroot.args       PREFIX=${prefix} ETCDIR=${prefix}/etc/vpnc
43
44variant             hybrid_cert description "Enable the support for hybrid and cert modes in vpnc" {
45    depends_lib-append path:lib/libssl.dylib:openssl
46    build.args-append  "OPENSSL_GPL_VIOLATION=-DOPENSSL_GPL_VIOLATION OPENSSLLIBS=-lcrypto"
47}
48livecheck.type  regex
49livecheck.url   ${homepage}
50livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.