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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name igtf-ca-bundle |
---|
7 | version 1.57 |
---|
8 | categories security net |
---|
9 | platforms darwin |
---|
10 | supported_archs noarch |
---|
11 | maintainers nikhef.nl:dennisvd petr openmaintainer |
---|
12 | |
---|
13 | license {CCBY-3 Permissive} MPL-1.1+ |
---|
14 | |
---|
15 | description The IGTF trusted certificates and metadata |
---|
16 | |
---|
17 | long_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 | |
---|
24 | homepage http://www.igtf.net |
---|
25 | |
---|
26 | master_sites http://dist.eugridpma.info/distribution/igtf/${version} \ |
---|
27 | http://www.apgridpma.org/distribution/igtf/${version} |
---|
28 | |
---|
29 | distname igtf-policy-installation-bundle-${version} |
---|
30 | |
---|
31 | checksums rmd160 aec29316f66b3c2c35fcc391d79ca7322df2bb3e \ |
---|
32 | sha256 6d29e1e893d420d7d42de1faa43ed6cdba98a8693e7d576cf17b9b920a4c8c7f |
---|
33 | |
---|
34 | livecheck.type regex |
---|
35 | livecheck.url http://dist.eugridpma.info/distribution/igtf |
---|
36 | livecheck.regex ">(\\d+\\.\\d{2})/<" |
---|
37 | |
---|
38 | depends_run port:fetch-crl |
---|
39 | |
---|
40 | # target directory for certificates |
---|
41 | set certdir ${prefix}/etc/grid-security/certificates |
---|
42 | |
---|
43 | configure.args-append \ |
---|
44 | --prefix=${destroot}${certdir} \ |
---|
45 | --with-profile=classic \ |
---|
46 | --with-profile=slcs \ |
---|
47 | --with-profile=mics |
---|
48 | |
---|
49 | build {} |
---|
50 | |
---|
51 | post-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 -W ${portpath}/files \ |
---|
63 | LICENSE-CC-BY-3_0 \ |
---|
64 | LICENSE-MPL-1_1 \ |
---|
65 | ${dest_doc} |
---|
66 | } |
---|
67 | |
---|
68 | post-activate { |
---|
69 | ui_msg "Fetching CRLs ..." |
---|
70 | system "${prefix}/sbin/fetch-crl -v" |
---|
71 | } |
---|
72 | post-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 | } |
---|