Skip to content

About

packages.overpressure.org: overpressure's app for apt and dnf, signed repositories with a stable and a beta channel, deployed to GitHub Pages.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

packages.overpressure.org

TL;DR. overpressure's app for apt and dnf: signed repositories with a stable and a beta channel, built from the .deb and .rpm each release carries and deployed to GitHub Pages by the Pages workflow. An app installed from them leaves its updates to the package manager. How to add the repository: packages.overpressure.org.

How it works

  • The channels are the app's. stable takes the newest stable release with packages (none until there is one), beta the newest release with packages, a beta or a stable one. Each holds that one version; older ones stay on the releases, which keeps the site small.
  • apt. One pool, and per channel a suite (dists/stable, dists/beta, component main, amd64) with its Packages and its Release, signed inline (InRelease) and apart (Release.gpg), by apt-ftparchive and gpg.
  • dnf. Per channel a folder with its .rpm signed by rpmsign and createrepo_c's repodata, repomd.xml signed apart; overpressure.repo and overpressure-beta.repo add them with gpgcheck and repo_gpgcheck.
  • The key is one OpenPGP key, keys/overpressure.asc, fingerprint B4D0 5A53 AF93 FDE6 F366 5D63 6704 58DA 457B 1E73. Its secret half is the environment packages' secret PACKAGES_SIGNING_KEY, which only main's builds see; the build stops when that secret is another key than this file's. The page serves it as overpressure.asc and overpressure.gpg.
  • Deploying. A change on main builds and deploys. Every hour the workflow asks which releases the channels take (python -m pkgrepo plan) and builds only when one of them moved since the live state.json.
  • Tests. A pull request builds the whole site from stand-in packages with a key made for the run, then reads it the way the owners' systems do: apt-get update with the key, gpgv on every signature, rpm --checksig on the packages.

Building it

On Debian or Ubuntu with apt-utils dpkg-dev createrepo-c rpm gnupg and uv:

uv run python -m pkgrepo plan                          # which releases the channels take now
uv run python -m pkgrepo build --test-key              # the site in _site/, signed with a key made for it
PACKAGES_SIGNING_KEY="$(cat key.asc)" uv run python -m pkgrepo build  # with the repository's key
uv run python -m unittest                              # the tests; the repository tests need the tools above
uv run ruff format --check . && uv run ruff check . && uv run ty check

The page is page/: its text, the app's colours and its Inter (under the SIL Open Font License); the logo is a copy from overpressure/brand.

A new key

When the key has to change: make the new one, put its public half in keys/overpressure.asc and its secret half in PACKAGES_SIGNING_KEY in the same change, and say so in overpressure's release notes, since every owner has to fetch the new key once (the apt and dnf lines on the page).

License

The code is in the public domain (the Unlicense). The logo is CC BY-SA 4.0, from overpressure/brand.

About

packages.overpressure.org: overpressure's app for apt and dnf, signed repositories with a stable and a beta channel, deployed to GitHub Pages.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages