--- intel-gpu-tools-1.16.orig/debian/README.Debian
+++ intel-gpu-tools-1.16/debian/README.Debian
@@ -0,0 +1,7 @@
+intel-gpu-tools for Debian
+--------------------------
+
+The upstream code includes regression tests for the DRM using automake's
+make check system.  Those are not included in this package.
+
+ -- Eric Anholt <eric@anholt.net>  Tue, 19 May 2009 18:23:16 -0700
--- intel-gpu-tools-1.16.orig/debian/README.source
+++ intel-gpu-tools-1.16/debian/README.source
@@ -0,0 +1,58 @@
+This package uses quilt to manage all modifications to the upstream
+source.  Changes are stored in the source package as diffs in
+debian/patches and applied during the build.
+
+To configure quilt to use debian/patches instead of patches, you want
+either to export QUILT_PATCHES=debian/patches in your environment
+or use this snippet in your ~/.quiltrc:
+
+    for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do
+        if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then
+                export QUILT_PATCHES=debian/patches
+                break
+        fi
+    done
+
+To get the fully patched source after unpacking the source package, cd to
+the root level of the source package and run:
+
+    quilt push -a
+
+The last patch listed in debian/patches/series will become the current
+patch.
+
+To add a new set of changes, first run quilt push -a, and then run:
+
+    quilt new <patch>
+
+where <patch> is a descriptive name for the patch, used as the filename in
+debian/patches.  Then, for every file that will be modified by this patch,
+run:
+
+    quilt add <file>
+
+before editing those files.  You must tell quilt with quilt add what files
+will be part of the patch before making changes or quilt will not work
+properly.  After editing the files, run:
+
+    quilt refresh
+
+to save the results as a patch.
+
+Alternately, if you already have an external patch and you just want to
+add it to the build system, run quilt push -a and then:
+
+    quilt import -P <patch> /path/to/patch
+    quilt push -a
+
+(add -p 0 to quilt import if needed). <patch> as above is the filename to
+use in debian/patches.  The last quilt push -a will apply the patch to
+make sure it works properly.
+
+To remove an existing patch from the list of patches that will be applied,
+run:
+
+    quilt delete <patch>
+
+You may need to run quilt pop -a to unapply patches first before running
+this command.
--- intel-gpu-tools-1.16.orig/debian/changelog
+++ intel-gpu-tools-1.16/debian/changelog
@@ -0,0 +1,175 @@
+intel-gpu-tools (1.16-1~bpo8+1) jessie-backports; urgency=medium
+
+  * Rebuild for jessie-backports.
+
+ -- Vincent Cheng <vcheng@debian.org>  Sat, 24 Sep 2016 21:24:00 -0700
+
+intel-gpu-tools (1.16-1) unstable; urgency=medium
+
+  * New upstream release.
+  * Bump libdrm-dev build-dep version to >= 2.4.64. (Closes: #829525)
+
+ -- Vincent Cheng <vcheng@debian.org>  Sun, 11 Sep 2016 12:34:23 -0700
+
+intel-gpu-tools (1.15-1) unstable; urgency=medium
+
+  * New upstream release.
+  * Update to Standards version 3.9.8.
+
+ -- Vincent Cheng <vcheng@debian.org>  Tue, 31 May 2016 17:35:02 -0700
+
+intel-gpu-tools (1.14-1) unstable; urgency=medium
+
+  * New upstream release.
+  * control: Add libxv-dev and python-docutils to build-depends.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Thu, 10 Mar 2016 22:01:06 +0200
+
+intel-gpu-tools (1.13-1) unstable; urgency=medium
+
+  * New upstream release.
+    - Drop unneeded build-dep on swig. (Closes: #803522)
+
+ -- Vincent Cheng <vcheng@debian.org>  Wed, 23 Dec 2015 22:43:34 -0800
+
+intel-gpu-tools (1.12-1) unstable; urgency=medium
+
+  * New upstream release.
+
+ -- Vincent Cheng <vcheng@debian.org>  Mon, 14 Sep 2015 00:14:04 -0700
+
+intel-gpu-tools (1.11-1) unstable; urgency=medium
+
+  * New upstream release.
+    - Add new build-deps: gtk-doc-tools, libunwind-dev
+
+ -- Vincent Cheng <vcheng@debian.org>  Sun, 14 Jun 2015 17:59:40 -0700
+
+intel-gpu-tools (1.10-2) unstable; urgency=medium
+
+  * Fix FTBFS on i386.
+
+ -- Vincent Cheng <vcheng@debian.org>  Wed, 29 Apr 2015 18:19:48 -0700
+
+intel-gpu-tools (1.10-1) unstable; urgency=medium
+
+  * New upstream release.
+    - Fix bashism in tools/intel_gpu_abrt. (Closes: #772339)
+  * Update to Standards version 3.9.6, no changes required.
+
+ -- Vincent Cheng <vcheng@debian.org>  Wed, 29 Apr 2015 16:52:00 -0700
+
+intel-gpu-tools (1.8-1) unstable; urgency=medium
+
+  * New upstream release.
+
+ -- Vincent Cheng <vcheng@debian.org>  Sun, 14 Sep 2014 02:28:45 -0700
+
+intel-gpu-tools (1.7-1) unstable; urgency=medium
+
+  * New upstream release.
+  * Add x11proto-dri2-dev as a build dependency.
+
+ -- Vincent Cheng <vcheng@debian.org>  Tue, 10 Jun 2014 19:47:24 -0700
+
+intel-gpu-tools (1.6-2) unstable; urgency=medium
+
+  * Enable build hardening (bump dh compat level to 9).
+  * Strip debug symbols into separate intel-gpu-tools-dbg package.
+
+ -- Vincent Cheng <vcheng@debian.org>  Tue, 13 May 2014 18:43:34 -0700
+
+intel-gpu-tools (1.6-1) unstable; urgency=medium
+
+  [ Timo Aaltonen ]
+  * New upstream release.
+  * Drop patches
+    - 100_drmtest_exit_not_abort.patch - upstream
+    - 10-Revert-tests-make-testdisplay-non-optional.patch - build testdisplay
+      now.
+    - 20-Revert-Fix-pthread-compiler-flags-to-work-on-Solaris.patch
+      xorg-macros is new enough.
+    - 30-Revert-add-sprite-demo-from-Armin-Reese.patch - libdrm is new enough.
+  * control: Bump libdrm-dev build-dep
+  * control: Add libudev-dev to build-depends.
+  * control: Add libcairo2-dev to build-depends.
+  * rules: Stop renaming forcewaked.
+  * control: Bump standards-version to 3.9.3, no changes.
+  * control: Limit the architectures to amd64, i386.
+  * watch: fix the remote url.
+  * control: Add swig, libxrandr-dev and python3-dev to build-depends.
+  * rules: Remove .la file(s) on dh_install.
+
+  [ Vincent Cheng ]
+  * New upstream release. (1.6)
+    - Fixes "Couldn't map MMIO region: Resource temporarily unavailable".
+      (Closes: #715278)
+    - Install missing intel_lid binary. (Closes: #714424)
+  * Add bison as build-depends.
+  * Update homepage in debian/control.
+  * Add myself to Uploaders.
+  * Update to Standards version 3.9.5, no changes required.
+
+ -- Vincent Cheng <vcheng@debian.org>  Tue, 13 May 2014 01:33:30 -0700
+
+intel-gpu-tools (1.2-1) unstable; urgency=low
+
+  * New upstream release
+  * Add 10-Revert-tests-make-testdisplay-non-optional.patch to
+    avoid unnecessary build deps for the unshipped testdisplay
+  * Add 20-Revert-Fix-pthread-compiler-flags-to-work-on-Solaris.patch
+    to build on current xorg-macros
+  * Add 30-Revert-add-sprite-demo-from-Armin-Reese.patch because
+    it requires newer libdrm than ours
+  * Rename forcewaked to intel_forcewaked (upstream post-release fix)
+
+ -- Tormod Volden <debian.tormod@gmail.com>  Tue, 28 Feb 2012 23:13:05 +0100
+
+intel-gpu-tools (1.1-1) unstable; urgency=low
+
+  [ Cyril Brulebois ]
+  * New upstream release. (Closes: #621721)
+    - Fixes intel_gpu_top MMIO issue. (Closes: #655672)
+  * Make the Debian X Strike Force maintain the package; keeping Eric,
+    Tormod, and myself as Uploaders.
+  * Wrap Build-Depends/Depends.
+  * Bump libdrm-intel1 build-dep.
+  * Update watch file:
+    - Add a reference to upstream git repository.
+    - Switch from tar.bz2 to tar.gz, the former isn't supported by the 1.0
+      source format.
+  * Switch to dh:
+    - Switch debhelper build-dep and compat to 8.
+    - Use dh-autoreconf and quilt as in other X packages.
+    - Use --fail-missing and .install accordingly.
+  * Disable test suite, "make test" checks GPU/drm, not the build
+
+  [ Bryce Harrington ]
+  * control: Add Conflicts with xserver-xorg-video-intel < 2.9.1 due to
+    intel_reg_dumper. (LP: #591203)
+  * Add build dependency on xutils-dev to fix FTBFS.
+  * rules: Add gentarball target to make it easier to update to new git
+    snapshots when needed.
+  * Add 100_drmtest_exit_not_abort.patch to avoid SIGABRT when running
+    benchmarks as non-root.
+
+  [ Tormod Volden ]
+  * control: Add Vcs links
+  * Bump Standards-Version to 3.9.2 (no changes needed)
+
+ -- Cyril Brulebois <kibi@debian.org>  Sat, 11 Feb 2012 18:09:34 +0100
+
+intel-gpu-tools (1.0.2-1) unstable; urgency=low
+
+  * New upstream version 1.0.2
+  * debian/control: Bump to Standards-Version 3.8.3 (no changes needed)
+  * debian/control: Build-dep on libdrm-intel1 >= 2.4.6
+  * debian/control: Add myself as uploader
+
+ -- Tormod Volden <debian.tormod@gmail.com>  Thu, 19 Nov 2009 19:03:26 +0100
+
+intel-gpu-tools (1.0.1-1) unstable; urgency=low
+
+  * Initial release (Closes: #529553)
+
+ -- Eric Anholt <eric@anholt.net>  Fri, 04 Sep 2009 11:51:02 -0700
--- intel-gpu-tools-1.16.orig/debian/compat
+++ intel-gpu-tools-1.16/debian/compat
@@ -0,0 +1 @@
+9
--- intel-gpu-tools-1.16.orig/debian/control
+++ intel-gpu-tools-1.16/debian/control
@@ -0,0 +1,54 @@
+Source: intel-gpu-tools
+Section: x11
+Priority: optional
+Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
+Uploaders:
+ Eric Anholt <eric@anholt.net>,
+ Tormod Volden <debian.tormod@gmail.com>,
+ Cyril Brulebois <kibi@debian.org>,
+ Vincent Cheng <vcheng@debian.org>
+Build-Depends:
+ bison,
+ debhelper (>= 9),
+ dh-autoreconf,
+ gtk-doc-tools,
+ libcairo2-dev,
+ libdrm-dev (>= 2.4.64),
+ libpciaccess-dev (>= 0.10),
+ libudev-dev,
+ libunwind-dev,
+ libxrandr-dev,
+ libxv-dev,
+ pkg-config,
+ python-docutils,
+ quilt,
+ x11proto-dri2-dev,
+ xutils-dev (>= 1:7.6+6)
+Standards-Version: 3.9.8
+Homepage: https://01.org/linuxgraphics/
+Vcs-Git: https://anonscm.debian.org/git/pkg-xorg/app/intel-gpu-tools.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-xorg/app/intel-gpu-tools.git
+
+Package: intel-gpu-tools
+Architecture: amd64 i386
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Conflicts: xserver-xorg-video-intel (<< 2.9.1)
+Description: tools for debugging the Intel graphics driver
+ intel-gpu-tools is a package of tools for debugging the Intel graphics driver,
+ including a GPU hang dumping program, performance monitor, and performance
+ microbenchmarks for regression testing the DRM.
+
+Package: intel-gpu-tools-dbg
+Section: debug
+Priority: extra
+Architecture: amd64 i386
+Depends:
+ intel-gpu-tools (= ${binary:Version}),
+ ${misc:Depends},
+ ${shlibs:Depends}
+Description: tools for debugging the Intel graphics driver (debug)
+ intel-gpu-tools is a package of tools for debugging the Intel graphics driver,
+ including a GPU hang dumping program, performance monitor, and performance
+ microbenchmarks for regression testing the DRM.
+ .
+ This package contains debugging symbols for intel-gpu-tools.
--- intel-gpu-tools-1.16.orig/debian/copyright
+++ intel-gpu-tools-1.16/debian/copyright
@@ -0,0 +1,70 @@
+This package was debianized by Eric Anholt <eric@anholt.net> on
+Tue, 19 May 2009 15:00:52 -0700.
+
+It was downloaded from http://xorg.freedesktop.org/archive/individual/app/
+
+Upstream Authors:
+
+    Eric Anholt <eric@anholt.net>
+    Jesse Barnes <jbarnes@virtuousgeek.org>
+    Keith Whitwell <keith@tungstengraphics.com>
+    Carl Worth <cworth@cworth.org>
+
+Copyright:
+
+    Copyright © 2005 Adam Jackson
+    Copyright © 2007-2009 Intel Corporation
+    Copyright 1998-1999, 2006 Tungsten Graphics, Inc., Cedar Park, Texas.
+
+License:
+The code is covered by the MIT license.  Most of it is under the common form
+that just says "authors and copyright holders":
+
+    Permission is hereby granted, free of charge, to any person obtaining a
+    copy of this software and associated documentation files (the "Software"),
+    to deal in the Software without restriction, including without limitation
+    the rights to use, copy, modify, merge, publish, distribute, sublicense,
+    and/or sell copies of the Software, and to permit persons to whom the
+    Software is furnished to do so, subject to the following conditions:
+
+    The above copyright notice and this permission notice (including the next
+    paragraph) shall be included in all copies or substantial portions of the
+    Software.
+
+    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+    THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+    IN THE SOFTWARE.
+
+Some of the code is also under the MIT license but specifically mentions
+Tungsten Graphics:
+
+    Permission is hereby granted, free of charge, to any person obtaining a
+    copy of this software and associated documentation files (the
+    "Software"), to deal in the Software without restriction, including
+    without limitation the rights to use, copy, modify, merge, publish,
+    distribute, sub license, and/or sell copies of the Software, and to
+    permit persons to whom the Software is furnished to do so, subject to
+    the following conditions:
+
+    The above copyright notice and this permission notice (including the
+    next paragraph) shall be included in all copies or substantial portions
+    of the Software.
+
+    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+    IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+    ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+The Debian packaging is:
+
+    Copyright (C) 2009 Eric Anholt <eric@anholt.net>
+
+and is licensed under the GPL version 3,
+see `/usr/share/common-licenses/GPL-3'.
--- intel-gpu-tools-1.16.orig/debian/docs
+++ intel-gpu-tools-1.16/debian/docs
@@ -0,0 +1 @@
+README
--- intel-gpu-tools-1.16.orig/debian/intel-gpu-tools.install
+++ intel-gpu-tools-1.16/debian/intel-gpu-tools.install
@@ -0,0 +1,4 @@
+usr/bin
+usr/lib
+usr/share/man
+usr/share/intel-gpu-tools
--- intel-gpu-tools-1.16.orig/debian/patches/series
+++ intel-gpu-tools-1.16/debian/patches/series
@@ -0,0 +1 @@
+#placeholder
--- intel-gpu-tools-1.16.orig/debian/rules
+++ intel-gpu-tools-1.16/debian/rules
@@ -0,0 +1,32 @@
+#!/usr/bin/make -f
+
+SOURCE = intel-gpu-tools
+
+# FIXME: building debugger causes FTBFS
+override_dh_auto_configure:
+	dh_auto_configure -- --disable-shader-debugger --disable-dumper \
+	                     --disable-tests --disable-silent-rules
+
+# Disable test suite:
+override_dh_auto_test:
+	echo 'Test suite disabled (does not perform a build check).'
+
+# Install in debian/tmp to retain control through dh_install:
+override_dh_auto_install:
+	dh_auto_install --destdir=debian/tmp
+
+# Forget no-one:
+override_dh_install:
+	find debian/tmp -name '*.la' -delete
+	dh_install --fail-missing
+
+override_dh_strip:
+	dh_strip --dbg-package=intel-gpu-tools-dbg
+
+%:
+	dh $@ --with quilt,autoreconf --builddirectory=build/
+
+# For maintainer use only, generate a tarball:
+gentarball: UV=$(shell dpkg-parsechangelog|awk '/^Version:/ {print $$2}'|sed 's/-.*$$//')
+gentarball:
+	git archive --format=tar upstream-unstable --prefix=$(SOURCE)-$(UV)/ | gzip -9 > ../$(SOURCE)_$(UV).orig.tar.gz
--- intel-gpu-tools-1.16.orig/debian/source/format
+++ intel-gpu-tools-1.16/debian/source/format
@@ -0,0 +1 @@
+1.0
--- intel-gpu-tools-1.16.orig/debian/watch
+++ intel-gpu-tools-1.16/debian/watch
@@ -0,0 +1,3 @@
+#git=git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
+version=3
+http://xorg.freedesktop.org/archive/individual/app/intel-gpu-tools-(.*)\.tar\.gz
