From 740cf41930b75242bed9ab362f056dd7a0ae73d5 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 11 Aug 2016 18:29:39 +0100 Subject: [PATCH] Use the new CDN for firmware metadata --- ...-Amazon-S3-CDN-for-firmware-metadata.patch | 29 +++++++++++++++++++ fwupd.spec | 9 +++++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 0001-Switch-to-the-Amazon-S3-CDN-for-firmware-metadata.patch diff --git a/0001-Switch-to-the-Amazon-S3-CDN-for-firmware-metadata.patch b/0001-Switch-to-the-Amazon-S3-CDN-for-firmware-metadata.patch new file mode 100644 index 0000000..c48895c --- /dev/null +++ b/0001-Switch-to-the-Amazon-S3-CDN-for-firmware-metadata.patch @@ -0,0 +1,29 @@ +From 96e1ea6b265728aad5bf43f18009abb3befc34a0 Mon Sep 17 00:00:00 2001 +From: Richard Hughes +Date: Thu, 11 Aug 2016 18:24:14 +0100 +Subject: [PATCH] Switch to the Amazon S3 CDN for firmware metadata + +This is much more scalable than millions of clients hitting a single +OpenShift instance. +--- + data/fwupd.conf | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/data/fwupd.conf b/data/fwupd.conf +index 5aacd5c..3ec448b 100644 +--- a/data/fwupd.conf ++++ b/data/fwupd.conf +@@ -3,8 +3,8 @@ + # The download URI to use for LVFS metadata + # + # If you want to use testing firmware then change this value to: +-# https://secure-lvfs.rhcloud.com/downloads/firmware-testing.xml.gz +-DownloadURI=https://secure-lvfs.rhcloud.com/downloads/firmware.xml.gz ++# https://s3.amazonaws.com/lvfsbucket/downloads/firmware-testing.xml.gz ++DownloadURI=https://s3.amazonaws.com/lvfsbucket/downloads/firmware.xml.gz + + # If we should verify option ROM images + EnableOptionROM=true +-- +2.7.4 + diff --git a/fwupd.spec b/fwupd.spec index ae93183..4abcf22 100644 --- a/fwupd.spec +++ b/fwupd.spec @@ -6,11 +6,14 @@ Summary: Firmware update daemon Name: fwupd Version: 0.7.2 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ URL: https://github.com/hughsie/fwupd Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz +# backported from master, use a more scalable CDN. +Patch0: 0001-Switch-to-the-Amazon-S3-CDN-for-firmware-metadata.patch + BuildRequires: docbook-utils BuildRequires: gettext BuildRequires: glib2-devel >= %{glib2_version} @@ -71,6 +74,7 @@ Files for development with libdfu. %prep %setup -q +%patch0 -p1 -b .new-cdn %build %configure \ @@ -156,6 +160,9 @@ make check VERBOSE=1 %{_libdir}/pkgconfig/dfu.pc %changelog +* Thu Aug 11 2016 Richard Hughes 0.7.2-3 +- Use the new CDN for firmware metadata + * Thu Jul 14 2016 Kalev Lember - 0.7.2-2 - Tighten subpackage dependencies