fwupd/docs/website
Richard Hughes 0daed7c259 Do not use the file hash when storing the LVFS submitted firmwares
This means we can't easily map between the MetaInfo entry and the file itself.
2015-07-22 10:03:36 +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
admin.html Associate the contact email address directly with the vendor key 2015-07-20 21:48:55 +01:00
admin.php Do not use the file hash when storing the LVFS submitted firmwares 2015-07-22 10:03:36 +01:00
banner.svg Move the LVFS website to the fwupd project 2015-07-20 15:07:24 +01:00
db.php Do not use the file hash when storing the LVFS submitted firmwares 2015-07-22 10:03:36 +01:00
developers.html Automatically download metadata using fwupdmgr if required 2015-07-20 16:19:20 +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
GPG-KEY-Linux-Vendor-Firmware-Service Use the actual LVFS GPG key 2015-07-21 13:24:26 +01:00
index.html Move the LVFS website to the fwupd project 2015-07-20 15:07:24 +01:00
README.md Associate the contact email address directly with the vendor key 2015-07-20 21:48:55 +01:00
result.php Associate the contact email address directly with the vendor key 2015-07-20 21:48:55 +01:00
style.css Move the LVFS website to the fwupd project 2015-07-20 15:07:24 +01:00
upload.php Do not use the file hash when storing the LVFS submitted firmwares 2015-07-22 10:03:36 +01:00
users.html Move the LVFS website to the fwupd project 2015-07-20 15:07:24 +01:00
vendors.html Use the actual LVFS GPG key 2015-07-21 13:24:26 +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,
  `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
  `update_contact` varchar(255) DEFAULT NULL,
  `state` integer DEFAULT 0,
) 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');