PortSystem 1.0
name shibboleth
-version 2.2.1
-categories shibboleth
-maintainers cantor.2@osu.edu
+version @-VERSION-@
+categories security www shibboleth
+maintainers scantor snc
description Shibboleth Native Service Provider
long_description Standards-based attribute-based Web SSO system
homepage http://shibboleth.internet2.edu/
master_sites http://shibboleth.internet2.edu/downloads/shibboleth/cppsp/${version}/
distname ${name}-sp-${version}
worksrcdir ${name}-${version}
-checksums sha1 41d23d3585e36c232d6b038e965f71084b7b7daf
+checksums sha1 @CHECKSUM@
depends_lib port:opensaml \
port:xmltooling \
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"
+ }
+}
+
configure.args --with-xmltooling=${prefix} \
--with-opensaml=${prefix} \
--with-xerces=${prefix} \
startupitem.create yes
startupitem.name shibd
startupitem.executable ${prefix}/sbin/shibd -F -f -p ${prefix}/var/run/shibboleth/shibd.pid
-startupitem.pidfile clean ${prefix}/var/run/shibboleth/shibd.pid
+
+livecheck.check regex
+livecheck.url http://shibboleth.internet2.edu/downloads/shibboleth/cppsp/latest/mac/ports/shibboleth/shibboleth/Portfile
+livecheck.regex "version *(\\d+\\.\\d+(\\.\\d+)?)"