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$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name fetch-crl |
---|
7 | version 3.0.13 |
---|
8 | categories security net |
---|
9 | platforms darwin |
---|
10 | supported_archs noarch |
---|
11 | license Apache-2 |
---|
12 | |
---|
13 | maintainers nikhef.nl:dennisvd bo.ingv.it:Peter.Danecek openmaintainer |
---|
14 | |
---|
15 | description Download tool for Certificate Revocation Lists |
---|
16 | |
---|
17 | long_description \ |
---|
18 | The fetch-crl utility will retrieve certificate revocation lists (CRLs) \ |
---|
19 | for a set of installed trust anchors, based on crl_url files or \ |
---|
20 | IGTF-style info files. It will install these for use with OpenSSL, NSS \ |
---|
21 | or third-party tools. |
---|
22 | |
---|
23 | homepage http://wiki.nikhef.nl/grid/FetchCRL3 |
---|
24 | |
---|
25 | master_sites http://dist.eugridpma.info/distribution/util/fetch-crl3/ |
---|
26 | |
---|
27 | checksums md5 aad7460f67f7ea4ca4809b5acdcc651c \ |
---|
28 | rmd160 1a57d2ff972f726e3a12a9c1e00d2b4f3d90ebde \ |
---|
29 | sha256 90b2f3a24e8dd88cdc36e53cfe95b5e23e3772202c16e2a7f4b559482b0cdbbe |
---|
30 | |
---|
31 | use_configure no |
---|
32 | |
---|
33 | # This is the main tool port |
---|
34 | subport ${name} { |
---|
35 | patch { |
---|
36 | reinplace "s|/etc|${prefix}/etc|g" README |
---|
37 | |
---|
38 | reinplace "s|/etc|${prefix}/etc|g" fetch-crl |
---|
39 | reinplace "s|/var|${prefix}/var|g" fetch-crl |
---|
40 | reinplace "s|/etc|${prefix}/etc|g" fetch-crl.8 |
---|
41 | reinplace "s|/etc|${prefix}/etc|g" fetch-crl.cnf |
---|
42 | # Note: `fetch-crl.cnf.example` is not patched |
---|
43 | } |
---|
44 | |
---|
45 | destroot.keepdirs ${destroot}${prefix}/var/cache/fetch-crl |
---|
46 | destroot.destdir \ |
---|
47 | PREFIX=${destroot}${prefix} \ |
---|
48 | ETC=${destroot}${prefix}/etc \ |
---|
49 | CACHE=${destroot}${prefix}/var/cache \ |
---|
50 | RELEASE=${name} |
---|
51 | |
---|
52 | pre-deactivate { |
---|
53 | ui_msg "Purging fetch-crl cache ... " |
---|
54 | foreach {filename} [ glob ${prefix}/var/cache/fetch-crl/*.state ] { |
---|
55 | delete $filename |
---|
56 | } |
---|
57 | } |
---|
58 | |
---|
59 | livecheck.type regex |
---|
60 | livecheck.url ${master_sites} |
---|
61 | livecheck.regex ">${name}-(\\d+\\.\\d+\\.\\d+)\\${extract.suffix}<" |
---|
62 | } |
---|
63 | |
---|
64 | # This subport sets up a launchd item |
---|
65 | subport ${name}-launchd { |
---|
66 | # update descriptions |
---|
67 | description Creates a launchd entry for fetch-crl utility |
---|
68 | long_description ${description}. ${long_description} |
---|
69 | |
---|
70 | depends_run port:fetch-crl |
---|
71 | |
---|
72 | distfiles {} |
---|
73 | worksrcdir ${subport} |
---|
74 | |
---|
75 | startupitem.name ${name} |
---|
76 | set plist_label org.macports.${startupitem.name} |
---|
77 | set plist_macports ${prefix}/etc/${startupitem.location} |
---|
78 | set plist_system /Library/${startupitem.location} |
---|
79 | |
---|
80 | extract.mkdir yes |
---|
81 | extract { |
---|
82 | copy ${filespath}/${startupitem.plist} ${worksrcpath}/ |
---|
83 | } |
---|
84 | |
---|
85 | configure { |
---|
86 | reinplace "s|@@LABEL@@|${plist_label}|g" \ |
---|
87 | ${worksrcpath}/${startupitem.plist} |
---|
88 | reinplace "s|@@PREFIX@@|${prefix}|g" \ |
---|
89 | ${worksrcpath}/${startupitem.plist} |
---|
90 | } |
---|
91 | |
---|
92 | build {} |
---|
93 | |
---|
94 | destroot { |
---|
95 | xinstall -d ${destroot}${plist_macports} |
---|
96 | xinstall -d ${destroot}${plist_system} |
---|
97 | xinstall -m 644 ${worksrcpath}/${startupitem.plist} \ |
---|
98 | ${destroot}${plist_macports}/ |
---|
99 | ln -s ${plist_macports}/${startupitem.plist} \ |
---|
100 | ${destroot}${plist_system}/ |
---|
101 | } |
---|
102 | |
---|
103 | post-destroot { |
---|
104 | ui_msg "###########################################################" |
---|
105 | ui_msg "# A startup item has been generated that will aid in " |
---|
106 | ui_msg "# starting fetch-crl with launchd. It is disabled " |
---|
107 | ui_msg "# by default. Execute the following command to start it, " |
---|
108 | ui_msg "# and to cause it to launch at startup: " |
---|
109 | ui_msg "# " |
---|
110 | ui_msg "# sudo port load fetch-crl " |
---|
111 | ui_msg "###########################################################" |
---|
112 | } |
---|
113 | |
---|
114 | livecheck.type none |
---|
115 | } |
---|