source: trunk/dports/security/igtf-ca-bundle/Portfile

Last change on this file was 148170, checked in by petr@…, 15 months ago

igtf-ca-bundle: bump version to 1.73

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 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 148170 2016-04-28 20:26:16Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                igtf-ca-bundle
7version             1.73
8categories          security net
9platforms           darwin
10supported_archs     noarch
11maintainers         petr nikhef.nl:dennisvd openmaintainer
12
13license             {CCBY-3 Permissive} MPL-1.1+
14
15description         The IGTF trusted certificates and metadata
16
17long_description    \
18    The International Grid Trust Federation (IGTF) maintains a list of trust \
19    anchors, root certificates and related meta-information for all the \
20    accredited authorities, i.e., those that meet or exceed the criteria \
21    mentioned in the Authentication Profiles accepted by the IGTF. \
22    For a list of those profiles, please refer to the website.
23
24homepage            http://www.igtf.net
25
26master_sites        http://dist.eugridpma.info/distribution/igtf/${version} \
27                    http://www.apgridpma.org/distribution/igtf/${version}
28
29distname            igtf-policy-installation-bundle-${version}
30
31checksums           rmd160  386253b0798d813e4efe57837f8198e622e7e478 \
32                    sha256  2984602337008886a2cc048ac83058574bcb8c4df62be3da8d253901e01ca583
33
34depends_run         port:fetch-crl
35
36# target directory for certificates
37set certdir ${prefix}/etc/grid-security/certificates
38
39configure.pre_args \
40    --prefix=${destroot}${certdir}
41configure.args-append \
42    --with-profile=classic \
43    --with-profile=slcs \
44    --with-profile=mics
45
46build {}
47
48post-destroot {
49    ln -s ${certdir} ${destroot}${prefix}/share/certificates
50
51    set dest_doc ${destroot}${prefix}/share/doc/${name}
52    xinstall -d ${dest_doc}
53    xinstall -m 644 -W ${worksrcpath} \
54        CHANGES \
55        LICENSE \
56        README.txt \
57            ${dest_doc}
58    # These are added to comply with MPL licensing
59    xinstall -m 644 -W ${filespath} \
60        LICENSE-CC-BY-3_0 \
61        LICENSE-MPL-1_1 \
62            ${dest_doc}
63}
64
65post-activate {
66    ui_msg "Fetching CRLs ..."   
67    catch {system "${prefix}/sbin/fetch-crl -v"}
68}
69post-deactivate {
70    ui_msg "Purging CRLs ..."
71    system "${prefix}/sbin/clean-crl -v -l ${certdir}"
72
73    # cleanup leftover directories only if empty
74    catch {file delete ${certdir}}
75    catch {file delete ${prefix}/etc/grid-security}
76}
77
78livecheck.type      regex
79livecheck.url       http://dist.eugridpma.info/distribution/igtf
80livecheck.regex     ">(\\d+\\.\\d{2})/<"
Note: See TracBrowser for help on using the repository browser.