Ignore:
Timestamp:
Jul 30, 2009, 4:21:38 PM (10 years ago)
Author:
snc@…
Message:

check for SSL variants on MacPorts curl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/security/shibboleth/Portfile

    r54626 r54635  
    2525                    port:log4shib
    2626
     27pre-fetch {
     28    set status 0
     29    if {[catch {exec ${prefix}/bin/curl --version | grep SSL} results]} {
     30        if {[lindex $::errorCode 0] eq "CHILDSTATUS"} {
     31            set status [lindex $::errorCode 2]
     32        } else {
     33            set status [lindex $::errorCode 3]
     34        }
     35    }
     36    if {${status} != 0} {
     37        return -code error "\n
     38    ${name} requires curl to be installed with SSL support.
     39    Please deactivate your current curl installation and
     40    install the proper version of curl:
     41        sudo port deactivate curl
     42        sudo port install curl +ssl\n"
     43    }
     44}
    2745master_sites        http://shibboleth.internet2.edu/downloads/shibboleth/cppsp/${version}/
    2846distname            ${name}-sp-${version}
Note: See TracChangeset for help on using the changeset viewer.