grub2-signed-1.34/0000755000000000000000000000000012225707637010632 5ustar grub2-signed-1.34/debian/0000755000000000000000000000000012321760471012044 5ustar grub2-signed-1.34/debian/rules0000755000000000000000000000075712172046332013132 0ustar #! /usr/bin/make -f VERSION := $(shell LC_ALL=C dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2) %: dh $@ docdir := debian/grub-efi-amd64-signed/usr/share/doc/grub-efi-amd64-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$(VERSION)+$(shell cat version) \ -Vgrub2:Version=$(shell cat version) grub2-signed-1.34/debian/copyright0000644000000000000000000000127312172046332013777 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: GNU GRUB Source: http://www.gnu.org/software/grub/ 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 grub2 source package: 'apt-get source grub2'. Files: * Copyright: 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc License: GPL-3+ Files: debian/* Copyright: 2012 Canonical Ltd. License: GPL-3+ License: GPL-3+ On Ubuntu systems the full text of the GNU General Public License can be found in the `/usr/share/common-licenses/GPL-3' file. grub2-signed-1.34/debian/bzr-builddeb.conf0000644000000000000000000000003112172046332015247 0ustar [BUILDDEB] native = True grub2-signed-1.34/debian/grub-efi-amd64-signed.postinst0000644000000000000000000000071312172046332017527 0ustar #! /bin/sh set -e config_item () { if [ -f /etc/default/grub ]; then . /etc/default/grub || return for x in /etc/default/grub.d/*.cfg; do if [ -e "$x" ]; then . "$x" fi done fi eval echo "\$$1" } case $1 in configure) bootloader_id="$(config_item GRUB_DISTRIBUTOR | tr A-Z a-z | \ cut -d' ' -f1)" if [ "$bootloader_id" ] && [ -d "/boot/efi/EFI/$bootloader_id" ]; then grub-install fi ;; esac #DEBHELPER# exit 0 grub2-signed-1.34/debian/source/0000755000000000000000000000000012172046726013350 5ustar grub2-signed-1.34/debian/source/format0000644000000000000000000000001512172046332014550 0ustar 3.0 (native) grub2-signed-1.34/debian/compat0000644000000000000000000000000212172046332013237 0ustar 9 grub2-signed-1.34/debian/control0000644000000000000000000000205012321760451013442 0ustar Source: grub2-signed Section: utils Priority: optional Maintainer: Colin Watson Build-Depends: debhelper (>= 9), lsb-release, python3, python3-apt, grub-efi-amd64-bin (>= 2.02~beta2-9) Standards-Version: 3.9.5 Package: grub-efi-amd64-signed Architecture: linux-amd64 Depends: ${misc:Depends}, grub-efi-amd64 (= ${grub2:Version}) Recommends: secureboot-db Built-Using: grub2 (= ${grub2:Version}) Description: GRand Unified Bootloader, version 2 (EFI-AMD64 version, signed) GRUB is a portable, powerful bootloader. This version of GRUB is based on a cleaner design than its predecessors, and provides the following new features: . - Scripting in grub.cfg using BASH-like syntax. - Support for modern partition maps such as GPT. - Modular generation of grub.cfg via update-grub. Packages providing GRUB add-ons can plug in their own script rules and trigger updates by invoking update-grub. . This package contains a version of GRUB built for use with the EFI-AMD64 architecture, signed with Canonical's UEFI signing key. grub2-signed-1.34/debian/changelog0000644000000000000000000001460312321760471013722 0ustar grub2-signed (1.34) trusty; urgency=medium * Rebuild against grub-efi-amd64 2.02~beta2-9. -- Colin Watson Fri, 11 Apr 2014 13:34:00 +0100 grub2-signed (1.33) trusty; urgency=medium * Rebuild against grub-efi-amd64 2.02~beta2-8. -- Colin Watson Tue, 01 Apr 2014 14:51:06 +0100 grub2-signed (1.32) trusty; urgency=medium * Rebuild against grub-efi-amd64 2.02~beta2-7. -- Colin Watson Wed, 12 Mar 2014 12:57:06 +0000 grub2-signed (1.31) trusty; urgency=medium * Rebuild against grub-efi-amd64 2.02~beta2-6. -- Colin Watson Wed, 29 Jan 2014 12:23:55 +0000 grub2-signed (1.30) trusty; urgency=medium * Rebuild against grub-efi-amd64 2.02~beta2-5. -- Colin Watson Mon, 27 Jan 2014 22:33:57 +0000 grub2-signed (1.29) trusty; urgency=medium * Rebuild against grub-efi-amd64 2.02~beta2-4. * Policy version 3.9.5: no changes required. -- Colin Watson Tue, 21 Jan 2014 13:30:45 +0000 grub2-signed (1.28) trusty; urgency=medium * Rebuild against grub-efi-amd64 2.02~beta2-2. -- Colin Watson Fri, 17 Jan 2014 10:58:39 +0000 grub2-signed (1.27) trusty; urgency=low * Rebuild against grub-efi-amd64 2.00-22. -- Colin Watson Fri, 13 Dec 2013 18:05:34 +0000 grub2-signed (1.26) trusty; urgency=low * Rebuild against grub-efi-amd64 2.00-21. -- Colin Watson Thu, 05 Dec 2013 10:22:02 +0000 grub2-signed (1.25) trusty; urgency=low * Rebuild against grub-efi-amd64 2.00-20. -- Colin Watson Fri, 15 Nov 2013 10:51:43 +0000 grub2-signed (1.24) trusty; urgency=low * Rebuild against grub-efi-amd64 2.00-19ubuntu4. -- Colin Watson Wed, 13 Nov 2013 01:27:49 +0000 grub2-signed (1.23) trusty; urgency=low * Rebuild against grub-efi-amd64 2.00-19ubuntu3 LP: #1242417 -- Rohan Garg Thu, 24 Oct 2013 09:56:34 +0200 grub2-signed (1.22) saucy; urgency=low * Rebuild against grub-efi-amd64 2.00-19ubuntu2. -- Adam Conrad Thu, 10 Oct 2013 23:42:03 -0600 grub2-signed (1.21) saucy; urgency=low * Rebuild against grub-efi-amd64 2.00-19ubuntu2. -- Steve Langasek Thu, 10 Oct 2013 10:33:30 -0700 grub2-signed (1.20) saucy; urgency=low * Rebuild against grub-efi-amd64 2.00-19ubuntu1. -- Colin Watson Thu, 19 Sep 2013 11:01:28 +0100 grub2-signed (1.19) saucy; urgency=low * Rebuild against grub-efi-amd64 2.00-18ubuntu4. * Add grubnetx64.efi.signed. -- Colin Watson Thu, 12 Sep 2013 17:14:41 +0100 grub2-signed (1.18) saucy; urgency=low * Rebuild against grub-efi-amd64 2.00-18ubuntu3. -- Adam Conrad Wed, 11 Sep 2013 15:13:55 -0400 grub2-signed (1.17) saucy; urgency=low * Rebuild against grub-efi-amd64 2.00-18ubuntu1. -- Colin Watson Wed, 28 Aug 2013 12:39:54 +0200 grub2-signed (1.16) saucy; urgency=low * Rebuild against grub-efi-amd64 2.00-17ubuntu1. -- Colin Watson Fri, 16 Aug 2013 09:55:29 +0200 grub2-signed (1.15) saucy; urgency=low * Rebuild against grub-efi-amd64 2.00-15ubuntu2. (LP: #1184297) -- Stéphane Graber Thu, 18 Jul 2013 16:18:49 -0400 grub2-signed (1.14) saucy; urgency=low * Give grub-efi-amd64-signed a strict versioned dependency on the grub-efi-amd64 we're built against to force a paired migration. -- Adam Conrad Mon, 15 Jul 2013 15:23:59 +0100 grub2-signed (1.13) saucy; urgency=low * Rebuild against grub-efi-amd64 2.00-15ubuntu1. -- Adam Conrad Mon, 15 Jul 2013 15:19:15 +0100 grub2-signed (1.12) saucy; urgency=low * Rebuild against grub-efi-amd64 2.00-14ubuntu1. -- Adam Conrad Thu, 09 May 2013 19:21:14 -0600 grub2-signed (1.11) raring; urgency=low * Rebuild against grub-efi-amd64 2.00-12ubuntu1. * Recommend secureboot-db (LP: #1087843). -- Colin Watson Mon, 04 Feb 2013 17:24:58 +0000 grub2-signed (1.10) raring; urgency=low * Rebuild against grub-efi-amd64 2.00-7ubuntu13. -- Colin Watson Wed, 31 Oct 2012 17:00:23 +0000 grub2-signed (1.9) quantal-proposed; urgency=low * Download the signed image from the correct pocket. -- Colin Watson Mon, 15 Oct 2012 06:48:05 +0100 grub2-signed (1.8) quantal; urgency=low * Rebuild against grub-efi-amd64 2.00-7ubuntu11. -- Adam Conrad Sun, 14 Oct 2012 18:18:34 +0100 grub2-signed (1.7) quantal; urgency=low * Rebuild against grub-efi-amd64 2.00-7ubuntu10. -- Colin Watson Fri, 12 Oct 2012 17:17:54 +0100 grub2-signed (1.6) quantal; urgency=low * Rebuild against grub-efi-amd64 2.00-7ubuntu9. -- Colin Watson Fri, 12 Oct 2012 01:18:03 +0100 grub2-signed (1.5) quantal; urgency=low * Drop Depends back to grub-efi-amd64 (>= 2.00-7ubuntu4), which is good enough (grub-install extensions). * Build-depend on a current grub-efi-amd64-bin so that this upload can safely be accepted before grub2/amd64 binaries have published. * Rebuild against grub-efi-amd64 2.00-7ubuntu8. -- Colin Watson Thu, 11 Oct 2012 15:39:00 +0100 grub2-signed (1.4) quantal; urgency=low * Rebuild against grub-efi-amd64 2.00-7ubuntu7. -- Colin Watson Wed, 10 Oct 2012 15:10:36 +0100 grub2-signed (1.3) quantal; urgency=low * Rebuild against grub-efi-amd64 2.00-7ubuntu5. -- Colin Watson Tue, 09 Oct 2012 18:36:18 +0100 grub2-signed (1.2) quantal; urgency=low [ Colin Watson ] * Include gcdx64.efi.signed. * Depend on grub-efi-amd64 so that /etc/default/grub and /boot/grub/grub.cfg are updated. * Run grub-install on configure if appropriate. [ Steve Langasek ] * Adjust makefile so gcdx64.efi.signed actually gets included in the package, not just downloaded. -- Steve Langasek Mon, 08 Oct 2012 17:05:45 -0700 grub2-signed (1.1) quantal; urgency=low * Add a Built-Using field, per policy 3.9.4. -- Colin Watson Fri, 21 Sep 2012 23:57:13 +0100 grub2-signed (1.0) quantal; urgency=low * Initial release. -- Colin Watson Fri, 21 Sep 2012 17:23:18 +0100 grub2-signed-1.34/Makefile0000644000000000000000000000047012214364113012255 0ustar SIGNED := \ grubx64.efi.signed \ gcdx64.efi.signed \ grubnetx64.efi.signed all: $(SIGNED) $(SIGNED): ./download-grub2 install: $(SIGNED) install -d $(DESTDIR)/usr/lib/grub/x86_64-efi-signed install -m0644 $(SIGNED) version \ $(DESTDIR)/usr/lib/grub/x86_64-efi-signed/ clean: rm -f $(SIGNED) version grub2-signed-1.34/download-grub20000755000000000000000000000145712214364157013407 0ustar #! /usr/bin/python3 import re import shutil from urllib.parse import urlparse, urlunparse from urllib.request import urlopen import apt cache = apt.Cache() grub_efi_amd64 = cache["grub-efi-amd64"].candidate pool_parsed = urlparse(grub_efi_amd64.uri) dists_dir = "/dists/%s/main/uefi/grub2-%s/current/" % ( grub_efi_amd64.origins[0].archive, grub_efi_amd64.architecture) for base in ( "gcdx64.efi.signed", "grubx64.efi.signed", "grubnetx64.efi.signed", "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)