source: trunk/dports/security/shibboleth/Portfile

Last change on this file was 149734, checked in by scantor@…, 13 months ago

Update to 2.6.0

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
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 ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           active_variants 1.1
6
7name                shibboleth
8version             2.6.0
9categories          security www shibboleth
10license             Apache
11maintainers         snc scantor
12description         Shibboleth Native Service Provider
13long_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
19homepage            http://shibboleth.net/
20
21platforms           darwin
22depends_lib         port:opensaml \
23                    port:xmltooling \
24                    port:xercesc3 \
25                    port:xml-security-c \
26                    port:log4shib \
27                    port:boost
28
29master_sites        http://shibboleth.net/downloads/service-provider/${version}/
30distname            ${name}-sp-${version}
31use_bzip2           yes
32worksrcdir          ${name}-sp-${version}
33checksums           rmd160  97e0e4c8d1f1314cd3cda562a6bdc15dea66de82 \
34                    sha256  cb084f09c406257c7a8cb41464dc5d3e82803c3829e79288fc813e997f6f9b34
35
36require_active_variants curl ssl
37
38configure.args      --with-xmltooling=${prefix} \
39                    --with-saml=${prefix} \
40                    --with-boost=${prefix} \
41                    --with-xerces=${prefix} \
42                    --with-xmlsec=${prefix}
43
44variant odbc description {enable odbc support} {
45        depends_lib-append port:unixODBC
46        configure.args-append --enable-odbc
47}
48
49destroot.keepdirs ${destroot}${prefix}/var/log/${name} ${destroot}${prefix}/var/log/{name}-www ${destroot}${prefix}/var/run/${name} ${destroot}${prefix}/var/cache/${name}
50
51destroot.args   NOKEYGEN=1
52
53post-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
60post-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
72startupitem.create      yes
73startupitem.name        shibd
74startupitem.executable  ${prefix}/sbin/shibd -F -f -p ${prefix}/var/run/${name}/shibd.pid
75
76livecheck.type          regex
77livecheck.url           http://shibboleth.net/downloads/service-provider/latest/
78livecheck.regex         ${name}-sp-(\\d+\\.\\d+(\\.\\d+)?)
Note: See TracBrowser for help on using the repository browser.