1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: Portfile 149734 2016-06-29 19:45:07Z scantor@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup active_variants 1.1 |
---|
6 | |
---|
7 | name shibboleth |
---|
8 | version 2.6.0 |
---|
9 | categories security www shibboleth |
---|
10 | license Apache |
---|
11 | maintainers snc scantor |
---|
12 | description Shibboleth Native Service Provider |
---|
13 | long_description The Shibboleth System is a standards based, open source \ |
---|
14 | software package for web single sign-on across or within \ |
---|
15 | organizational boundaries. It allows sites to make \ |
---|
16 | informed authorization decisions for individual access of \ |
---|
17 | protected online resources in a privacy-preserving manner. |
---|
18 | |
---|
19 | homepage http://shibboleth.net/ |
---|
20 | |
---|
21 | platforms darwin |
---|
22 | depends_lib port:opensaml \ |
---|
23 | port:xmltooling \ |
---|
24 | port:xercesc3 \ |
---|
25 | port:xml-security-c \ |
---|
26 | port:log4shib \ |
---|
27 | port:boost |
---|
28 | |
---|
29 | master_sites http://shibboleth.net/downloads/service-provider/${version}/ |
---|
30 | distname ${name}-sp-${version} |
---|
31 | use_bzip2 yes |
---|
32 | worksrcdir ${name}-sp-${version} |
---|
33 | checksums rmd160 97e0e4c8d1f1314cd3cda562a6bdc15dea66de82 \ |
---|
34 | sha256 cb084f09c406257c7a8cb41464dc5d3e82803c3829e79288fc813e997f6f9b34 |
---|
35 | |
---|
36 | require_active_variants curl ssl |
---|
37 | |
---|
38 | configure.args --with-xmltooling=${prefix} \ |
---|
39 | --with-saml=${prefix} \ |
---|
40 | --with-boost=${prefix} \ |
---|
41 | --with-xerces=${prefix} \ |
---|
42 | --with-xmlsec=${prefix} |
---|
43 | |
---|
44 | variant odbc description {enable odbc support} { |
---|
45 | depends_lib-append port:unixODBC |
---|
46 | configure.args-append --enable-odbc |
---|
47 | } |
---|
48 | |
---|
49 | destroot.keepdirs ${destroot}${prefix}/var/log/${name} ${destroot}${prefix}/var/log/{name}-www ${destroot}${prefix}/var/run/${name} ${destroot}${prefix}/var/cache/${name} |
---|
50 | |
---|
51 | destroot.args NOKEYGEN=1 |
---|
52 | |
---|
53 | post-destroot { |
---|
54 | eval file delete [glob ${destroot}${prefix}/etc/${name}/*.logger] |
---|
55 | eval file delete [glob ${destroot}${prefix}/etc/${name}/*.html] |
---|
56 | eval file delete [glob ${destroot}${prefix}/etc/${name}/*.xml] |
---|
57 | eval file delete [glob ${destroot}${prefix}/etc/${name}/shibd-*] |
---|
58 | } |
---|
59 | |
---|
60 | post-activate { |
---|
61 | # Make sure initial conf files are present and set up correctly |
---|
62 | set confDir ${prefix}/etc/${name} |
---|
63 | foreach f [glob -tails -directory ${confDir} *.dist] { |
---|
64 | regexp {(.+)\.dist} $f ign destname |
---|
65 | if {![file exists ${confDir}/${destname}]} { |
---|
66 | file copy ${confDir}/${f} ${confDir}/${destname} |
---|
67 | } |
---|
68 | } |
---|
69 | system -W ${prefix}/etc/${name} "./keygen.sh -b" |
---|
70 | } |
---|
71 | |
---|
72 | startupitem.create yes |
---|
73 | startupitem.name shibd |
---|
74 | startupitem.executable ${prefix}/sbin/shibd -F -f -p ${prefix}/var/run/${name}/shibd.pid |
---|
75 | |
---|
76 | livecheck.type regex |
---|
77 | livecheck.url http://shibboleth.net/downloads/service-provider/latest/ |
---|
78 | livecheck.regex ${name}-sp-(\\d+\\.\\d+(\\.\\d+)?) |
---|