[54635] trunk/dports/security/shibboleth/Portfile
snc at macports.org
snc at macports.org
Thu Jul 30 09:21:43 PDT 2009
Revision: 54635
http://trac.macports.org/changeset/54635
Author: snc at macports.org
Date: 2009-07-30 09:21:38 -0700 (Thu, 30 Jul 2009)
Log Message:
-----------
check for SSL variants on MacPorts curl
Modified Paths:
--------------
trunk/dports/security/shibboleth/Portfile
Modified: trunk/dports/security/shibboleth/Portfile
===================================================================
--- trunk/dports/security/shibboleth/Portfile 2009-07-30 15:53:24 UTC (rev 54634)
+++ trunk/dports/security/shibboleth/Portfile 2009-07-30 16:21:38 UTC (rev 54635)
@@ -24,6 +24,24 @@
port:xml-security-c \
port:log4shib
+pre-fetch {
+ set status 0
+ if {[catch {exec ${prefix}/bin/curl --version | grep SSL} results]} {
+ if {[lindex $::errorCode 0] eq "CHILDSTATUS"} {
+ set status [lindex $::errorCode 2]
+ } else {
+ set status [lindex $::errorCode 3]
+ }
+ }
+ if {${status} != 0} {
+ return -code error "\n
+ ${name} requires curl to be installed with SSL support.
+ Please deactivate your current curl installation and
+ install the proper version of curl:
+ sudo port deactivate curl
+ sudo port install curl +ssl\n"
+ }
+}
master_sites http://shibboleth.internet2.edu/downloads/shibboleth/cppsp/${version}/
distname ${name}-sp-${version}
worksrcdir ${name}-${version}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090730/f34f896e/attachment.html>
More information about the macports-changes
mailing list