This commit is contained in:
Mateusz Gruszczyński committed 2026-10-07 09:23:17 +02:00
1 parent cce1081f75
commit 2b8f11ef8c
36 files changed
+1868 -309

No files matched your search

+17 -10
View File
@@ -6,7 +6,7 @@ OUT=${1:?output file required}
PACKAGE=${2:?package name required}
URL=$(trim_trailing_slash "$REPOSITORY_URL")
export OUT PACKAGE URL REPO_DISTRIBUTION REPO_COMPONENT
export OUT PACKAGE URL OPNSENSE_REPOSITORY_URL REPO_DISTRIBUTION REPO_COMPONENT
python3 <<'PY_END'
import html, os
out=os.environ['OUT']
@@ -14,14 +14,15 @@ package=os.environ['PACKAGE']
url=os.environ['URL']
dist=os.environ['REPO_DISTRIBUTION']
component=os.environ['REPO_COMPONENT']
opn_url=os.environ['OPNSENSE_REPOSITORY_URL'].rstrip('/')
h=html.escape
content=f'''<!doctype html>
<html lang="pl">
<html lang="en">
<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>
<title>{h(package)} — package repository</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}}
@@ -34,9 +35,9 @@ a{{color:inherit}} .meta{{display:flex;gap:16px;flex-wrap:wrap;opacity:.82;font-
</style>
</head>
<body>
<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>
<h1>{h(package)} — package repository</h1>
<p class="lead">Signed DEB and RPM packages for x86_64/amd64.</p>
<div class="meta"><span class="ok">Repository active</span><span>{h(url)}</span><span>APT + RPM/DNF</span></div>
<div class="card">
<h2>Debian / Ubuntu</h2>
@@ -68,17 +69,23 @@ sudo dnf install {h(package)}</code></pre>
</div>
<div class="card">
<h2>Pliki repozytorium</h2>
<h2>OPNsense / FreeBSD pkg</h2>
<p>The OPNsense plugin is published separately because it uses the FreeBSD pkg format.</p>
<p><a href="{h(opn_url)}/">{h(opn_url)}/</a></p>
</div>
<div class="card">
<h2>Repository files</h2>
<ul>
<li><a href="{h(url)}/repo-key.gpg">Publiczny klucz GPG</a></li>
<li><a href="{h(url)}/repo-key.gpg">Public GPG key</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>
<p>Supported targets: Debian 12/13, Ubuntu 24.04/26.04, RHEL 9/10; architecture: amd64/x86_64.</p>
</div>
</body>
</html>
'''
with open(out, 'w', encoding='utf-8') as f:
f.write(content)
PY_END
PY_END