source: trunk/dports/net/openconnect/Portfile

Last change on this file was 151932, checked in by raimue@…, 11 months ago

net/openconnect:
Maintainer update, add missing dependencies and new variants, closes #52066

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 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 151932 2016-08-24 06:31:35Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                openconnect
7version             7.07
8revision            1
9categories          net
10platforms           darwin
11maintainers         hydroxide.nl:bjorn.ketelaars openmaintainer
12license             LGPL-2.1
13
14description         OpenConnect is a client for Cisco's AnyConnect SSL VPN
15long_description    ${description}, which is supported by the ASA5500 Series, \
16                    by IOS 12.4(9)T or later on Cisco SR500, 870, 880, 1800, \
17                    2800, 3800, 7200 Series and Cisco 7301 Routers, and \
18                    probably others.
19
20homepage            http://www.infradead.org/openconnect/
21
22depends_build       port:pkgconfig
23
24depends_lib         port:gettext \
25                    port:libiconv \
26                    port:libproxy \
27                    port:libxml2 \
28                    port:lz4 \
29                    port:p11-kit \
30                    port:vpnc-scripts \
31                    port:zlib
32
33master_sites        ftp://ftp.infradead.org/pub/openconnect/
34
35# md5 is needed for http master_site below
36checksums           md5     582692c4bd8c157daadfcc89d6680cb8 \
37                    rmd160  c62e4e50a76fb6cb0797ad8b066d8bef4b738bb9 \
38                    sha256  f3ecfcd487dcd916748db38b4138c1e72c86347d6328b11dfe1d0af2821b8366
39
40foreach {type checksum} ${checksums} {
41    if {${type} == "md5"} {
42        master_sites-append http://pkgs.fedoraproject.org/lookaside/pkgs/openconnect/${distfiles}/${checksum}
43    }
44}
45
46configure.args      --disable-silent-rules \
47                    --with-vpnc-script=${prefix}/etc/vpnc-scripts/vpnc-script \
48                    --without-gnutls \
49                    --without-gssapi \
50                    --without-libpskc \
51                    --without-openssl
52
53variant ssl conflicts gnutls description {Allow secure connections using OpenSSL} {
54    depends_lib-append      path:lib/libssl.dylib:openssl
55    configure.args-replace  --without-openssl --with-openssl
56}
57
58variant gnutls conflicts ssl description {Allow secure connections using GNUTLS} {
59    depends_lib-append      port:gnutls
60    configure.args-replace  --without-gnutls --with-gnutls
61}
62
63variant kerberos description {Enable Kerberos support} {
64    depends_lib-append      port:kerberos5
65    configure.args-replace  --without-gssapi --with-gssapi
66}
67
68variant libpskc description {Allow RFC6030 PSKC file storage of HOTP/TOTP keys} {
69    depends_lib-append      port:oath-toolkit
70    configure.args-replace  --without-libpskc --with-libpskc
71}
72
73# Since Openconnect 5.00, GnuTLS is the default instead of OpenSSL
74if {![variant_isset ssl]} {
75    default_variants +gnutls
76}
77
78post-destroot {
79    set docdir ${destroot}${prefix}/share/doc/${name}
80    xinstall -d ${docdir}
81    xinstall -m 644 -W ${worksrcpath} \
82        AUTHORS \
83        COPYING.LGPL \
84        TODO \
85        ${docdir}
86}
87
88livecheck.url       ${homepage}download.html
89livecheck.regex     OpenConnect v(\[0-9.\]+)
Note: See TracBrowser for help on using the repository browser.