aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_plugins/filters.rb5
-rw-r--r--downloads/mirrors/index.html23
-rw-r--r--support/rsync-mirrors/index.html93
3 files changed, 115 insertions, 6 deletions
diff --git a/_plugins/filters.rb b/_plugins/filters.rb
index 1a4f3c1..34ad123 100644
--- a/_plugins/filters.rb
+++ b/_plugins/filters.rb
@@ -17,6 +17,11 @@ module Gentoo
"#{number} #{UNITS[exponent]}"
end
+
+ def rsync_url(input)
+ input += '/' unless input.end_with? '/'
+ input + 'gentoo-portage/'
+ end
end
end
diff --git a/downloads/mirrors/index.html b/downloads/mirrors/index.html
index b680def..d042aed 100644
--- a/downloads/mirrors/index.html
+++ b/downloads/mirrors/index.html
@@ -1,5 +1,5 @@
---
-title: 'Gentoo Distfile Mirrors'
+title: 'Gentoo Source Mirrors'
navtitle: 'Mirrors'
nav1: downloads
nav2: mirrors
@@ -12,18 +12,29 @@ nav2-show: true
</p>
<div class="alert alert-info">
- <strong>Note</strong><br>
- The mirrors listed on this page contain installation files such as LiveCDs, Portage snapshots as well as <em>distfiles</em> (the actual program code for most packages we offer).<br>
- That means you can use them in your <code>GENTOO_MIRRORS</code> variable in <tt>make.conf</tt>, but they are <strong>not</strong> <em>rsync</em> mirrors (which go into <tt>repos.conf</tt>, formerly <code>SYNC</code> in <tt>make.conf</tt>).
+ <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/Source_mirrors">relevant documentation</a>.
+ 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 mirrors</h2>
+<h2>Countries covered by Gentoo Source Mirrors</h2>
<table class="table table-condensed table-striped">
<tr>
diff --git a/support/rsync-mirrors/index.html b/support/rsync-mirrors/index.html
new file mode 100644
index 0000000..154e25c
--- /dev/null
+++ b/support/rsync-mirrors/index.html
@@ -0,0 +1,93 @@
+---
+title: 'Gentoo rsync Mirrors'
+navtitle: 'rsync Mirrors'
+nav1: support
+nav2: mirrors
+nav2-show: true
+---
+
+<p>
+ Gentoo is hosted by many mirrors around the globe.
+ Selecting a mirror that is geographically near you may help speed up Portage tree updates.
+</p>
+
+<div class="alert alert-info">
+ <strong>Using rsync Mirrors</strong>
+ <br>
+ The mirrors listed <strong>on this page</strong> are used for updating your Portage tree.
+ <br>
+ To use an rsync mirror, set the <tt>sync-uri</tt> variable in the <tt>[gentoo]</tt> section of <tt>repos.conf</tt> to a URL from the list below.
+ <a href="https://wiki.gentoo.org/wiki//etc/portage/repos.conf/gentoo.conf" class="alert-link">More information</a> is available in our Wiki.
+</div>
+
+<div class="alert alert-success">
+ <strong>Source Mirrors</strong>
+ <br>
+ We also have a second type of mirrors that you use for fetching installation files as well as package sources (configured via <code>GENTOO_MIRRORS</code>).
+ They are available on a <a href="/downloads/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/Rsync">relevant documentation</a>.
+</p>
+
+<hr>
+
+<h2>Countries covered by Gentoo rsync Mirrors</h2>
+
+<table class="table table-condensed table-striped">
+ <tr>
+ <th>Region</th>
+ <th>Countries</th>
+ </tr>
+{% for region in site.data.mirrors.rsync %}
+ <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.rsync %}
+ <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: 55%;">Name</th>
+ <th style="width: 10%;">IPv4/v6</th>
+ <th style="width: 35%;">URL (for <tt>repos.conf</tt>)</th>
+ </tr>
+ {% for mirror in country[1].mirrors %}
+ <tr>
+ <td rowspan="{{ mirror.uris.size }}">{{ mirror.name }}</td>
+ {% for uri in mirror.uris %}
+ <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 | rsync_url }}"><code>{{ uri.uri | rsync_url }}</code></a>
+ </tr>
+ <tr>
+ {% endfor %}
+ </tr>
+ {% endfor %}
+ </table>
+ {% endfor %}
+{% endfor %}