Lines 891-903
Link Here
|
891 |
https://mirror.aarnet.edu.au/pub/OpenBSD/%SUBDIR%/ |
891 |
https://mirror.aarnet.edu.au/pub/OpenBSD/%SUBDIR%/ |
892 |
.endif |
892 |
.endif |
893 |
|
893 |
|
|
|
894 |
# Reference: https://osdn.net/docs/FileRelease_Guide#h2-Release.20File.20URL.20Formats |
894 |
.if !defined(IGNORE_MASTER_SITE_OSDN) |
895 |
.if !defined(IGNORE_MASTER_SITE_OSDN) |
895 |
.for mirror in aarnet acc c3sl cznic gigenet iij jaist nchc onet osdn pumath rwthaachen ymu |
|
|
896 |
MASTER_SITE_OSDN+= \ |
896 |
MASTER_SITE_OSDN+= \ |
897 |
http://${mirror}.dl.osdn.jp/%SUBDIR%/ |
897 |
https://osdn.net/dl/%SUBDIR%/ |
898 |
.endfor |
|
|
899 |
.endif |
898 |
.endif |
900 |
|
899 |
|
|
|
900 |
.if !defined(IGNORE_MASTER_SITE_OSDN_CHAMBER) |
901 |
MASTER_SITE_OSDN_CHAMBER+= \ |
902 |
https://osdn.net/downloads/users/%SUBDIR%/ |
903 |
.endif |
904 |
|
905 |
# From https://osdn.net/docs/FileRelease_Guide#h2-Direct.20Download |
906 |
# "Currently, when a release-file URL is accessed from wget, curl, |
907 |
# libwww-perl, PowerShell, apt, dnf, or other package management |
908 |
# tools, downloading of the file will begin right away without |
909 |
# having to go via html page." |
910 |
# Unfortunately fetch(1) isn't included in such user agents. Therefore |
911 |
# add --user-agent option to FETCH_ARGS so access is considered as |
912 |
# that of ftp/curl. |
913 |
.if !empty(MASTER_SITES:M*OSDN*) || !empty(PATCH_SITES:M*OSDN*) |
914 |
FETCH_ARGS+= --user-agent=curl/7.68.0 |
915 |
.endif |
916 |
|
901 |
.if !defined(IGNORE_MASTER_SITE_OSSP) |
917 |
.if !defined(IGNORE_MASTER_SITE_OSSP) |
902 |
MASTER_SITE_OSSP+= \ |
918 |
MASTER_SITE_OSSP+= \ |
903 |
ftp://ftp.ossp.org/pkg/%SUBDIR%/ \ |
919 |
ftp://ftp.ossp.org/pkg/%SUBDIR%/ \ |