Commits
Ryan Schmidt authored d0778beac00
199 199 | } |
200 200 | |
201 201 | livecheck.type regex |
202 202 | livecheck.url [join [lrange [split [lindex ${master_sites} 0] {:}] 0 end-1] {:}] |
203 203 | livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix} |
204 204 | } else { |
205 205 | livecheck.type none |
206 206 | } |
207 207 | |
208 208 | subport curl-ca-bundle { |
209 - | revision 1 |
209 + | revision 2 |
210 210 | categories net |
211 211 | license {MPL-2 LGPL-2.1+} |
212 212 | supported_archs noarch |
213 213 | installs_libs no |
214 214 | conflicts certsync |
215 215 | |
216 216 | description CA certificate bundle for curl |
217 217 | |
218 218 | long_description Installs a bundle of certification authority certificates \ |
219 219 | (CA certs) which curl (when linked with OpenSSL) uses to \ |
220 220 | verify the authenticity of secure web and FTP servers. |
221 221 | |
222 222 | depends_extract-append bin:unzip:unzip |
223 223 | |
224 224 | depends_build path:bin/perl:perl5 |
225 225 | |
226 226 | # The approximate time (in seconds since the epoch) when the port maintainer |
227 227 | # updated the certdata.txt file in this port. (The output of "date +%s".) |
228 - | set certdata_updated 1574190310 |
228 + | set certdata_updated 1575014585 |
229 229 | # The upstream commit in which certdata.txt was last updated. |
230 - | set certdata_commit 98e9a37281b04dd410b4c41f63ec33a3b35a6172 |
230 + | set certdata_commit dc8776ff47594e025f7cd07a5d7eefb00cbc9770 |
231 231 | # The date (in YYYYMMDD format) that commit was pushed. |
232 - | set certdata_date 20191017 |
232 + | set certdata_date 20191127 |
233 233 | set certdata_file certdata.txt |
234 234 | # Using tar.bz2 would be preferable because it's smaller but upstream has |
235 235 | # disabled the creation of all but zip archives: |
236 236 | # https://bugzilla.mozilla.org/show_bug.cgi?id=1596135 |
237 237 | set certdata_extract_suffix .zip |
238 238 | set certdata_distfile certdata-${certdata_date}-${certdata_commit}${certdata_extract_suffix} |
239 239 | set certdata_path security/nss/lib/ckfw/builtins/${certdata_file} |
240 240 | |
241 241 | # Only try to fetch from upstream shortly after the port is updated, |
242 242 | # to reduce load on their server: |
243 243 | # https://bugzilla.mozilla.org/show_bug.cgi?id=1596135 |
244 244 | if {[clock seconds] - ${certdata_updated} < 86400} { |
245 245 | master_sites-append https://hg.mozilla.org/mozilla-central/archive/${certdata_commit}${certdata_extract_suffix}/${certdata_path}?dummy=:certdata |
246 246 | } else { |
247 247 | master_sites-append macports_distfiles::certdata |
248 248 | } |
249 249 | |
250 250 | distfiles-append ${certdata_distfile}:certdata |
251 251 | |
252 252 | checksums-append ${certdata_distfile} \ |
253 - | rmd160 ce836d9f5be9a320f2ac5baa5e97e818fc4a83b0 \ |
254 - | sha256 8711d4d81de6568b2aa984b23af73aaebcaa4ae3c8fa309f48681f4814764069 \ |
255 - | size 255408 |
253 + | rmd160 560120de8901f051ba92ec0444b267602f6ef1ba \ |
254 + | sha256 e01615571ad502435b438971226dc45336bee01644186a2cc9ecab5bc24d1f0f \ |
255 + | size 257920 |
256 256 | |
257 257 | extract.only ${curl_distfile} |
258 258 | extract.post_args-append ${worksrcdir}/Makefile \ |
259 259 | ${worksrcdir}/lib/mk-ca-bundle.pl |
260 260 | |
261 261 | post-extract { |
262 262 | system -W ${workpath} "unzip -q -a '${distpath}/${certdata_distfile}'" |
263 263 | move ${workpath}/mozilla-central-${certdata_commit}/${certdata_path} ${worksrcpath}/${certdata_file} |
264 264 | } |
265 265 | |