Bug 244164 - Mk/bsd.sites.mk: Update URL of MASTER_SITE_OSDN to one that supports geographical load balancing
Summary: Mk/bsd.sites.mk: Update URL of MASTER_SITE_OSDN to one that supports geograph...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Alexandre C. Guimarães
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-16 11:17 UTC by Yasuhiro KIMURA
Modified: 2020-02-23 06:12 UTC (History)
2 users (show)

See Also:


Attachments
Patch file (22.36 KB, patch)
2020-02-16 11:17 UTC, Yasuhiro KIMURA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yasuhiro KIMURA 2020-02-16 11:17:18 UTC
Created attachment 211690 [details]
Patch file

* Update URL of MASTER_SITE_OSDN to one that supports geographical load balancing.
* Add MASTER_SITE_OSDN_CHAMBER that is used for files downloaded from user's chamber.
* Add --user-agent option to FETCH_ARGS when either MASTER_SITE or PATCH_SITES include MASTER_SITE_OSDN or MASTER_SITE_OSDN_CHAMBER.
  From https://osdn.net/docs/FileRelease_Guide#h2-Direct.20Download

  "Currently, when a release-file URL is accessed from wget, curl, libwww-perl, PowerShell, apt, dnf, or other package management tools, downloading of the file will begin right away without having to go via html page."

  Unfortunately fetch(1) isn't included in such user agents. Therefore add --user-agent option to FETCH_ARGS so access is considered as that of ftp/curl.