fwupdate-signed-1.11/0000775000000000000000000000000012673574205011425 5ustar fwupdate-signed-1.11/download-fwupdate0000775000000000000000000000166412672611754015006 0ustar #! /usr/bin/python3 import re import shutil from urllib.parse import urlparse, urlunparse from urllib.request import urlopen import apt import apt_pkg ARCH_TO_EFI_NAME = { 'amd64': 'x64', 'i386': 'ia32', 'arm64': 'aa64', 'armhf': 'arm', } arch = apt_pkg.config['Apt::Architecture'] efi_name = ARCH_TO_EFI_NAME[arch] cache = apt.Cache() fwupdate_efi = cache["fwupdate"].candidate pool_parsed = urlparse(fwupdate_efi.uri) dists_dir = "/dists/%s/main/uefi/fwupdate-%s/current/" % ( fwupdate_efi.origins[0].archive, fwupdate_efi.architecture) for base in ( "fwup%s.efi.signed" %efi_name, "version", ): dists_parsed = list(pool_parsed) dists_parsed[2] = re.sub(r"/pool/.*", dists_dir + base, dists_parsed[2]) dists_uri = urlunparse(dists_parsed) print("Downloading %s ..." % dists_uri) with urlopen(dists_uri) as dists, open(base, "wb") as out: shutil.copyfileobj(dists, out) fwupdate-signed-1.11/Makefile0000664000000000000000000000103312673574216013064 0ustar include /usr/share/dpkg/default.mk EFI_NAME := UNKNOWN-EFI-NAME ifeq ($(DEB_HOST_ARCH),amd64) EFI_NAME := x64 endif ifeq ($(DEB_HOST_ARCH),i386) EFI_NAME := ia32 endif ifeq ($(DEB_HOST_ARCH),arm64) EFI_NAME := aa64 endif ifeq ($(DEB_HOST_ARCH),armhf) EFI_NAME := arm endif SIGNED := \ fwup$(EFI_NAME).efi.signed \ $(NULL) all: $(SIGNED) $(SIGNED): ./download-fwupdate install: $(SIGNED) install -d $(DESTDIR)/usr/lib/fwupdate install -m0644 $(SIGNED) version \ $(DESTDIR)/usr/lib/fwupdate/ clean: rm -f $(SIGNED) version fwupdate-signed-1.11/debian/0000775000000000000000000000000012673631501012640 5ustar fwupdate-signed-1.11/debian/rules0000775000000000000000000000130212673573602013723 0ustar #! /usr/bin/make -f include /usr/share/dpkg/default.mk EFIDIR ?= $(shell dpkg-vendor --query vendor | awk '{ print tolower($$0) }') %: dh $@ destdir := debian/fwupdate-signed docdir := $(destdir)/usr/share/doc/fwupdate-signed override_dh_installchangelogs: dh_installchangelogs # Quieten lintian, which otherwise gets confused by our odd version # number. ln $(docdir)/changelog $(docdir)/changelog.Debian override_dh_gencontrol: dh_gencontrol -- -v$(DEB_VERSION)+$(shell cat version) \ -Vfwupdate:Version=$(shell cat version) override_dh_auto_install: sed 's,#EFIDIR#,$(EFIDIR),' \ debian/fwupdate-signed.postrm.in > debian/fwupdate-signed.postrm dh_auto_install --destdir=$(destdir) fwupdate-signed-1.11/debian/control0000664000000000000000000000403412673631507014252 0ustar Source: fwupdate-signed Section: utils Priority: optional Maintainer: Ubuntu Developers Build-Depends: debhelper (>= 9), python3, python3-apt, fwupdate (>= 0.5-2ubuntu4) Standards-Version: 3.9.6 Package: fwupdate-signed Architecture: amd64 i386 armhf arm64 Multi-Arch: foreign Depends: ${misc:Depends}, fwupdate (= ${fwupdate:Version}) Recommends: secureboot-db Built-Using: fwupdate (= ${fwupdate:Version}) Breaks: fwupdate-amd64-signed (<<1.9), fwupdate-i386-signed (<<1.9), fwupdate-arm64-signed (<<1.9), fwupdate-armhf-signed (<<1.9) Replaces: fwupdate-amd64-signed (<<1.9), fwupdate-i386-signed (<<1.9), fwupdate-arm64-signed (<<1.9), fwupdate-armhf-signed (<<1.9) Description: Linux Firmware Updater EFI signed binary fwupdate provides functionality to update system firmware. It has been initially designed to update firmware using UEFI capsule updates, but it is designed to be extensible to other firmware update standards. . This package contains a version of the fwupdate binary signed with Canonical's UEFI signing key. Package: fwupdate-amd64-signed Architecture: amd64 Depends: ${misc:Depends}, fwupdate-signed Description: Linux Firmware Updater EFI binary (EFI-AMD64 version, signed) This is a transitional package to move to a common fwupdate-signed package Package: fwupdate-i386-signed Architecture: i386 Depends: ${misc:Depends}, fwupdate-signed Description: Linux Firmware Updater EFI binary (EFI-I386 version, signed) This is a transitional package to move to a common fwupdate-signed package Package: fwupdate-arm64-signed Architecture: arm64 Depends: ${misc:Depends}, fwupdate-signed Description: Linux Firmware Updater EFI binary (EFI-ARM64 version, signed) This is a transitional package to move to a common fwupdate-signed package Package: fwupdate-armhf-signed Architecture: armhf Depends: ${misc:Depends}, fwupdate (= ${fwupdate:Version}) Description: Linux Firmware Updater EFI binary (EFI-ARMHF version, signed) This is a transitional package to move to a common fwupdate-signed package fwupdate-signed-1.11/debian/fwupdate-signed.postrm.in0000664000000000000000000000271212673573362017615 0ustar #!/bin/sh # postrm script for fwupdate-signed # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in purge) EFIDIR=#EFIDIR# if [ "${DPKG_MAINTSCRIPT_ARCH}" = "amd64" ]; then EFI_NAME=x64 elif [ "${DPKG_MAINTSCRIPT_ARCH}" = "i386" ]; then EFI_NAME=ia32 elif [ "${DPKG_MAINTSCRIPT_ARCH}" = "arm64" ]; then EFI_NAME=aa64 elif [ "${DPKG_MAINTSCRIPT_ARCH}" = "armhf" ]; then EFI_NAME=arm fi #remove binary that was installed by us, but if fwupdate #unsigned is still installed, reinstall that binary rm -f /boot/efi/EFI/$EFIDIR/fwup$EFI_NAME.efi if [ -f /usr/lib/fwupdate/install ]; then /usr/lib/fwupdate/install fi ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 fwupdate-signed-1.11/debian/fwupdate-signed.postinst0000664000000000000000000000016512673525527017547 0ustar #!/bin/sh set -e case $1 in configure) /usr/lib/fwupdate/install ;; esac #DEBHELPER# exit 0 fwupdate-signed-1.11/debian/clean0000664000000000000000000000003612673574073013656 0ustar debian/fwupdate-signed.postrm fwupdate-signed-1.11/debian/copyright0000664000000000000000000000146312615033014014566 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: fwupdate Source: https://github.com/rhinstaller/fwupdate Comment: This package exists to download a signed binary from the Ubuntu archive and publish it in .deb format. The actual bootloader source code may be found in the fwupdate source package: 'apt-get source fwupdate'. Files: * Copyright: 2014-2015 Peter Jones License: GPL-2.0+ Files: debian/* Copyright: 2015 Canonical Ltd. License: GPL-3+ License: GPL-2.0+ On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". License: GPL-3+ On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". fwupdate-signed-1.11/debian/changelog0000664000000000000000000000503712673631501014517 0ustar fwupdate-signed (1.11) xenial; urgency=medium * Really build depends on 0.5-2ubuntu4 -- Mario Limonciello Sun, 20 Mar 2016 18:33:07 -0500 fwupdate-signed (1.10) xenial; urgency=medium * Use DPKG_MAINTSCRIPT_ARCH in postrm to identify architecture instead of dpkg-architecture. * Hardcode EFIDIR into postrm at build time. * Build depends fwupdate 0.5-2ubuntu4 * Drop build-depends on lsb-release -- Mario Limonciello Sun, 20 Mar 2016 14:13:27 -0500 fwupdate-signed (1.9) xenial; urgency=medium * Various arch packages aren't coinstallable (and neither is dependency fwupdate). Move over to fwupdate-signed package for each arch (LP: #1559578) * Add a postrm for fwupdate-signed. * Build depends on fwupdate 0.5-2ubuntu3 -- Mario Limonciello Sun, 20 Mar 2016 10:25:11 -0500 fwupdate-signed (1.8) xenial; urgency=medium * Add support for i386, armhf, arm64. * Add Provides: fwupdate-signed for all arch specific packages. -- Mario Limonciello Fri, 18 Mar 2016 04:33:21 +0800 fwupdate-signed (1.7) xenial; urgency=medium * rebuild against 0.5-2ubuntu2. -- Mario Limonciello Thu, 17 Mar 2016 10:34:50 -0500 fwupdate-signed (1.6) xenial; urgency=medium * debian/control: b-d on 0.5-2ubuntu1 version of fwupdate. -- Mario Limonciello Wed, 16 Mar 2016 02:22:48 -0500 fwupdate-signed (1.5) xenial; urgency=medium * Call the correct script in postinstall. -- Mario Limonciello Tue, 15 Mar 2016 23:06:29 -0500 fwupdate-signed (1.4) xenial; urgency=medium * Rebuild for 0.5-2 release. -- Mario Limonciello Fri, 04 Mar 2016 11:38:14 -0600 fwupdate-signed (1.3) xenial; urgency=medium * Update makefile as well. -- Mario Limonciello Wed, 16 Dec 2015 17:16:48 -0600 fwupdate-signed (1.2) xenial; urgency=medium * Pull the architecture specific signed file names. -- Mario Limonciello Wed, 16 Dec 2015 17:01:02 -0600 fwupdate-signed (1.1) xenial; urgency=medium * New upstream version for fwupdate (0.5-1). * Update debian/control for new version dependency. * Update maintainer. -- Mario Limonciello Wed, 16 Dec 2015 16:12:48 -0600 fwupdate-signed (1.0) xenial; urgency=medium * Initial release. -- Mathieu Trudel-Lapierre Fri, 30 Oct 2015 23:43:29 -0400 fwupdate-signed-1.11/debian/source/0000775000000000000000000000000012615033056014135 5ustar fwupdate-signed-1.11/debian/source/format0000664000000000000000000000001512546577771015370 0ustar 3.0 (native) fwupdate-signed-1.11/debian/compat0000664000000000000000000000000212546577771014057 0ustar 9