[139204] trunk/dports/net/curl/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu Aug 6 13:49:35 PDT 2015


Revision: 139204
          https://trac.macports.org/changeset/139204
Author:   ryandesign at macports.org
Date:     2015-08-06 13:49:34 -0700 (Thu, 06 Aug 2015)
Log Message:
-----------
curl-ca-bundle: update to 2f1a37cb43ac / 2015-08-04

Modified Paths:
--------------
    trunk/dports/net/curl/Portfile

Modified: trunk/dports/net/curl/Portfile
===================================================================
--- trunk/dports/net/curl/Portfile	2015-08-06 20:01:10 UTC (rev 139203)
+++ trunk/dports/net/curl/Portfile	2015-08-06 20:49:34 UTC (rev 139204)
@@ -18,13 +18,16 @@
                                 of interactivity.
 
 homepage                        http://curl.haxx.se/
-master_sites                    ${homepage}download/ \
-                                ftp://ftp.sunet.se/pub/www/utilities/curl/ \
-                                http://www.execve.net/curl/
+master_sites                    ${homepage}download/:curl \
+                                ftp://ftp.sunet.se/pub/www/utilities/curl/:curl \
+                                http://www.execve.net/curl/:curl
 
 use_bzip2                       yes
 
-checksums                       ${distfiles} \
+set curl_distfile               ${distfiles}
+distfiles                       ${curl_distfile}:curl
+
+checksums                       ${curl_distfile} \
                                 rmd160  404481695a8f79cbf9a245bfa9c06140d1cdbf11 \
                                 sha256  baa654a1122530483ccc1c58cc112fec3724a82c11c6a389f1e6a37dc8858df9
 
@@ -186,7 +189,7 @@
 }
 
 subport curl-ca-bundle {
-    revision                    0
+    revision                    1
     categories                  net
     license                     {MPL-2 LGPL-2.1+}
     supported_archs             noarch
@@ -202,12 +205,15 @@
     depends_build               path:bin/perl:perl5
 
     set certdata_file           certdata.txt
-    set certdata_version        aa275ad846f1
+    # The output of the Tcl command "clock seconds" (you can run it in tclsh) when
+    # the certdata.txt file in the port was last updated.
+    set certdata_updated        1438893540
+    set certdata_version        2f1a37cb43ac
     set certdata_distfile       certdata-${certdata_version}${extract.suffix}
     set certdata_path           security/nss/lib/ckfw/builtins/${certdata_file}
-    set curl_distfile           ${distfiles}
 
-    if {no} {
+    # Only try to fetch from the master site shortly after the port is updated, to guard against stealth updates.
+    if {[clock seconds] - ${certdata_updated} < 90000} {
         master_sites-append     http://hg.mozilla.org/mozilla-central/archive/${certdata_version}${extract.suffix}/${certdata_path}?dummy=:certdata
     } else {
         master_sites-append     macports_distfiles:certdata
@@ -216,8 +222,8 @@
     distfiles-append            ${certdata_distfile}:certdata
 
     checksums-append            ${certdata_distfile} \
-                                rmd160  f31c4981fcf494e85f5c20b9ad974bcd7a0f9ecd \
-                                sha256  becbc5a523c782610822375f81d533108a8f2957792bbebab52b36c655505231
+                                rmd160  40ed746c393c5597a8e8fbf0b3b6fa26a3ea4f78 \
+                                sha256  fc5e116913183a91c8a4cdb248f4ecd1808f9a1dac92aef2f1b6fe67cb5944e6
 
     extract.only                ${certdata_distfile}
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150806/86e162e4/attachment.html>


More information about the macports-changes mailing list