4 version @PACKAGE_VERSION@
5 categories security www shibboleth
6 maintainers scantor snc
7 description Shibboleth Native Service Provider
8 long_description Standards-based attribute-based Web SSO system
9 homepage http://shibboleth.internet2.edu/
10 master_sites http://shibboleth.internet2.edu/downloads/${name}/cppsp/${version}/
11 distname ${name}-sp-${version}
12 worksrcdir ${name}-${version}
13 checksums sha1 @CHECKSUM@
15 depends_lib port:opensaml \
23 if {[catch {exec ${prefix}/bin/curl --version | grep SSL} results]} {
24 if {[lindex $::errorCode 0] eq "CHILDSTATUS"} {
25 set status [lindex $::errorCode 2]
27 set status [lindex $::errorCode 3]
31 return -code error "\n
32 ${name} requires curl to be installed with SSL support.
33 Please deactivate your current curl installation and
34 install the proper version of curl:
35 sudo port deactivate curl
36 sudo port install curl +ssl\n"
40 configure.args --with-xmltooling=${prefix} \
41 --with-opensaml=${prefix} \
42 --with-xerces=${prefix} \
43 --with-xmlsec=${prefix} \
44 --with-log4shib=${prefix}
47 depends_lib-append port:unixODBC
48 configure.args-append --enable-odbc
51 destroot.keepdirs ${destroot}${prefix}/var/log/${name} ${destroot}${prefix}/var/log/httpd ${destroot}${prefix}/var/run/${name}
53 destroot.args NOKEYGEN=1
56 eval file delete [glob ${destroot}${prefix}/etc/${name}/*.logger]
57 eval file delete [glob ${destroot}${prefix}/etc/${name}/*.html]
58 eval file delete [glob ${destroot}${prefix}/etc/${name}/*.xml]
59 eval file delete [glob ${destroot}${prefix}/etc/${name}/shibd-*]
60 eval file delete [glob ${destroot}${prefix}/lib/${name}/*.la]
64 # Make sure initial conf files are present and set up correctly
65 set confDir ${prefix}/etc/${name}
66 foreach f [glob -tails -directory ${confDir} *.dist] {
67 regexp {(.+)\.dist} $f ign destname
68 if {![file exists ${confDir}/${destname}]} {
69 file copy ${confDir}/${f} ${confDir}/${destname}
72 system "cd ${prefix}/etc/${name} && ./keygen.sh -b"
75 startupitem.create yes
76 startupitem.name shibd
77 startupitem.executable ${prefix}/sbin/shibd -F -f -p ${prefix}/var/run/${name}/shibd.pid
80 livecheck.url http://shibboleth.internet2.edu/downloads/shibboleth/cppsp/latest/mac/ports/shibboleth/shibboleth/Portfile
81 livecheck.regex "version *(\\d+\\.\\d+(\\.\\d+)?)"