[101450] trunk/dports/net/curl/Portfile
ryandesign at macports.org
ryandesign at macports.org
Thu Jan 10 20:23:03 PST 2013
Revision: 101450
https://trac.macports.org/changeset/101450
Author: ryandesign at macports.org
Date: 2013-01-10 20:23:03 -0800 (Thu, 10 Jan 2013)
Log Message:
-----------
curl-ca-bundle: update certdata.txt to 1.87
Modified Paths:
--------------
trunk/dports/net/curl/Portfile
Modified: trunk/dports/net/curl/Portfile
===================================================================
--- trunk/dports/net/curl/Portfile 2013-01-11 04:19:22 UTC (rev 101449)
+++ trunk/dports/net/curl/Portfile 2013-01-11 04:23:03 UTC (rev 101450)
@@ -171,6 +171,7 @@
}
subport curl-ca-bundle {
+ revision 1
categories net
license {MPL-2 LGPL-2.1+}
supported_archs noarch
@@ -185,19 +186,21 @@
depends_build path:bin/perl:perl5
set certdata_file certdata.txt
- set certdata_version 1.86
- set certdata_date 2012-10-18
+ set certdata_version 1.87
+ set certdata_date 2012-12-29
set certdata_distfile certdata-${certdata_version}.txt
set certdata_path security/nss/lib/ckfw/builtins/${certdata_file}
+ # Set this to the UTC date when an update to certdata.txt is committed.
+ set commit_date_utc 2013-01-11
+
# Avoid most of the checksum errors that inevitably occur whenever upstream
- # updates certdata.txt by only using the upstream site if it's within a few
- # days of the latest update. After that time, use only our mirrors, which
- # should have copied the file by then. The success of this strategy relies
- # on me noticing new versions within that time and updating the port, and
- # on upstream not updating the file again within that time.
- set days_since_update [expr {[expr {[clock seconds] - [clock format [clock scan ${certdata_date} -gmt yes] -format %s]}] / 86400}]
- if {${days_since_update} > 3} {
+ # updates certdata.txt by only using the upstream site on the day the latest
+ # update is committed. After that time, use only our mirrors, which should
+ # have copied the file by then. The success of this strategy relies on
+ # upstream not updating the file again on that day.
+ set days_since_commit [expr {[expr {[clock seconds] - [clock format [clock scan ${commit_date_utc} -gmt yes] -format %s]}] / 86400}]
+ if {${days_since_commit} > 0} {
master_sites-append http://distfiles.macports.org/curl/:certdata
} else {
master_sites-append http://mxr.mozilla.org/mozilla/source/${certdata_path}?raw=1&dummy=:certdata
@@ -209,8 +212,8 @@
distfiles-append ${certdata_distfile}:certdata
checksums-append ${certdata_distfile} \
- rmd160 5a08a6b50e3d50d3937063c19f783cb0e6ab0ab4 \
- sha256 8bfeafa81666dfc630e61acdb61f019070b53af44270d7ddd33b873733dff633
+ rmd160 bc21321abe4cf27418880c4ce8e6ebd329df82a1 \
+ sha256 5b28c27582f302c4bf34ddb114266e143d6d685a688357651be9c9db000d822d
post-extract {
xinstall ${distpath}/${certdata_distfile} ${worksrcpath}/${certdata_file}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130110/ebde87ca/attachment-0001.html>
More information about the macports-changes
mailing list