Ticket #42971: Portfile-openconnect.diff

File Portfile-openconnect.diff, 1.8 KB (added by Mathias.Laurin+macports.org@…, 11 years ago)

Correct filename!

  • ports/net/openconnect/Portfile

    diff --git a/ports/net/openconnect/Portfile b/ports/net/openconnect/Portfile
    index fc2e1cf..7f5c8ad 100644
    a b  
    44PortSystem          1.0
    55
    66name                openconnect
    7 version             4.08
     7version             5.03
    88categories          net
    99platforms           darwin
    1010maintainers         nomaintainer
    depends_lib port:libxml2 \ 
    3131master_sites        ftp://ftp.infradead.org/pub/openconnect/
    3232
    3333# md5 is needed for http master_site below
    34 checksums           md5     3dd065194d87c08084675d255c8e29ef \
    35                     rmd160  b2f3887efbd8e4e0e366bee7d37d7b9ed2448ed4 \
    36                     sha256  114eef2b5a8087f26c7871db8700a293101e9626fc94fbef54ac6daef6ce1a77
     34checksums           md5     ff43ed1dbaccd2537fd7c5bfb04295a6 \
     35                    rmd160  bd15a47299f7965ac2e7756257a1b9fadc0e0e1c \
     36                    sha256  7cccf62b9c50ff2392457b07f2a02259782cda6796fb0ce7831e308a8246a709
    3737
    3838foreach {type checksum} ${checksums} {
    3939    if {${type} == "md5"} {
    foreach {type checksum} ${checksums} { 
    4444configure.args      --disable-silent-rules \
    4545                    --with-vpnc-script=${prefix}/etc/vpnc/vpnc-script
    4646
     47# Since Openconnect 5.00, GnuTLS is the default instead of OpenSSL
     48if {![variant_isset ssl]} {
     49    default_variants +gnutls
     50}
     51
     52variant ssl conflicts gnutls description {Allow secure connections using OpenSSL} {
     53    depends_lib-append      port:openssl
     54    configure.args-replace  --without-ssl --with-ssl
     55}
     56
     57variant gnutls conflicts ssl description {Allow secure connections using GNUTLS} {
     58    depends_lib-append      port:gnutls
     59    configure.args-replace  --without-gnutls --with-gnutls
     60}
     61
    4762post-destroot {
    4863    set docdir ${destroot}${prefix}/share/doc/${name}
    4964    xinstall -d ${docdir}