Commit 97c9b20c authored by Johann Bauer's avatar Johann Bauer

Initial commit

parent 709fd0ad
<svg fill="#42a5f5" height="48" viewBox="0 0 24 24" width="48" xmlns="http://www.w3.org/2000/svg">
<path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/>
<path d="M0 0h24v24H0z" fill="none"/>
</svg>
\ No newline at end of file
<svg fill="#000" height="48" viewBox="0 0 24 24" width="48" xmlns="http://www.w3.org/2000/svg">
<path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/>
<path d="M0 0h24v24H0z" fill="none"/>
</svg>
\ No newline at end of file
This diff is collapsed.
favicon.ico

4.19 KB

<?php
$api_url = "https://bauerj:" . getenv("API_KEY") . "@api.bintray.com/packages/borg-binary-builder/borg-binaries/borg-binaries/files";
$_files = file_get_contents($api_url);
$_files = json_decode($_files);
function human_filesize($bytes, $decimals = 2) {
$sz = 'BKMGTP';
$factor = floor((strlen($bytes) - 1) / 3);
$suff = @$sz[$factor];
if ($suff != "B") $suff .= "iB";
return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)) . $suff;
}
$versions = [];
$files = [];
foreach ($_files as $file) {
$versions[] = $file->version;
$files[$file->name] = $file;
}
uasort($files, function($a, $b) {
return version_compare($b->version, $a->version);
});
usort($versions, "version_compare");
$stable = array_pop($versions);
$binaries = [];
foreach (["armv5", "armv6", "arm64"] as $flavor) {
$binaries[$flavor] = [
"version" => $files["borg-$stable-$flavor"]->version,
"size" => $files["borg-$stable-$flavor"]->size,
"sha256" => $files["borg-$stable-$flavor"]->sha256,
"url" => "https://dl.bintray.com/borg-binary-builder/borg-binaries/borg-$stable-$flavor"
];
}
$fp = fopen('binaries.json', 'w');
fwrite($fp, json_encode($binaries));
fclose($fp);
?>
<style>
@font-face {
font-family: 'EncodeSans';
font-style: normal;
font-weight: 700;
src: local('Encode Sans'), url(_assets/EncodeSans-Regular.woff) format('woff');
}
body {
font-family: 'EncodeSans';
}
.container { padding: 25px; }
</style>
<style>
</style>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Borg ARM binaries</title>
<link rel="stylesheet" type="text/css" href="_assets/styles.css">
<div id="content">
<div id="content-header">
<h1>Borg ARM builds</h1> <br>Currently there are automated builds for three different versions of ARM hardware:
<span class="flavor">
<a class="download" href="https://dl.bintray.com/borg-binary-builder/borg-binaries/borg-<?= $stable ?>-armv5">
<h2>ARMv5 / ARMv4t</h2><br>
<b class="download-link">Borg <?= $stable ?><br><br><?= human_filesize($files["borg-$stable-armv5"]->size) ?></b>
</a>
<span class="description">
This version is built for 32Bit-ARM CPUs without a Floating-Point-Unit (ARM v4t and v5).<br>
<br>A lot of NAS devices are using this type of hardware.<br>
<span class="code">
<b style="color:#2aa198">wget</b> <b style="color:#d33682">https://dl.bintray.com/borg-binary-builder/borg-binaries/borg-<?= $stable ?>-armv5</b> -O /usr/bin/borg<br>
<b style="color:#2aa198">chmod</b> a+x /usr/bin/borg
</span>
</span>
</span>
<span class="flavor">
<a class="download" href="https://dl.bintray.com/borg-binary-builder/borg-binaries/borg-<?= $stable ?>-armv6">
<h2>ARMv7 / ARMv6</h2><br>
<b class="download-link">Borg <?= $stable ?><br><br><?= human_filesize($files["borg-$stable-armv6"]->size) ?></b>
</a>
<span class="description">
This version is built for 32Bit-ARM CPUs with a Floating-Point-Unit (ARM v6 and v7).<br>
<br>A lot of modern ARM boards and devices ship with a floating-point unit (FPU).
This includes Raspberry Pis and some powerful NAS devices.<br>
<span class="code">
<b style="color:#2aa198">wget</b> <b style="color:#d33682">https://dl.bintray.com/borg-binary-builder/borg-binaries/borg-<?= $stable ?>-armv6</b> -O /usr/bin/borg<br>
<b style="color:#2aa198">chmod</b> a+x /usr/bin/borg
</span>
</span>
</span>
<span class="flavor">
<a class="download" href="https://dl.bintray.com/borg-binary-builder/borg-binaries/borg-<?= $stable ?>-arm64">
<h2>ARMv8 (or ARM64)</h2><br>
<b class="download-link">Borg <?= $stable ?><br><br><?= human_filesize($files["borg-$stable-arm64"]->size) ?></b>
</a>
<span class="description">
This version is built for modern 64Bit-ARM CPUs (ARM v8).<br>
Examples include modern smartphones or the Pine64.<br>
<span class="code">
<b style="color:#2aa198">wget</b> <b style="color:#d33682">https://dl.bintray.com/borg-binary-builder/borg-binaries/borg-<?= $stable ?>-arm64</b> -O /usr/bin/borg<br>
<b style="color:#2aa198">chmod</b> a+x /usr/bin/borg
</span>
</span>
</span>
<h2>Frequently Asked Questions</h2>
<div class="container">
<h3>Which version should I choose?</h3>
There is probably only one version that's going to run on your device. Run <span class="code">uname -m</span> and choose the version that's named similar to the output.
</div>
<div class="container">
<h3>Which dependencies do I need?</h3>
These binaries should work on the specified platform without installing any dependencies except for libc.<br> You can find more
information about how to use them in the <a href="https://borgbackup.readthedocs.io/en/stable/installation.html#standalone-binary">borg documentation</a>.
</div>
<div class="container">
<h3>How can I check the authenticity of the binaries?</h3>
All binaries are signed with PGP key <a href="/borg-binary-builder.asc"><i>A96A45C9</i></a>.
</div>
<div class="container">
<h3>Where can I submit bug reports or feature requests?</h3>
Please open an issue <a href="https://git.feneas.org/borg-binary-builder/borg-binaries">here</a>.
</div>
<div class="container">
<h3>Can I use a script to check this website for updates?</h3>
Yes, but please use <a href="/binaries.json">this JSON representation</a> in stead of this website. Also, please note that excessive polling might get you banned.
</div>
<h2>Archive</h2>
</div>
<div id="view" class="view-details view-size-20">
<ul id="items" class="clearfix">
<li class="header">
<a class="label"><span class="l10n-name">Name</span></a>
<a class="date descending"><span class="l10n-lastModified">Changed</span></a>
<a class="size"><span class="l10n-size">Size</span></a>
</li>
<?php foreach ($files as $f) { ?>
<li class="item file">
<a href="https://dl.bintray.com/borg-binary-builder/borg-binaries/<?= $f->name ?>">
<span class="label" title="<?= $f->name ?>"><?= $f->name ?></span>
<span class="date" data-time="<?= $f->created ?>"><?= $f->created ?></span>
<span class="size" data-bytes="<?= $f->size ?>"><?= human_filesize($f->size) ?></span>
</span></a>
</li>
<?php }?>
</ul>
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment