debian/0000775000000000000000000000000012703751065007176 5ustar debian/libdfu1.install0000664000000000000000000000010012700742331012074 0ustar usr/lib/*/libdfu*.so.* usr/lib/*/girepository-1.0/Dfu*.typelib debian/rules0000775000000000000000000000156112703751040010252 0ustar #!/usr/bin/make -f # -*- makefile -*- #GPGME needs this for proper building on 32 bit archs ifeq "$(DEB_HOST_ARCH_BITS)" "32" export DEB_CFLAGS_MAINT_APPEND = -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE endif export COLORHUG="--disable-colorhug" COLORHUG_VERSION=$(shell dpkg-query -W libcolorhug-dev | awk '{ print $$2 }' | sed 's,-.*,,') ifeq "1.2.12" "$(word 1, $(sort 1.2.12 $(COLORHUG_VERSION)))" export COLORHUG="--enable-colorhug" endif %: dh $@ --with autoreconf override_dh_autoreconf: NOCONFIGURE=1 dh_autoreconf ./autogen.sh override_dh_auto_configure: if pkg-config --exists fwup; then \ export UEFI="--enable-uefi"; \ else \ export UEFI="--disable-uefi"; \ fi; \ dh_auto_configure -- --with-systemdunitdir=/lib/systemd/system \ $(COLORHUG) $$UEFI override_dh_install: find debian/tmp/usr -name "*a" | xargs rm -f dh_install --fail-missing debian/control0000664000000000000000000001105312703751052010575 0ustar Source: fwupd Priority: optional Maintainer: Debian EFI Uploaders: Steve McIntyre <93sam@debian.org>, Daniel Jared Dominguez , Matthias Klumpp , Mario Limonciello Build-Depends: debhelper (>= 9.0.0), dh-autoreconf, docbook-utils, gettext, intltool, libappstream-glib-dev (>= 0.5.10), libarchive-dev, libcolord-dev (>= 1.0.0), libfwup-dev [amd64 arm64 armhf armel i386], libgcab-dev, gcab, libgirepository1.0-dev, libglib2.0-dev (>= 2.45.8), libgpgme11-dev, gnupg2 (>= 2.1.0), libtool-bin, libgudev-1.0-dev, udev, libgusb-dev (>= 0.2.2), libpolkit-gobject-1-dev (>= 0.103), libsqlite3-dev, pkg-config, libsoup2.4-dev, gtk-doc-tools, libcolorhug-dev, valgrind Standards-Version: 3.9.7 Section: admin Homepage: https://github.com/hughsie/fwupd Vcs-Git: git://anonscm.debian.org/uefi/fwupd.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=uefi/fwupd.git Package: libfwupd1 Architecture: linux-any Depends: ${misc:Depends}, ${shlibs:Depends} Multi-Arch: same Description: Firmware update daemon library fwupd is a daemon to allow session software to update device firmware. You can either use a GUI software manager like GNOME Software to view and apply updates, the command-line tool or the system D-Bus interface directly. Currently, firmware updates using the UEFI capsule format and for the ColorHug are supported. More formats may be supported in the future. See for details . This package provides the library used by the daemon. Package: libdfu1 Architecture: linux-any Depends: ${misc:Depends}, ${shlibs:Depends} Multi-Arch: same Description: Firmware update daemon library for DFU support fwupd is a daemon to allow session software to update device firmware. You can either use a GUI software manager like GNOME Software to view and apply updates, the command-line tool or the system D-Bus interface directly. Currently, firmware updates using the UEFI capsule format and for the ColorHug are supported. More formats may be supported in the future. See for details . This package provides the library used by the daemon for DFU support. Package: fwupd Architecture: linux-any Depends: ${misc:Depends}, ${shlibs:Depends} Recommends: fwupdate Multi-Arch: foreign Description: Firmware update daemon fwupd is a daemon to allow session software to update device firmware. You can either use a GUI software manager like GNOME Software to view and apply updates, the command-line tool or the system D-Bus interface directly. Currently, firmware updates using the UEFI capsule format and for the ColorHug are supported. More formats may be supported in the future. See for details Package: libfwupd-dev Architecture: linux-any Multi-Arch: same Depends: libfwupd1 (= ${binary:Version}), ${misc:Depends} Breaks: fwupd-dev (<< 0.5.4-2~) Replaces: fwupd-dev (<< 0.5.4-2~) Section: libdevel Description: development files for libfwupd fwupd is a daemon to allow session software to update device firmware. You can either use a GUI software manager like GNOME Software to view and apply updates, the command-line tool or the system D-Bus interface directly. Currently, firmware updates using the UEFI capsule format and for the ColorHug are supported. More formats may be supported in the future. See for details . This package provides the development files for libfwupd Package: libdfu-dev Architecture: linux-any Multi-Arch: same Depends: libdfu1 (= ${binary:Version}), ${misc:Depends} Section: libdevel Description: development files for libdfu fwupd is a daemon to allow session software to update device firmware. You can either use a GUI software manager like GNOME Software to view and apply updates, the command-line tool or the system D-Bus interface directly. Currently, firmware updates using the UEFI capsule format and for the ColorHug are supported. More formats may be supported in the future. See for details . This package provides the development files for libdfu debian/libfwupd-dev.install0000664000000000000000000000021212700742331013142 0ustar usr/include/fwupd-1/fwupd.h usr/include/fwupd-1/libfwupd usr/lib/*/libfwupd*.so usr/lib/*/pkgconfig/fwupd.pc usr/share/gir-1.0/Fwupd*.gir debian/README.source0000664000000000000000000000042012700742331011342 0ustar fwupd for Debian ---------------- To build from the git tree, run: git-buildpackage -us -uc -S Then, if using sbuild, you can use something like: sbuild -s -c sid-amd64 -d unstable -- Daniel Jared Dominguez Thu, 21 May 2015 13:44:16 -0500 debian/libfwupd1.symbols0000664000000000000000000000706312700742331012504 0ustar libfwupd.so.1 libfwupd1 #MINVER# fwupd_client_clear_results@Base 0.7.0 fwupd_client_get_details@Base 0.7.0 fwupd_client_get_devices@Base 0.7.0 fwupd_client_get_results@Base 0.7.0 fwupd_client_get_type@Base 0.7.0 fwupd_client_get_updates@Base 0.7.0 fwupd_client_install@Base 0.7.0 fwupd_client_new@Base 0.7.0 fwupd_client_unlock@Base 0.7.0 fwupd_client_update_metadata@Base 0.7.0 fwupd_client_verify@Base 0.7.0 fwupd_device_flag_from_string@Base 0.7.0 fwupd_device_flag_to_string@Base 0.7.0 fwupd_error_from_string@Base 0.7.0 fwupd_error_quark@Base 0.6.3 fwupd_error_to_string@Base 0.7.0 fwupd_result_add_device_flag@Base 0.7.0 fwupd_result_get_device_checksum@Base 0.7.0 fwupd_result_get_device_checksum_kind@Base 0.7.0 fwupd_result_get_device_created@Base 0.7.0 fwupd_result_get_device_description@Base 0.7.0 fwupd_result_get_device_flags@Base 0.7.0 fwupd_result_get_device_id@Base 0.7.0 fwupd_result_get_device_modified@Base 0.7.0 fwupd_result_get_device_name@Base 0.7.0 fwupd_result_get_device_provider@Base 0.7.0 fwupd_result_get_device_vendor@Base 0.7.0 fwupd_result_get_device_version@Base 0.7.0 fwupd_result_get_device_version_lowest@Base 0.7.0 fwupd_result_get_guid@Base 0.7.0 fwupd_result_get_type@Base 0.7.0 fwupd_result_get_update_checksum@Base 0.7.0 fwupd_result_get_update_checksum_kind@Base 0.7.0 fwupd_result_get_update_description@Base 0.7.0 fwupd_result_get_update_error@Base 0.7.0 fwupd_result_get_update_filename@Base 0.7.0 fwupd_result_get_update_homepage@Base 0.7.0 fwupd_result_get_update_id@Base 0.7.0 fwupd_result_get_update_license@Base 0.7.0 fwupd_result_get_update_name@Base 0.7.0 fwupd_result_get_update_size@Base 0.7.0 fwupd_result_get_update_state@Base 0.7.0 fwupd_result_get_update_summary@Base 0.7.0 fwupd_result_get_update_trust_flags@Base 0.7.0 fwupd_result_get_update_uri@Base 0.7.0 fwupd_result_get_update_vendor@Base 0.7.0 fwupd_result_get_update_version@Base 0.7.0 fwupd_result_has_device_flag@Base 0.7.0 fwupd_result_new@Base 0.7.0 fwupd_result_new_from_data@Base 0.7.0 fwupd_result_set_device_checksum@Base 0.7.0 fwupd_result_set_device_checksum_kind@Base 0.7.0 fwupd_result_set_device_created@Base 0.7.0 fwupd_result_set_device_description@Base 0.7.0 fwupd_result_set_device_flags@Base 0.7.0 fwupd_result_set_device_id@Base 0.7.0 fwupd_result_set_device_modified@Base 0.7.0 fwupd_result_set_device_name@Base 0.7.0 fwupd_result_set_device_provider@Base 0.7.0 fwupd_result_set_device_vendor@Base 0.7.0 fwupd_result_set_device_version@Base 0.7.0 fwupd_result_set_device_version_lowest@Base 0.7.0 fwupd_result_set_guid@Base 0.7.0 fwupd_result_set_update_checksum@Base 0.7.0 fwupd_result_set_update_checksum_kind@Base 0.7.0 fwupd_result_set_update_description@Base 0.7.0 fwupd_result_set_update_error@Base 0.7.0 fwupd_result_set_update_filename@Base 0.7.0 fwupd_result_set_update_homepage@Base 0.7.0 fwupd_result_set_update_id@Base 0.7.0 fwupd_result_set_update_license@Base 0.7.0 fwupd_result_set_update_name@Base 0.7.0 fwupd_result_set_update_size@Base 0.7.0 fwupd_result_set_update_state@Base 0.7.0 fwupd_result_set_update_summary@Base 0.7.0 fwupd_result_set_update_trust_flags@Base 0.7.0 fwupd_result_set_update_uri@Base 0.7.0 fwupd_result_set_update_vendor@Base 0.7.0 fwupd_result_set_update_version@Base 0.7.0 fwupd_result_to_data@Base 0.7.0 fwupd_result_to_string@Base 0.7.0 fwupd_status_from_string@Base 0.6.3 fwupd_status_to_string@Base 0.6.3 fwupd_trust_flag_from_string@Base 0.7.0 fwupd_trust_flag_to_string@Base 0.7.0 fwupd_update_state_from_string@Base 0.7.0 fwupd_update_state_to_string@Base 0.7.0 debian/gbp.conf0000664000000000000000000000015512703751052010612 0ustar [DEFAULT] debian-branch = ubuntu upstream-tag = %(version)s [buildpackage] sign-tags = True dist = unstable debian/fwupd.pkla0000664000000000000000000000020712700742331011164 0ustar [Call internal fwupd actions] Identity=unix-group:admin;unix-group:sudo Action=org.freedesktop.fwupd.update-internal ResultActive=yes debian/docs0000664000000000000000000000000512700742331010035 0ustar NEWS debian/libfwupd1.install0000664000000000000000000000010112700742331012444 0ustar usr/lib/*/libfwup*.so.* usr/lib/*/girepository-1.0/Fwup*.typelib debian/fwupd.install0000664000000000000000000000050312700742331011702 0ustar usr/bin/dfu-tool usr/bin/fwupdmgr etc/* usr/share/app-info/* usr/share/dbus-1/* usr/share/polkit-1/* usr/share/locale usr/lib/*/fwupd usr/share/man/man1/* lib/systemd/system/* var/lib/fwupd lib/udev/rules.d/* data/fwupd.conf etc debian/fwupd.pkla /var/lib/polkit-1/localauthority/10-vendor.d usr/lib/*/fwupd-plugins-*/*.so debian/clean0000664000000000000000000000003312700742331010170 0ustar gtk-doc.make m4/gtk-doc.m4 debian/watch0000664000000000000000000000035512700742331010223 0ustar # You can run the "uscan" command to check for upstream updates and more. # See uscan(1) for format version=3 opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/fwupd-$1\.tar\.gz/ \ https://github.com/hughsie/fwupd/tags .*/v?(\d\S*)\.tar\.gz debian/libdfu1.symbols0000664000000000000000000001023312703751052012131 0ustar libdfu.so.1 libdfu1 #MINVER# dfu_cipher_kind_to_string@Base 0.6.3 dfu_context_enumerate@Base 0.6.3 dfu_context_get_device_by_platform_id@Base 0.6.3 dfu_context_get_device_by_vid_pid@Base 0.6.3 dfu_context_get_device_default@Base 0.6.3 dfu_context_get_devices@Base 0.6.3 dfu_context_get_timeout@Base 0.6.3 dfu_context_get_type@Base 0.6.3 dfu_context_new@Base 0.6.3 dfu_context_set_timeout@Base 0.6.3 dfu_device_abort@Base 0.6.3 dfu_device_attach@Base 0.6.3 dfu_device_can_download@Base 0.6.3 dfu_device_can_upload@Base 0.6.3 dfu_device_clear_status@Base 0.6.3 dfu_device_close@Base 0.6.3 dfu_device_detach@Base 0.6.3 dfu_device_download@Base 0.6.3 dfu_device_error_fixup@Base 0.6.3 dfu_device_get_display_name@Base 0.6.3 dfu_device_get_download_timeout@Base 0.6.3 dfu_device_get_interface@Base 0.6.3 dfu_device_get_mode@Base 0.6.3 dfu_device_get_platform_id@Base 0.6.3 dfu_device_get_quirks_as_string@Base 0.6.3 dfu_device_get_runtime_pid@Base 0.6.3 dfu_device_get_runtime_release@Base 0.6.3 dfu_device_get_runtime_vid@Base 0.6.3 dfu_device_get_state@Base 0.6.3 dfu_device_get_status@Base 0.6.3 dfu_device_get_target_by_alt_name@Base 0.6.3 dfu_device_get_target_by_alt_setting@Base 0.6.3 dfu_device_get_targets@Base 0.6.3 dfu_device_get_timeout@Base 0.6.3 dfu_device_get_transfer_size@Base 0.6.3 dfu_device_get_type@Base 0.6.3 dfu_device_get_usb_dev@Base 0.6.3 dfu_device_has_attribute@Base 0.6.3 dfu_device_has_dfuse_support@Base 0.6.3 dfu_device_has_quirk@Base 0.6.3 dfu_device_new@Base 0.6.3 dfu_device_open@Base 0.6.3 dfu_device_refresh@Base 0.6.3 dfu_device_reset@Base 0.6.3 dfu_device_set_new_usb_dev@Base 0.6.3 dfu_device_set_timeout@Base 0.6.3 dfu_device_set_transfer_size@Base 0.6.3 dfu_device_upload@Base 0.6.3 dfu_device_wait_for_replug@Base 0.6.3 dfu_element_from_dfuse@Base 0.6.3 dfu_element_get_address@Base 0.6.3 dfu_element_get_contents@Base 0.6.3 dfu_element_get_type@Base 0.6.3 dfu_element_new@Base 0.6.3 dfu_element_set_address@Base 0.6.3 dfu_element_set_contents@Base 0.6.3 dfu_element_set_target_size@Base 0.6.3 dfu_element_to_dfuse@Base 0.6.3 dfu_element_to_string@Base 0.6.3 dfu_error_quark@Base 0.6.3 dfu_firmware_add_image@Base 0.6.3 dfu_firmware_format_to_string@Base 0.6.3 dfu_firmware_get_cipher_kind@Base 0.6.3 dfu_firmware_get_format@Base 0.6.3 dfu_firmware_get_image@Base 0.6.3 dfu_firmware_get_image_by_name@Base 0.6.3 dfu_firmware_get_image_default@Base 0.6.3 dfu_firmware_get_images@Base 0.6.3 dfu_firmware_get_metadata@Base 0.6.3 dfu_firmware_get_pid@Base 0.6.3 dfu_firmware_get_release@Base 0.6.3 dfu_firmware_get_size@Base 0.6.3 dfu_firmware_get_type@Base 0.6.3 dfu_firmware_get_vid@Base 0.6.3 dfu_firmware_new@Base 0.6.3 dfu_firmware_parse_data@Base 0.6.3 dfu_firmware_parse_file@Base 0.6.3 dfu_firmware_remove_metadata@Base 0.6.3 dfu_firmware_set_format@Base 0.6.3 dfu_firmware_set_metadata@Base 0.6.3 dfu_firmware_set_pid@Base 0.6.3 dfu_firmware_set_release@Base 0.6.3 dfu_firmware_set_vid@Base 0.6.3 dfu_firmware_to_string@Base 0.6.3 dfu_firmware_write_data@Base 0.6.3 dfu_firmware_write_file@Base 0.6.3 dfu_image_add_element@Base 0.6.3 dfu_image_from_dfuse@Base 0.6.3 dfu_image_get_alt_setting@Base 0.6.3 dfu_image_get_element@Base 0.6.3 dfu_image_get_elements@Base 0.6.3 dfu_image_get_name@Base 0.6.3 dfu_image_get_size@Base 0.6.3 dfu_image_get_type@Base 0.6.3 dfu_image_new@Base 0.6.3 dfu_image_set_alt_setting@Base 0.6.3 dfu_image_set_name@Base 0.6.3 dfu_image_to_dfuse@Base 0.6.3 dfu_image_to_string@Base 0.6.3 dfu_mode_to_string@Base 0.6.3 dfu_sector_get_address@Base 0.6.3 dfu_sector_get_id@Base 0.6.3 dfu_sector_get_size@Base 0.6.3 dfu_sector_get_size_left@Base 0.6.3 dfu_sector_get_type@Base 0.6.3 dfu_sector_has_cap@Base 0.6.3 dfu_sector_new@Base 0.6.3 dfu_sector_to_string@Base 0.6.3 dfu_state_to_string@Base 0.6.3 dfu_status_to_string@Base 0.6.3 dfu_target_download@Base 0.6.3 dfu_target_get_alt_name@Base 0.6.3 dfu_target_get_alt_setting@Base 0.6.3 dfu_target_get_cipher_kind@Base 0.6.3 dfu_target_get_sectors@Base 0.6.3 dfu_target_get_type@Base 0.6.3 dfu_target_new@Base 0.6.3 dfu_target_parse_sectors@Base 0.6.3 dfu_target_upload@Base 0.6.3 dfu_target_upload_chunk@Base 0.6.3 debian/copyright0000664000000000000000000002201612700742331011123 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: fwupd Source: https://github.com/hughsie/fwupd Files: * Copyright: 2015 Richard Hughes License: GPL-2.0+ Files: libfwupd/fwupd* Copyright: 2015 Richard Hughes License: LGPL-2.1+ Files: data/tests/*/firmware.metainfo.xml Copyright: 2015 Richard Hughes License: CC0-1.0 Files: debian/* Copyright: 2015 Daniel Jared Dominguez 2015 Mario Limonciello License: GPL-2.0+ License: GPL-2.0+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package 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 General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . 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: LGPL-2.1+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. . This package 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 General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU Lesser General Public License version 2.1 can be found in "/usr/share/common-licenses/LGPL-2.1". License: CC0-1.0 Creative Commons CC0 1.0 Universal CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER. . Statement of Purpose . The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work"). Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others. For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights. . 1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following: i. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work; ii. moral rights retained by the original author(s) and/or performer(s); iii. publicity and privacy rights pertaining to a person's image or likeness depicted in a Work; iv. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below; v. rights protecting the extraction, dissemination, use and reuse of data in a Work; vi. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and vii. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof. . 2. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose. . 3. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose. . 4. Limitations and Disclaimers. a. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document. b. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law. c. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work. d. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work. debian/patches/0000775000000000000000000000000012703751060010620 5ustar debian/patches/series0000664000000000000000000000015112703751060012032 0ustar polkit_rule_fixes.patch endian_fix.patch 0001-Set-the-system-s-DMI-product-name-as-the-DisplayName.patch debian/patches/0001-Set-the-system-s-DMI-product-name-as-the-DisplayName.patch0000664000000000000000000000345212703751060023704 0ustar From 68a462c9b61bde60a772d70dbac5427aaee7a4f4 Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Thu, 14 Apr 2016 12:02:31 -0500 Subject: [PATCH] Set the system's DMI product name as the DisplayName for UEFI It might not be technically correct if multiple ESRT entries are supported on the system, but these don't currently exist and this is an improvement over it being set to null and showing messages like: "(null) has firmware updates" --- src/fu-provider-uefi.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/fu-provider-uefi.c b/src/fu-provider-uefi.c index 2d69e3e..2087207 100644 --- a/src/fu-provider-uefi.c +++ b/src/fu-provider-uefi.c @@ -300,6 +300,7 @@ static gboolean fu_provider_uefi_coldplug (FuProvider *provider, GError **error) { AsVersionParseFlag parse_flags; + g_autofree gchar *display_name = NULL; fwup_resource *re; gint supported; g_autofree gchar *guid = NULL; @@ -341,6 +342,12 @@ fu_provider_uefi_coldplug (FuProvider *provider, GError **error) return FALSE; } + /* set Display Name to the system for all capsules */ + g_file_get_contents ("/sys/class/dmi/id/product_name", + &display_name, NULL, NULL); + if (display_name != NULL) + g_strchomp (display_name); + /* add each device */ guid = g_strdup ("00000000-0000-0000-0000-000000000000"); parse_flags = fu_provider_uefi_get_version_format (); @@ -368,6 +375,8 @@ fu_provider_uefi_coldplug (FuProvider *provider, GError **error) fu_device_set_id (dev, id); fu_device_set_guid (dev, guid); fu_device_set_version (dev, version); + if (display_name != NULL) + fu_device_set_name(dev, display_name); fwup_get_lowest_supported_fw_version (re, &version_raw); if (version_raw != 0) { version_lowest = as_utils_version_from_uint32 (version_raw, -- 2.7.4 debian/patches/polkit_rule_fixes.patch0000664000000000000000000000112412700742331015364 0ustar Index: fwupd/policy/org.freedesktop.fwupd.rules =================================================================== --- fwupd.orig/policy/org.freedesktop.fwupd.rules 2015-12-08 09:47:14.127561751 -0600 +++ fwupd/policy/org.freedesktop.fwupd.rules 2016-01-07 13:52:53.405728911 -0600 @@ -1,7 +1,7 @@ polkit.addRule(function(action, subject) { if (action.id == "org.freedesktop.fwupd.update-internal" && subject.active == true && subject.local == true && - subject.isInGroup("wheel")) { + subject.isInGroup("sudo")) { return polkit.Result.YES; } }); debian/patches/endian_fix.patch0000664000000000000000000001341412700742331013746 0ustar Index: fwupd/libdfu/dfu-firmware.c =================================================================== --- fwupd.orig/libdfu/dfu-firmware.c 2016-04-03 09:27:07.141061146 -0500 +++ fwupd/libdfu/dfu-firmware.c 2016-04-03 09:27:26.089061053 -0500 @@ -842,7 +842,7 @@ prefix = (DfuSePrefix *) buf; memcpy (prefix->sig, "DfuSe", 5); prefix->ver = 0x01; - prefix->image_size = offset + image_size_total; + prefix->image_size = GUINT32_TO_LE (offset + image_size_total); prefix->targets = priv->images->len; /* copy images */ @@ -877,7 +877,7 @@ dfu_firmware_parse_metadata (DfuFirmware *firmware, const guint8 *data, guint data_length, - guint32 footer_size, + guint8 footer_size, GError **error) { guint i; @@ -965,7 +965,6 @@ const gchar *cipher_str; gsize len; guint32 crc_new; - guint32 size; guint8 *data; g_autoptr(GBytes) contents = NULL; @@ -974,7 +973,8 @@ g_return_val_if_fail (error == NULL || *error == NULL, FALSE); /* sanity check */ - g_assert_cmpint(sizeof(DfuSePrefix), ==, 11); + g_assert_cmpint (sizeof(DfuFirmwareFooter), ==, 16); + g_assert_cmpint (sizeof(DfuSePrefix), ==, 11); /* set defaults */ priv->vid = 0xffff; @@ -993,7 +993,7 @@ } /* check for DFU signature */ - ftr = (DfuFirmwareFooter *) &data[len-sizeof(DfuFirmwareFooter)]; + ftr = (DfuFirmwareFooter *) &data[len - sizeof(DfuFirmwareFooter)]; if (memcmp (ftr->sig, "UFD", 3) != 0) { priv->format = DFU_FIRMWARE_FORMAT_RAW; return dfu_firmware_add_binary (firmware, bytes, error); @@ -1033,19 +1033,18 @@ dfu_firmware_set_release (firmware, GUINT16_FROM_LE (ftr->release)); /* check reported length */ - size = GUINT16_FROM_LE (ftr->len); - if (size > len) { + if (ftr->len > len) { g_set_error (error, DFU_ERROR, DFU_ERROR_INTERNAL, "reported firmware size %04x larger than file %04x", - (guint) size, (guint) len); + (guint) ftr->len, (guint) len); return FALSE; } /* parse the optional metadata segment */ if ((flags & DFU_FIRMWARE_PARSE_FLAG_NO_METADATA) == 0) { - if (!dfu_firmware_parse_metadata (firmware, data, len, size, error)) + if (!dfu_firmware_parse_metadata (firmware, data, len, ftr->len, error)) return FALSE; } @@ -1059,7 +1058,7 @@ } /* parse DfuSe prefix */ - contents = g_bytes_new_from_bytes (bytes, 0, len - size); + contents = g_bytes_new_from_bytes (bytes, 0, len - ftr->len); if (priv->format == DFU_FIRMWARE_FORMAT_DFUSE) return dfu_firmware_add_dfuse (firmware, contents, error); @@ -1258,6 +1257,7 @@ const guint8 *data_md; gsize length_bin = 0; gsize length_md = 0; + guint32 crc_new; guint8 *buf; g_autoptr(GBytes) metadata_table = NULL; @@ -1281,9 +1281,10 @@ ftr->pid = GUINT16_TO_LE (priv->pid); ftr->vid = GUINT16_TO_LE (priv->vid); ftr->ver = GUINT16_TO_LE (priv->format); - ftr->len = GUINT16_TO_LE (0x10 + length_md); + ftr->len = sizeof (DfuFirmwareFooter) + length_md; memcpy(ftr->sig, "UFD", 3); - ftr->crc = dfu_firmware_generate_crc32 (buf, length_bin + length_md + 12); + crc_new = dfu_firmware_generate_crc32 (buf, length_bin + length_md + 12); + ftr->crc = GUINT32_TO_LE (crc_new); /* return all data */ return g_bytes_new_take (buf, length_bin + length_md + 0x10); Index: fwupd/libdfu/dfu-image.c =================================================================== --- fwupd.orig/libdfu/dfu-image.c 2016-04-03 09:27:07.141061146 -0500 +++ fwupd/libdfu/dfu-image.c 2016-04-03 09:27:26.089061053 -0500 @@ -147,6 +147,26 @@ } /** + * dfu_image_get_element_default: + * @image: a #DfuImage + * + * Gets the default element. + * + * Return value: (transfer none): element data, or %NULL for invalid + * + * Since: 0.7.1 + **/ +DfuElement * +dfu_image_get_element_default (DfuImage *image) +{ + DfuImagePrivate *priv = GET_PRIVATE (image); + g_return_val_if_fail (DFU_IS_IMAGE (image), NULL); + if (priv->elements->len == 0) + return NULL; + return g_ptr_array_index (priv->elements, 0); +} + +/** * dfu_image_get_alt_setting: * @image: a #DfuImage * @@ -336,6 +356,7 @@ { DfuImagePrivate *priv; DfuSeImagePrefix *im; + guint32 elements; guint32 offset = sizeof(DfuSeImagePrefix); guint j; g_autoptr(DfuImage) image = NULL; @@ -366,12 +387,13 @@ image = dfu_image_new (); priv = GET_PRIVATE (image); priv->alt_setting = im->alt_setting; - if (im->target_named == 0x01) + if (GUINT32_FROM_LE (im->target_named) == 0x01) memcpy (priv->name, im->target_name, 255); /* parse elements */ length -= offset; - for (j = 0; j < im->elements; j++) { + elements = GUINT32_FROM_LE (im->elements); + for (j = 0; j < elements; j++) { guint32 consumed_local; g_autoptr(DfuElement) element = NULL; element = dfu_element_from_dfuse (data + offset, length, @@ -426,11 +448,11 @@ memcpy (im->sig, "Target", 6); im->alt_setting = priv->alt_setting; if (priv->name != NULL) { - im->target_named = 0x01; + im->target_named = GUINT32_TO_LE (0x01); memcpy (im->target_name, priv->name, 255); } - im->target_size = length_total; - im->elements = priv->elements->len; + im->target_size = GUINT32_TO_LE (length_total); + im->elements = GUINT32_TO_LE (priv->elements->len); /* copy data */ for (i = 0; i < element_array->len; i++) { Index: fwupd/libdfu/dfu-image.h =================================================================== --- fwupd.orig/libdfu/dfu-image.h 2016-04-03 09:27:07.141061146 -0500 +++ fwupd/libdfu/dfu-image.h 2016-04-03 09:27:26.089061053 -0500 @@ -53,6 +53,7 @@ GPtrArray *dfu_image_get_elements (DfuImage *image); DfuElement *dfu_image_get_element (DfuImage *image, guint8 idx); +DfuElement *dfu_image_get_element_default (DfuImage *image); guint8 dfu_image_get_alt_setting (DfuImage *image); const gchar *dfu_image_get_name (DfuImage *image); guint32 dfu_image_get_size (DfuImage *image); debian/fwupd.dirs0000664000000000000000000000003012700742331011170 0ustar var/cache/app-info/xmls debian/changelog0000664000000000000000000001126712703751060011052 0ustar fwupd (0.7.0-0ubuntu4) xenial; urgency=medium * Backport UEFI naming to DMI Product Name from master -- Mario Limonciello Thu, 14 Apr 2016 12:17:39 -0500 fwupd (0.7.0-0ubuntu3) xenial; urgency=medium * Backport commits from upstream to fix problems on big endian. * Drop extra patches that are no longer applied * Require test suite passing on all architectures (LP: #1565114) -- Mario Limonciello Sun, 03 Apr 2016 14:02:29 -0500 fwupd (0.7.0-0ubuntu2) xenial; urgency=medium * Don't make test suite failures on big endian architectures fail the build (to be removed later) -- Mario Limonciello Fri, 01 Apr 2016 16:40:03 -0500 fwupd (0.7.0-0ubuntu1) xenial; urgency=medium * New upstream version (LP: #1565042) * Install static app-info file for fwupd * update standards version * Drop alienware version quirk table patch included upstream * Update build-depends to libasppstream-glib-dev 0.5.10 * Add symbols files for libfwupd and libdfu1 * Adjust build depends to ensure building with at least gnupg 2.1.0 * Re-enable test suite * Include plugins not compiled in as providers in install * Use dh_install --fail-missing to catch other things added upstream at build * Use only libtool-bin in build depends * Update headers installed for libdfu-dev * Use correct dpkg-architecture variable to apply -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE. * Update symbols -- Mario Limonciello Fri, 01 Apr 2016 13:33:50 -0500 fwupd (0.6.3-0ubuntu2) xenial; urgency=medium * Merge changes that were dropped from last upload. * Drop patches that were included in 0.6.3 release * Conditionally enable colorhug if a new enough version is available. This will allow for easier backporting in the future * Fix FTBFS on powerpc related to GPGME -- Mario Limonciello Wed, 30 Mar 2016 08:23:50 -0500 fwupd (0.6.3-0ubuntu1) xenial; urgency=medium * New upstream release * debian/control: - Bump build-depends on libappstream-glib-dev * debian/libdfu1.symbols: * debian/libfwupd1.symbols: - Add symbols files -- Robert Ancell Wed, 30 Mar 2016 15:14:56 +1300 fwupd (0.6.2-1ubuntu3) xenial; urgency=medium * Explicitly turn off UEFI if libfwup-dev wasn't installed to fix FTBFS on these other architectures. * Backport unlock support from upstream * Install static app-info file for fwupd -- Mario Limonciello Tue, 29 Mar 2016 17:10:23 -0500 fwupd (0.6.2-1ubuntu2) xenial; urgency=medium * Only build against libfwup-dev on x86 and arm architectures -- Mario Limonciello Tue, 29 Mar 2016 15:44:29 -0500 fwupd (0.6.2-1ubuntu1) xenial; urgency=medium * Enable quirked firmware versions on Alienware as well -- Mario Limonciello Mon, 21 Mar 2016 09:05:51 -0500 fwupd (0.6.2-1) unstable; urgency=medium * New upstream release (0.6.2) - Fixes for Dell HW versions and UEFI get-results. * Set polkit rules to be effective with proper group (Closes: #808832) * Add rules compatible with polkit 0.105. (Closes: #808833) -- Mario Limonciello Mon, 15 Feb 2016 08:37:19 -0600 fwupd (0.6.0-1) unstable; urgency=medium * New upstream release (0.6.0) - Adds support for DFU based flashing. * Generate libdfu* packages for the newly included libdfu support * Update copyright for current source * Rename fwupd-dev to the more conventionally named libfwupd-dev * update appstream-glib version requirement * add gtk-doc-tools to build depends and cleanup after using them. -- Mario Limonciello Tue, 08 Dec 2015 13:05:50 -0600 fwupd (0.5.4-1) unstable; urgency=medium * New upstream release (0.5.4). - Adds support for compiling against fwupdate 0.5. * Fix FTBFS on armhf by passing -D_FILE_OFFSET_BITS=64 as well. -- Mario Limonciello Thu, 03 Dec 2015 10:51:48 -0600 fwupd (0.5.3-2) unstable; urgency=medium * Add build dependency on udev. (Closes: #804279) * Fix hardening flags. -- Mario Limonciello Sat, 07 Nov 2015 11:33:31 -0600 fwupd (0.5.3-1) unstable; urgency=medium * New upstream release (0.5.3) * Drop all patches, now upstream. * debian/control: Update build dependencies for new upstream version. -- Mario Limonciello Thu, 05 Nov 2015 23:23:19 -0600 fwupd (0.1.5-1) unstable; urgency=low * Initial release (Closes: #793446) -- Mario Limonciello Wed, 30 Sep 2015 17:04:40 -0500 debian/libdfu-dev.install0000664000000000000000000000016212700742331012577 0ustar usr/include/libdfu/* usr/include/dfu.h usr/lib/*/libdfu*.so usr/lib/*/pkgconfig/dfu.pc usr/share/gir-1.0/Dfu*.gir debian/README.Debian0000664000000000000000000000037012700742331011230 0ustar fwupd for Debian ---------------- fwupd is still heavily in development. As of this date, the functionality it provides is not yet available on most systems. -- Daniel Jared Dominguez Wed, 20 May 2015 17:16:02 -0500 debian/source/0000775000000000000000000000000012700742331010467 5ustar debian/source/format0000664000000000000000000000001412700742331011675 0ustar 3.0 (quilt) debian/compat0000664000000000000000000000000212700742331010365 0ustar 9