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

Last change on this file since 121410 was 121410, checked in by petr@…, 5 years ago

igtf-ca-bundle @1.57_2: minor corrections

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