Port submission for aidadoc

Joshua Root jmr at macports.org
Tue Mar 6 20:04:40 UTC 2018


On 2018-3-7 06:52 , Bernard Desgraupes wrote:
> I don’t really understand how the master-sites command works when it says
> master_sites            sourceforge:projects/aidadoc/files/${version}/
> 
> The « real » download URL is https://sourceforge.net/projects/aidadoc/files/1.4.2/aida-1.4.2-src.tar.bz2/download
> 
> I ran ‘port distcheck aidadoc’ and it shows a lot of URLs like
> http://heanet.dl.sourceforge.net/projects/aidadoc/files/1.4.2/aida-1.4.2-src.tar.bz2
> 
> but http://heanet.dl.sourceforge.net is not http://sourceforge.net so this is beyond my understanding.

The "real" URL actually redirects to one of sourceforge's mirrors based
on geolocation. You can watch this happen with curl:

% curl -IL
https://sourceforge.net/projects/aidadoc/files/1.4.2/aida-1.4.2-src.tar.bz2/download
HTTP/1.1 302 Found
Server: nginx/1.13.9
Date: Tue, 06 Mar 2018 20:00:47 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 15823
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
X-UA-Compatible: IE=edge,chrome=1
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: upgrade-insecure-requests
Set-Cookie: VISITOR=76b59e5a-2aa8-4028-8512-eef714df8635; expires="Fri,
03-Mar-2028 20:00:47 GMT"; httponly; Max-Age=315360000; Path=/
Set-cookie:
sourceforge=0ccfa617566af207bda51c71eebcf1d47ce2b2cdgAJ9cQEoVQVwcmVmc3ECfXEDVQ5fYWNjZXNzZWRfdGltZXEER0HWp7zb+P4NVQNrZXlxBVUkNzZiNTllNWEtMmFhOC00MDI4LTg1MTItZWVmNzE0ZGY4NjM1cQZVDl9jcmVhdGlvbl90aW1lcQdHQdanvNv4/glVA19pZHEIVSBmMjg1ZWRlYTdiZWU0MDdlYTE0ODk3ZjAxZTg3OTViNnEJdS4=;
expires=Tue, 19-Jan-2038 03:14:07 GMT; httponly; Path=/; secure
Location:
https://downloads.sourceforge.net/project/aidadoc/1.4.2/aida-1.4.2-src.tar.bz2?r=&ts=1520366447&use_mirror=excellmedia
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=31536000

HTTP/1.1 302 Found
Server: nginx/1.13.9
Date: Tue, 06 Mar 2018 20:00:48 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
content-disposition: attachment; filename="aida-1.4.2-src.tar.bz2"
Set-Cookie:
sf_mirror_attempt="aidadoc:excellmedia:1.4.2/aida-1.4.2-src.tar.bz2";
expires="Tue, 06-Mar-2018 20:02:48 GMT"; Max-Age=120; Path=/
Location:
https://excellmedia.dl.sourceforge.net/project/aidadoc/1.4.2/aida-1.4.2-src.tar.bz2

HTTP/1.1 200 OK
Date: Tue, 06 Mar 2018 20:00:49 GMT
Server: Apache/2.2.15 (CentOS)
Last-Modified: Tue, 04 Oct 2016 18:58:07 GMT
ETag: "317d7b-18801-53e0ea4172dc0"
Accept-Ranges: bytes
Content-Length: 100353
Connection: close
Content-Type: application/octet-stream

- Josh


More information about the macports-dev mailing list