summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'python/templates/pages/downloads/mirrors/index.html')
-rw-r--r--python/templates/pages/downloads/mirrors/index.html98
1 files changed, 98 insertions, 0 deletions
diff --git a/python/templates/pages/downloads/mirrors/index.html b/python/templates/pages/downloads/mirrors/index.html
new file mode 100644
index 0000000..d042aed
--- /dev/null
+++ b/python/templates/pages/downloads/mirrors/index.html
@@ -0,0 +1,98 @@
+---
+title: 'Gentoo Source Mirrors'
+navtitle: 'Mirrors'
+nav1: downloads
+nav2: mirrors
+nav2-show: true
+---
+
+<p>
+ Gentoo downloads can be retrieved from many mirrors around the globe.
+ Selecting a mirror that is geographically near you may help speed up downloads.
+</p>
+
+<div class="alert alert-info">
+ <strong>Using Source Mirrors</strong>
+ <br>
+ The mirrors listed <strong>on this page</strong> contain installation files such as <strong>LiveCDs, Portage tree snapshots</strong>
+ as well as <strong>distfiles</strong> (the actual program code for our packages).
+ <br>
+ To use a source mirror for Portage downloads, add a URL from the list below to your <code>GENTOO_MIRRORS</code> variable in <tt>make.conf</tt>.
+ <a href="https://wiki.gentoo.org/wiki/GENTOO_MIRRORS" class="alert-link">More information</a> is available in our Wiki.
+</div>
+
+<div class="alert alert-success">
+ <strong>rsync Mirrors</strong>
+ <br>
+ We also have a second type of mirrors that you use for updating your Portage tree (configured via <tt>repos.conf</tt>).
+ They are available on a <a href="/support/rsync-mirrors/" class="alert-link">separate page</a>.
+</div>
+
+<p>
+ We would like to thank the many organizations and individuals that are providing mirroring services to the Gentoo project. If you would like to contribute a mirror, please consult the <a href="https://wiki.gentoo.org/wiki/Project:Infrastructure/Mirrors/Source">relevant documentation</a>.
+</p>
+
+<hr>
+
+<h2>Countries covered by Gentoo Source Mirrors</h2>
+
+<table class="table table-condensed table-striped">
+ <tr>
+ <th>Region</th>
+ <th>Countries</th>
+ </tr>
+{% for region in site.data.mirrors.distfiles %}
+ <tr>
+ <th>{{ region[0] }}</th>
+ <td>
+ {% for country in region[1] %}
+ <a href="#{{ country[0] }}">{{ country[0] }}</a>
+ {% endfor %}
+ </td>
+ </tr>
+{% endfor %}
+</table>
+
+<hr>
+
+{% for region in site.data.mirrors.distfiles %}
+ <h2>{{ region[0] }}</h2>
+
+ {% for country in region[1] %}
+ <h3 id="{{ country[0] }}">{{ country[0] }} &ndash; {{ country[1].name }}</h3>
+
+ <table class="table table-condensed">
+ <tr>
+ <th style="width: 30%;">Name</th>
+ <th style="width: 10%;">Protocol</th>
+ <th style="width: 10%;">IPv4/v6</th>
+ <th style="width: 50%;">URL</th>
+ </tr>
+ {% for mirror in country[1].mirrors %}
+ <tr>
+ <td rowspan="{{ mirror.uris.size }}">{{ mirror.name }}</td>
+ {% for uri in mirror.uris %}
+ <td>
+ <span class="label label-primary">{{ uri.protocol }}</span>
+ </td>
+ <td>
+ {% if uri.ipv4 == 'y' and uri.ipv6 == 'y' %}
+ <span class="label label-success">IPv4 + IPv6</span>
+ {% elsif uri.ipv4 == 'y' %}
+ <span class="label label-info">IPv4 only</span>
+ {% elsif uri.ipv6 == 'y' %}
+ <span class="label label-danger">IPv6 only</span>
+ {% else %}
+ ?
+ {% endif %}
+ </td>
+ <td>
+ <a href="{{ uri.uri }}"><code>{{ uri.uri }}</code></a>
+ </tr>
+ <tr>
+ {% endfor %}
+ </tr>
+ {% endfor %}
+ </table>
+ {% endfor %}
+{% endfor %}