fwupd/docs/website
2015-07-20 15:07:24 +01:00
..
.openshift/action_hooks Move the LVFS website to the fwupd project 2015-07-20 15:07:24 +01:00
img Move the LVFS website to the fwupd project 2015-07-20 15:07:24 +01:00
.htaccess Move the LVFS website to the fwupd project 2015-07-20 15:07:24 +01:00
banner.svg Move the LVFS website to the fwupd project 2015-07-20 15:07:24 +01:00
db.php Move the LVFS website to the fwupd project 2015-07-20 15:07:24 +01:00
developers.html Move the LVFS website to the fwupd project 2015-07-20 15:07:24 +01:00
dump.php Move the LVFS website to the fwupd project 2015-07-20 15:07:24 +01:00
favicon.ico Move the LVFS website to the fwupd project 2015-07-20 15:07:24 +01:00
index.html Move the LVFS website to the fwupd project 2015-07-20 15:07:24 +01:00
README.md Move the LVFS website to the fwupd project 2015-07-20 15:07:24 +01:00
result.php Move the LVFS website to the fwupd project 2015-07-20 15:07:24 +01:00
style.css Move the LVFS website to the fwupd project 2015-07-20 15:07:24 +01:00
upload.php Move the LVFS website to the fwupd project 2015-07-20 15:07:24 +01:00
users.html Move the LVFS website to the fwupd project 2015-07-20 15:07:24 +01:00
vendors.html Move the LVFS website to the fwupd project 2015-07-20 15:07:24 +01:00

Linux Vendor Firmware Service

This is the website for the Linux Vendor Firmware Service

IMPORTANT: This needs to be hosted over SSL, i.e. with a https:// prefix.

Using

Using index.html you can upload files to the upload directory. You can also dump all the user-visible databases using dump.php.

Installation

The default upload path of /var/www/html/lvfs/uploads needs to be writable by the apache user. You might have to tweak your SELinux policy too.

We also need a SQL server somewhere, with the following tables set up:

CREATE TABLE `firmware` (
  `vendor_key` varchar(36) DEFAULT NULL,
  `update_contact` varchar(255) DEFAULT NULL,
  `addr` varchar(16) DEFAULT NULL,
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `filename` varchar(255) DEFAULT NULL,
  `hash` varchar(40) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `users` (
  `guid` varchar(36) NOT NULL DEFAULT '',
  `name` varchar(128) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

Just modify the db.php file with your login credentials. You can insert authorised vendors with:

INSERT INTO users (guid, name) VALUES ('06350563-5b58-4c1d-8959-d9a216188604', 'Vendor1'), ('579caa6c-29d3-4efa-8f4d-bd2ff46af798', 'Vendor2');