Ticket #42971: Portfile-openconnect.2.diff

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

diff 6.0 against 4.08 (in the tree)

  • ports/net/openconnect/Portfile

    diff --git a/ports/net/openconnect/Portfile b/ports/net/openconnect/Portfile
    index fc2e1cf..1da83be 100644
    a b  
    44PortSystem          1.0
    55
    66name                openconnect
    7 version             4.08
     7version             6.00
    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     7e28e23c6e281be31446e6c365f5d273 \
     35                    rmd160  94e35383a771a2c1387702b594e8fd023a0c23ff \
     36                    sha256  8a0c684dccac2447d204d544f6f466e41b21bce71e033ba58e2cb17b795ab81c
    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}