small www
This commit is contained in:
1 parent
3d6c49df65
commit
fda15b194b
7 files changed
+336
-72
No files matched your search
@@ -17,20 +17,42 @@ component=os.environ['REPO_COMPONENT']
|
||||
h=html.escape
|
||||
content=f'''<!doctype html>
|
||||
<html lang="pl">
|
||||
<head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>{h(package)} repository</title></head>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="referrer" content="no-referrer">
|
||||
<title>{h(package)} — repozytorium pakietów</title>
|
||||
<style>
|
||||
:root{{color-scheme:light dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}}
|
||||
body{{max-width:920px;margin:0 auto;padding:42px 20px 70px;line-height:1.55}}
|
||||
h1{{margin-bottom:.25rem}} .lead{{opacity:.78;margin-top:0}}
|
||||
.card{{border:1px solid #8885;border-radius:12px;padding:18px;margin:18px 0}}
|
||||
pre{{overflow:auto;padding:16px;border-radius:9px;background:#111;color:#eee;line-height:1.45}}
|
||||
code{{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}}
|
||||
a{{color:inherit}} .meta{{display:flex;gap:16px;flex-wrap:wrap;opacity:.82;font-size:.94rem}}
|
||||
.ok{{font-weight:700}} ul{{padding-left:1.25rem}}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>{h(package)}</h1>
|
||||
<h1>{h(package)} — repozytorium pakietów</h1>
|
||||
<p class="lead">Podpisane pakiety DEB i RPM dla x86_64/amd64.</p>
|
||||
<div class="meta"><span class="ok">Repozytorium aktywne</span><span>{h(url)}</span><span>APT + RPM/DNF</span></div>
|
||||
|
||||
<div class="card">
|
||||
<h2>Debian / Ubuntu</h2>
|
||||
<pre>curl -fsSL {h(url)}/repo-key.gpg \\
|
||||
<pre><code>curl -fsSL {h(url)}/repo-key.gpg \\
|
||||
| sudo gpg --dearmor -o /usr/share/keyrings/{h(package)}.gpg
|
||||
|
||||
echo "deb [signed-by=/usr/share/keyrings/{h(package)}.gpg] {h(url)}/apt {h(dist)} {h(component)}" \\
|
||||
| sudo tee /etc/apt/sources.list.d/{h(package)}.list
|
||||
|
||||
sudo apt update
|
||||
sudo apt install {h(package)}</pre>
|
||||
sudo apt install {h(package)}</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<h2>RHEL / Rocky / Alma / Fedora</h2>
|
||||
<pre>sudo rpm --import {h(url)}/repo-key.gpg
|
||||
<pre><code>sudo rpm --import {h(url)}/repo-key.gpg
|
||||
|
||||
sudo tee /etc/yum.repos.d/{h(package)}.repo <<'REPO'
|
||||
[{h(package)}]
|
||||
@@ -42,7 +64,18 @@ repo_gpgcheck=1
|
||||
gpgkey={h(url)}/repo-key.gpg
|
||||
REPO
|
||||
|
||||
sudo dnf install {h(package)}</pre>
|
||||
sudo dnf install {h(package)}</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<h2>Pliki repozytorium</h2>
|
||||
<ul>
|
||||
<li><a href="{h(url)}/repo-key.gpg">Publiczny klucz GPG</a></li>
|
||||
<li><a href="{h(url)}/apt/dists/{h(dist)}/InRelease">APT InRelease</a></li>
|
||||
<li><a href="{h(url)}/rpm/x86_64/repodata/repomd.xml">RPM repomd.xml</a></li>
|
||||
</ul>
|
||||
<p>Obsługiwane cele: Debian 12/13, Ubuntu 24.04/26.04, RHEL 9/10; architektura amd64/x86_64.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
'''
|
||||
|
||||
Reference in new issue
Block a user