mirror of
https://github.com/eosswedenorg/apt
synced 2026-07-03 11:53:42 +02:00
Merge branch 'multiple-distribution'
This commit is contained in:
commit
2cc3cc6a95
11 changed files with 90 additions and 40 deletions
6
_data/dists.yml
Normal file
6
_data/dists.yml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
|
||||||
|
bionic:
|
||||||
|
version: 18.04
|
||||||
|
|
||||||
|
eoan:
|
||||||
|
version: 19.10
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{% assign domain = include.domain | default: site.apt.domain %}
|
{% assign domain = include.domain | default: site.apt.domain %}
|
||||||
|
{% assign dist = include.distribution | default: "bionic" %}
|
||||||
{% highlight bash %}
|
{% highlight bash %}
|
||||||
$ sudo apt-add-repository -y 'deb [arch=amd64] https://{{ domain }}/{{ include.repo }} bionic {{ include.components }}' {% if include.update == true %}
|
$ sudo apt-add-repository -y 'deb [arch=amd64] https://{{ domain }}/{{ include.repo }} {{ dist }} {{ include.components }}' {% if include.update == true %}
|
||||||
$ sudo apt-get update{% endif %}
|
$ sudo apt-get update{% endif %}
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
|
||||||
48
_layouts/dist.html
Normal file
48
_layouts/dist.html
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
---
|
||||||
|
layout: default
|
||||||
|
---
|
||||||
|
|
||||||
|
{% assign dist = page.slug %}
|
||||||
|
{% assign repo = page.url | remove_first: '/' | split: '/' | first %}
|
||||||
|
{% assign repo_info = site.repos | where: 'repo', repo | first %}
|
||||||
|
|
||||||
|
{% assign domain = repo_info.domain | default: site.apt.domain %}
|
||||||
|
{% assign list = site.packages | where: 'Repo', repo | where: 'Archive', dist %}
|
||||||
|
|
||||||
|
<p>
|
||||||
|
NOTE: If this is your first time here, you need to do some configurations before you can use this repository.
|
||||||
|
Please read the <a target="_blank" href="{{ "/#setup" | absolute_url }}">instructions</a>.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h2>{{ repo }} - {{ dist }}</h2>
|
||||||
|
|
||||||
|
<p>{{ repo_info.description }}</p>
|
||||||
|
|
||||||
|
{% for component in site.apt.components %}
|
||||||
|
|
||||||
|
<h3>{{ component }}</h3>
|
||||||
|
{% assign packages = list | where: 'Component', component %}
|
||||||
|
|
||||||
|
{% if packages.size > 0 %}
|
||||||
|
|
||||||
|
{% include apt-add.html domain=domain repo=repo distribution=dist components=component %}
|
||||||
|
|
||||||
|
<table class="d-lg-table">
|
||||||
|
<tr>
|
||||||
|
<th style="width: 20%">Name</th>
|
||||||
|
<th>Description</th>
|
||||||
|
<th>Latest Version</th>
|
||||||
|
</tr>
|
||||||
|
{% for package in packages %}
|
||||||
|
<tr>
|
||||||
|
<td><a href="{{ package.url | relative_url }}" >{{ package.Name }}</a></td>
|
||||||
|
<td>{{ package.Description }}</td>
|
||||||
|
<td>{{ package.Versions.first[0] }}</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</table>
|
||||||
|
{% else %}
|
||||||
|
<p class="text-gray-light">No packages</p>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% endfor %}
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
layout: default
|
layout: default
|
||||||
---
|
---
|
||||||
|
|
||||||
<h2>Package: {{ page.Name }} ({{ page.Versions.first[0] }}) [{{ page.Component }}]</h2>
|
<h2>Package: {{ page.Name }} ({{ page.Versions.first[0] }}) [{{ page.Archive }}:{{ page.Component }}]</h2>
|
||||||
|
|
||||||
<h3>{{ page.Description | capitalize }}</h3>
|
<h3>{{ page.Description | capitalize }}</h3>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,45 +2,16 @@
|
||||||
layout: default
|
layout: default
|
||||||
---
|
---
|
||||||
|
|
||||||
|
{% assign id = page.slug %}
|
||||||
|
{% assign dists = site.packages | where: 'Repo', id | group_by: 'Archive' %}
|
||||||
|
|
||||||
{% assign domain = page.domain | default: site.apt.domain %}
|
<h2>{{ page.title }} repository</h2>
|
||||||
{% assign repo = page.repo %}
|
|
||||||
{% assign list = site.packages | where: 'Repo', repo %}
|
|
||||||
|
|
||||||
<p>
|
<p>Choose your ubuntu version below</p>
|
||||||
NOTE: If this is your first time here, you need to do some configurations before you can use this repository.
|
|
||||||
Please read the <a target="_blank" href="{{ "/#setup" | absolute_url }}">instructions</a>.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<h2>{{ page.title }} Repository</h2>
|
|
||||||
|
|
||||||
<p>{{ page.description }}</p>
|
|
||||||
|
|
||||||
{% for component in site.apt.components %}
|
|
||||||
|
|
||||||
<h3>{{ component }}</h3>
|
|
||||||
{% assign packages = list | where: 'Component', component %}
|
|
||||||
|
|
||||||
{% if packages.size > 0 %}
|
|
||||||
|
|
||||||
{% include apt-add.html domain=domain repo=repo components=component %}
|
|
||||||
|
|
||||||
<table class="d-lg-table">
|
|
||||||
<tr>
|
|
||||||
<th style="width: 20%">Name</th>
|
|
||||||
<th>Description</th>
|
|
||||||
<th>Latest Version</th>
|
|
||||||
</tr>
|
|
||||||
{% for package in packages %}
|
|
||||||
<tr>
|
|
||||||
<td><a href="{{ package.url | relative_url }}" >{{ package.Name }}</a></td>
|
|
||||||
<td>{{ package.Description }}</td>
|
|
||||||
<td>{{ package.Versions.first[0] }}</td>
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
|
||||||
</table>
|
|
||||||
{% else %}
|
|
||||||
<p class="text-gray-light">No packages</p>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
{% for dist in dists %}
|
||||||
|
{% assign info = site.data.dists[dist.name] %}
|
||||||
|
<li><a href="{{ page.url | replative_url }}/{{ dist.name }}">{{ dist.name }} {{ info.version }}</a> - {{ dist.items.size }} Packages</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
|
|
||||||
4
_packages/bos/bionic.md
Normal file
4
_packages/bos/bionic.md
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
layout: dist
|
||||||
|
title: "bos/bionic"
|
||||||
|
---
|
||||||
4
_packages/daobet/bionic.md
Normal file
4
_packages/daobet/bionic.md
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
layout: dist
|
||||||
|
title: "daobet/bionic"
|
||||||
|
---
|
||||||
4
_packages/eosio/bionic.md
Normal file
4
_packages/eosio/bionic.md
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
layout: dist
|
||||||
|
title: "eosio/eoan"
|
||||||
|
---
|
||||||
4
_packages/main/bionic.md
Normal file
4
_packages/main/bionic.md
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
layout: dist
|
||||||
|
title: "main/bionic"
|
||||||
|
---
|
||||||
4
_packages/uos/bionic.md
Normal file
4
_packages/uos/bionic.md
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
layout: dist
|
||||||
|
title: "uos/bionic"
|
||||||
|
---
|
||||||
4
_packages/wax/bionic.md
Normal file
4
_packages/wax/bionic.md
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
layout: dist
|
||||||
|
title: "wax/bionic"
|
||||||
|
---
|
||||||
Loading…
Add table
Add a link
Reference in a new issue