Adding Debian, Ubuntu, OpenSUSE, RHEL, CentOS kernels to WireGuard CI: Seeking URLs

Georg Faerber georg at riseup.net
Fri May 22 14:43:44 CEST 2020


Hi,

Regarding the Debian-side of things:

On 20-05-22 02:04:58, Jason A. Donenfeld wrote:
> I'd like to put these on build.wireguard.com to mitigate breakage. In
> order to make this happen, I'll need two things:
> - A URL I can scape that will give me the latest kernel versions for
> relevant distros.

Versions are available via [1], the 'f' param returns json output.
API docs are available via [2].

> - A URL I can construct using a selected version to download a boring
> kernel source tarball.
> I would prefer to not involve git, if possible, and for these URLs to
> point to the sources for actual kernels that are shipping as the
> standard latest-kernel for each of the above releases.

One way to get the source tarball, without relying on git, is using
[3], specifically [4]. To construct the URL to fetch the source tarball
from, one would need to concatenate:

https://snapshot.debian.org/archive/debian/ + $first_seen + $path + $name

An example URL would look like [5].

I'm not sure if there are API docs available.

Hope this helps,
cheers,
Georg


[1] https://api.ftp-master.debian.org/madison?package=linux&f
[2] https://ftp-team.pages.debian.net/dak/epydoc/dakweb.queries.madison-module.html
[3] https://snapshot.debian.org/
[4] https://snapshot.debian.org/mr/package/linux/5.6.7-1/srcfiles?fileinfo=1
[5] https://snapshot.debian.org/archive/debian/20200429T204608Z/pool/main/l/linux/linux_5.6.7.orig.tar.xz


More information about the WireGuard mailing list