# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 # $Id: Portfile 55226 2009-08-07 19:50:29Z scantor@macports.org $ PortSystem 1.0 name shibboleth version 2.2 revision 1 categories security www shibboleth maintainers snc scantor description Shibboleth Native Service Provider long_description The Shibboleth System is a standards based, open source \ software package for web single sign-on across or within \ organizational boundaries. It allows sites to make \ informed authorization decisions for individual access of \ protected online resources in a privacy-preserving manner. homepage http://shibboleth.internet2.edu/ platforms darwin depends_lib port:opensaml \ port:xmltooling \ port:xercesc3 \ 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} checksums sha1 41d23d3585e36c232d6b038e965f71084b7b7daf configure.args --with-xmltooling=${prefix} \ --with-opensaml=${prefix} \ --with-xerces=${prefix} \ --with-xmlsec=${prefix} variant odbc description {enable odbc support} { depends_lib-append port:unixODBC configure.args-append --enable-odbc } destroot.keepdirs ${destroot}${prefix}/var/log/shibboleth ${destroot}${prefix}/var/log/httpd ${destroot}${prefix}/var/run/shibboleth destroot.args NOKEYGEN=1 post-destroot { eval file delete [glob ${destroot}${prefix}/etc/shibboleth/*.logger] eval file delete [glob ${destroot}${prefix}/etc/shibboleth/*.html] eval file delete [glob ${destroot}${prefix}/etc/shibboleth/*.xml] file delete ${destroot}${prefix}/etc/shibboleth/shibd-debian file delete ${destroot}${prefix}/etc/shibboleth/shibd-redhat file delete ${destroot}${prefix}/etc/shibboleth/shibd-osx.plist eval file delete [glob ${destroot}${prefix}/lib/shibboleth/*.la] } 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+)?)"