source: trunk/dports/security/shibboleth/Portfile @ 74359

Last change on this file since 74359 was 74359, checked in by snc@…, 9 years ago

shibboleth: update to 2.4

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 KB
Line 
1# -*- 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
2# $Id: Portfile 74359 2010-12-14 03:12:45Z snc@macports.org $
3
4PortSystem          1.0
5
6name                shibboleth
7version             2.4
8categories          security www shibboleth
9license             Apache
10maintainers         snc scantor
11description         Shibboleth Native Service Provider
12long_description    The Shibboleth System is a standards based, open source \
13                    software package for web single sign-on across or within \
14                    organizational boundaries. It allows sites to make \
15                    informed authorization decisions for individual access of \
16                    protected online resources in a privacy-preserving manner.
17
18homepage            http://shibboleth.internet2.edu/
19
20platforms           darwin
21depends_lib         port:opensaml \
22                    port:xmltooling \
23                    port:xercesc3 \
24                    port:xml-security-c \
25                    port:log4shib
26
27pre-fetch {
28    set status 0
29    if {[catch {exec ${prefix}/bin/curl --version | grep SSL} results]} {
30        if {[lindex $::errorCode 0] eq "CHILDSTATUS"} {
31            set status [lindex $::errorCode 2]
32        } else {
33            set status [lindex $::errorCode 3]
34        }
35    }
36    if {${status} != 0} {
37        return -code error "\n
38    ${name} requires curl to be installed with SSL support.
39    Please deactivate your current curl installation and
40    install the proper version of curl:
41        sudo port deactivate curl
42        sudo port install curl +ssl\n"
43    }
44}
45master_sites        http://shibboleth.internet2.edu/downloads/${name}/cppsp/${version}/
46distname            ${name}-sp-${version}
47worksrcdir          ${name}-${version}
48checksums           sha1    d7c1f5c8b2c8bf1fbe214c58ed7b98f0fe10f257 \
49                    rmd160  84e271da461a85027e0c8b8440340f3dd3758466
50
51configure.args      --with-xmltooling=${prefix} \
52                    --with-opensaml=${prefix} \
53                    --with-xerces=${prefix} \
54                    --with-xmlsec=${prefix}
55
56variant odbc description {enable odbc support} {
57        depends_lib-append port:unixODBC
58        configure.args-append --enable-odbc
59}
60
61destroot.keepdirs ${destroot}${prefix}/var/log/${name} ${destroot}${prefix}/var/log/httpd ${destroot}${prefix}/var/run/${name}
62
63destroot.args   NOKEYGEN=1
64
65post-destroot {
66        eval file delete [glob ${destroot}${prefix}/etc/${name}/*.logger]
67        eval file delete [glob ${destroot}${prefix}/etc/${name}/*.html]
68        eval file delete [glob ${destroot}${prefix}/etc/${name}/*.xml]
69        eval file delete [glob ${destroot}${prefix}/etc/${name}/shibd-*]
70        eval file delete [glob ${destroot}${prefix}/lib/${name}/*.la]
71}
72
73post-activate {
74    # Make sure initial conf files are present and set up correctly
75    set confDir ${prefix}/etc/${name}
76    foreach f [glob -tails -directory ${confDir} *.dist] {
77        regexp {(.+)\.dist} $f ign destname
78        if {![file exists ${confDir}/${destname}]} {
79            file copy ${confDir}/${f} ${confDir}/${destname}
80        }
81    }
82    system "cd ${prefix}/etc/${name} && ./keygen.sh -b"
83}
84
85startupitem.create      yes
86startupitem.name        shibd
87startupitem.executable  ${prefix}/sbin/shibd -F -f -p ${prefix}/var/run/${name}/shibd.pid
88
89livecheck.type          regex
90livecheck.url           http://shibboleth.internet2.edu/downloads/shibboleth/cppsp/latest/
91livecheck.regex         ${name}-sp-(\\d+\\.\\d+(\\.\\d+)?)
Note: See TracBrowser for help on using the repository browser.