Ticket #41532: Portfile.3

File Portfile.3, 2.5 KB (added by petrrr, 10 years ago)

updated Portfile

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 121370 2014-06-24 08:41:07Z petr@macports.org $
3
4PortSystem          1.0
5
6name                igtf-ca-bundle
7version             1.57
8categories          security net
9platforms           darwin
10supported_archs     noarch
11maintainers         nikhef.nl:dennisvd petr 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  aec29316f66b3c2c35fcc391d79ca7322df2bb3e \
32                    sha256  6d29e1e893d420d7d42de1faa43ed6cdba98a8693e7d576cf17b9b920a4c8c7f
33
34livecheck.type      regex
35livecheck.url       http://dist.eugridpma.info/distribution/igtf
36livecheck.regex     ">(\\d+\\.\\d{2})/<"
37
38depends_run          port:fetch-crl
39
40# target directory for certificates
41set certdir ${prefix}/etc/grid-security/certificates
42
43configure.args-append \
44        --prefix=${destroot}${certdir} \
45        --with-profile=classic \
46        --with-profile=slcs \
47        --with-profile=mics
48
49build {}
50
51post-destroot {
52    ln -s ${certdir} ${destroot}${prefix}/share/certificates
53
54    set dest_doc ${destroot}${prefix}/share/doc
55    xinstall -d ${dest_doc}
56    xinstall -m 644 -W ${worksrcpath} \
57        CHANGES \
58        LICENSE \
59        README.txt \
60            ${dest_doc}
61    # These are added to comply with MPL licensing
62    xinstall -m 644 -${portpath}/files \
63        LICENSE-CC-BY-3_0 \
64        LICENSE-MPL-1_1 \
65            ${dest_doc}
66}
67
68post-activate {
69    ui_msg "Fetching CRLs ..."   
70    system "${prefix}/sbin/fetch-crl -v"
71}
72post-deactivate {
73    ui_msg "Purging CRLs ..."
74    system "${prefix}/sbin/clean-crl -v -l ${certdir}"
75
76    # cleanup leftover directories
77    catch {file delete ${certdir}}
78    catch {file delete ${prefix}/etc/grid-security}
79}