summaryrefslogtreecommitdiffstats
path: root/site/download/index.php
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-02-21 04:11:28 (EST)
committer Francis Rowe <info@gluglug.org.uk>2015-02-21 12:14:14 (EST)
commitc5d2e117e3c795c81435d3fcb5b326f39a8e8711 (patch)
tree136577f868a92be9cce35fe014f6fefbaf0042b5 /site/download/index.php
parentf8953319283675e680f8f733437778668c23b3c0 (diff)
downloadlibreboot.org-c5d2e117e3c795c81435d3fcb5b326f39a8e8711.zip
libreboot.org-c5d2e117e3c795c81435d3fcb5b326f39a8e8711.tar.gz
libreboot.org-c5d2e117e3c795c81435d3fcb5b326f39a8e8711.tar.bz2
Finish download page, re-release everything under AGPL v3 or later
Link to new download page from the homepage. Replace top footer text with a variable reference. Replace instances of "libreboot" with a variable reference. Delete the vortex86ex directory (that machine is a waste of time) Delete the readme.txt (it will need to be re-written)
Diffstat (limited to 'site/download/index.php')
-rw-r--r--site/download/index.php239
1 files changed, 162 insertions, 77 deletions
diff --git a/site/download/index.php b/site/download/index.php
index 4cadfb2..3e8b620 100644
--- a/site/download/index.php
+++ b/site/download/index.php
@@ -1,3 +1,26 @@
+<?php
+/*
+ Download page
+ Copyright (C) 2015 Francis Rowe <info@gluglug.org.uk>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+?>
+<?php
+ include_once "../variables.php";
+ include_once "../torrents.php";
+?>
<!DOCTYPE html>
<html>
<head>
@@ -6,125 +29,187 @@
<link rel="stylesheet" type="text/css" href="../css/main.css" />
- <title>Download libreboot</title>
+ <title>Download <?php echo $lbProjectName; ?></title>
</head>
-<?php
- include_once "../variables.php";
-?>
-
<body>
<div class="contain">
<div id="libreboot" class="section intro">
- <h1>Download libreboot</h1>
-
- <p>
- Torrent (magnet) links to releases, and links to third-party HTTP mirrors. Use this page
- to download libreboot. These are stable releases; for development (unstable) releases,
- refer back to the home page.
- </p>
-
- <p>
- <b>This page isn't actually ready yet. For now, the official download page
- is at <a href="../docs/release.html">../docs/release.html</a>. On the next release of libreboot after r20150208,
- release archives will no longer be hosted on the libreboot.org HTTP server. Old releases
- will be deleted and moved to bittorrent. New releases will also be hosted on bittorrent.</b>
- </p>
+ <p>
+ <a href="../images/welcome_screen.png"><img class="homepage_logo" src="../images/welcome_screen_small.jpg" alt="" title="<?php include "../images/welcome_screen.png.license.txt"; ?>" /></a>
+ </p>
+
+ <h1>Download <?php echo $lbProjectName; ?></h1>
- <p>
- <b>Why bittorrent? As we all know, bittorrent is inherently more efficient than a HTTP server
- for large files, due to its peer-to-peer distributed nature. Libreboot releases are actually much
- more efficient now, where ROM images for each machine are separated into their own tar archives.
- The old 'binary' archive is now named 'utils'. Documentation is also deleted from 'utils' and 'src'
- and now available in a separate archive. All of this means that the user has a much more streamlined
- way of getting libreboot releases, with less data to download. Bittorrent will improve this even
- further, giving users faster download speeds.</b>
- </p>
+ <p>
+ Information about these releases can be found at <a href="../docs/release.html">../docs/release.html</a>.
+ Documentation can be found at <a href="../docs/index.html">../docs/index.html</a>.
+ A copy of /docs/ can also be found in the release archives.
+ </p>
+
+ <!-- <p>
+ TODO: set up RSS and Atom feeds for the bittorrent links (but not the HTTP mirrors).
+ The main gitweb page (for the main git repository) already generates atom/rss feeds.
+ </p> -->
+
+ <ul class="ulnav">
+ <li><a href="#torrent">Bittorrent</a></li>
+ <li><a href="#http">HTTP mirrors</a></li>
+ <li><a href="#git">Git repositories (development)</a></li>
+ </ul>
+
+ <p>
+ <a href="../">Back to home page</a>
+ </p>
+
+ </div>
+
+ <div class="section" id="gpg">
- <p>
- <b>Bittorrent is also redundant. The libreboot project will not actually host its own tracker at all,
- but it will instead use many public trackers and publish the magnet links. The website is also
- hosted in git, which means that everything is easier to mirror. If libreboot.org is down, you'll
- still be able to download libreboot so long as you have those magnet links.</b>
- </p>
+ <h1 id="gpg">GPG signing key</h1>
+
+ <p>
+ <?php echo $lbProjectGpgKeyInfo; ?>
+ </p>
+ <p>
+ Download the key:<br/>
+ $ <b>gpg --recv-keys <?php echo $lbProjectGpgKeyID; ?></b>
+ </p>
+ <p>
+ You can verify the downloaded archives as follows:<br/>
+ $ <b>for signature in $(ls *.tar.xz.sig); do gpg --verify $signature; done</b>
+ </p>
+
+ </div>
+
+ <div class="section" id="torrent">
- <p>
- Information about these releases can be found under docs/release.html in the libreboot_docs archive
- or in the git git repository. See <a href="../docs/release.html">../docs/release.html</a>.
- </p>
-
- <p>
- It has been suggested to setup RSS feeds for this, so that people can automatically download and seed new releases.
- TODO: look into this.
- </p>
+ <p><b>Torrent links do not work yet. Use the HTTP downloads.</b></p>
+ <h1>Bittorrent</h1>
+
+ <?php
+ /* Show current version */
+ echo torrent_list($lbTorrentLink, 0, 1);
+ ?>
+
+ <?php
+ /* Link to old releases */
+ if (count($lbTorrentLink)>1) {
+ ?>
<p>
- <a href="../">Back to homepage</a>
+ Torrents for older releases can be found at <a href="oldtorrent/">oldtorrent/</a>.
</p>
-
+<?php
+ }
+?>
+
+ <p><b>Torrent links do not work yet. Use the HTTP downloads.</b></p>
+
</div>
-
- <div class="section">
-
- <h2>XXXXYYZZ</h2>
+
+ <div class="section" id="http">
+
+ <h1>HTTP mirrors</h1>
<p>
- Next release. Date unknown.
+ These mirrors are intended mainly for those who cannot use
+ bittorrent. Otherwise, the <a href="#torrent">torrent links</a>
+ are highly recommended.
</p>
- <h2>r20150208</h2>
+
+ <ul>
+<?php
+ if (count($lbHttpMirror)>0) {
+ for ($server=0; $server<count($lbHttpMirror); $server++) {
+?>
+ <li><a href="<?php echo $lbHttpMirror[$server]; ?>"><?php echo $lbHttpMirror[$server]; ?></a></li>
+<?php
+ }
+ } else {
+?>
+ <li>HTTP mirrors not added yet.</li>
+<?php
+ }
+?>
+ </ul>
+
<p>
- The magnet links for libreboot releases aren't actually available yet.
- It will all be moved later. This page is just a template for the time being.
+ Are you running a mirror? Contact the <?php echo $lbProjectName; ?> project
+ (details are on the <a href="../">home page</a>), and the link will be added here.
</p>
- <h2>TODO: populate this page.</h2>
-
+
</div>
- <div class="section">
+ <div class="section" id="git">
- <h2>Git repositories</h2>
+ <h1>Git repositories (development)</h1>
+
+ <p>
+ These git repositories are intended for the development of <?php echo $lbProjectName; ?>.
+ The ROM images built from git are untested, and therefore not
+ recommended for general use (you should assume that they will
+ brick your computer).
+ </p>
+
+ <p>
+ Snapshots (preview releases) of the git repository can be found at
+ <a href="../git/">../git/</a>.
+ </p>
+ <p>
+ Documentation for <?php echo $lbProjectName; ?> from git can be found in
+ the git repository itself (under /docs/), or a live version
+ can be found at <a href="../gitdocs/index.html">../gitdocs/index.html</a>.
+ </p>
- <h3>Main repositories</h3>
+ <h2>Main repositories</h2>
<p>
- This is the main repository, hosted by the libreboot project.
+ This is the main repository, hosted by the <?php echo $lbProjectName; ?> project.
</p>
<p>
- Firmware: $ <b>git clone <?php echo $lbFirmwareGitRepoAddress; ?></b><br/>
- Website: $ <b>git clone <?php echo $lbWebsiteGitRepoAddress; ?></b>
+ Firmware: $ <b>git clone <a href="<?php echo $lbFirmwareGitwebAddress; ?>"><?php echo $lbFirmwareGitRepoAddress; ?></a></b><br/>
+ Website: $ <b>git clone <a href="<?php echo $lbWebsiteGitwebAddress; ?>"><?php echo $lbWebsiteGitRepoAddress; ?></a></b>
</p>
- <h2>Backup repositories</h2>
- <p>
- These are backup repositories, in case the main repository is down.
- Although these are regularly updated by the libreboot project, you
- should ideally use the main repository.
- </p>
-
- <h3>Libreboot firmware (coreboot distribution)</h3>
<p>
+ <a href="../github/">Please do not use GitHub!</a>
+ </p>
+
+ <h2>Backup repositories</h2>
+ <p>
+ Backup repositories, in case the main repository is down.
+ Although these are regularly updated by the <?php echo $lbProjectName; ?> project, you
+ should ideally use the main repository.
+ </p>
+ <p>
+ <a href="../github/">Please do not use GitHub!</a>
+ </p>
+
+ <h3>Firmware (coreboot distribution)</h3>
+ <p>
<?php
for ($server=0; $server<count($lbFirmwareBackupGitRepoAddress); $server++) {
?>
- $ <b>git clone <?php echo $lbFirmwareBackupGitRepoAddress[$server]; ?></b>
- <?php if ($server!=count($lbFirmwareBackupGitRepoAddress)-1) echo "<br/>"; ?>
+ $ <b>git clone <?php echo $lbFirmwareBackupGitRepoAddress[$server]; ?></b>
+ <?php if ($server!=count($lbFirmwareBackupGitRepoAddress)-1) echo "<br/>"; ?>
<?php
}
?>
- </p>
+ </p>
- <h3>Libreboot website</h3>
- <p>
+ <h3>Project website</h3>
+ <p>
<?php
for ($server=0; $server<count($lbWebsiteBackupGitRepoAddress); $server++) {
?>
- $ <b>git clone <?php echo $lbWebsiteBackupGitRepoAddress[$server]; ?></b>
- <?php if ($server!=count($lbWebsiteBackupGitRepoAddress)-1) echo "<br/>"; ?>
+ $ <b>git clone <?php echo $lbWebsiteBackupGitRepoAddress[$server]; ?></b>
+ <?php if ($server!=count($lbWebsiteBackupGitRepoAddress)-1) echo "<br/>"; ?>
<?php
}
?>
- </p>
+ </p>
</div>