--- atitvout-0.4.orig/debian/atitvout.1
+++ atitvout-0.4/debian/atitvout.1
@@ -0,0 +1,183 @@
+.\" Automatically generated by Pod::Man 2.1801 (Pod::Simple 3.07)
+.\"
+.\" Standard preamble:
+.\" ========================================================================
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.\" Set up some character translations and predefined strings.  \*(-- will
+.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
+.\" double quote, and \*(R" will give a right double quote.  \*(C+ will
+.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
+.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
+.\" nothing in troff, for use with C<>.
+.tr \(*W-
+.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
+.ie n \{\
+.    ds -- \(*W-
+.    ds PI pi
+.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
+.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
+.    ds L" ""
+.    ds R" ""
+.    ds C` ""
+.    ds C' ""
+'br\}
+.el\{\
+.    ds -- \|\(em\|
+.    ds PI \(*p
+.    ds L" ``
+.    ds R" ''
+'br\}
+.\"
+.\" Escape single quotes in literal strings from groff's Unicode transform.
+.ie \n(.g .ds Aq \(aq
+.el       .ds Aq '
+.\"
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
+.\" entries marked with X<> in POD.  Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
+.ie \nF \{\
+.    de IX
+.    tm Index:\\$1\t\\n%\t"\\$2"
+..
+.    nr % 0
+.    rr F
+.\}
+.el \{\
+.    de IX
+..
+.\}
+.\"
+.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
+.\" Fear.  Run.  Save yourself.  No user-serviceable parts.
+.    \" fudge factors for nroff and troff
+.if n \{\
+.    ds #H 0
+.    ds #V .8m
+.    ds #F .3m
+.    ds #[ \f1
+.    ds #] \fP
+.\}
+.if t \{\
+.    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
+.    ds #V .6m
+.    ds #F 0
+.    ds #[ \&
+.    ds #] \&
+.\}
+.    \" simple accents for nroff and troff
+.if n \{\
+.    ds ' \&
+.    ds ` \&
+.    ds ^ \&
+.    ds , \&
+.    ds ~ ~
+.    ds /
+.\}
+.if t \{\
+.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
+.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
+.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
+.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
+.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
+.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
+.\}
+.    \" troff and (daisy-wheel) nroff accents
+.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
+.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
+.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
+.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
+.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
+.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
+.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
+.ds ae a\h'-(\w'a'u*4/10)'e
+.ds Ae A\h'-(\w'A'u*4/10)'E
+.    \" corrections for vroff
+.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
+.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
+.    \" for low resolution devices (crt and lpr)
+.if \n(.H>23 .if \n(.V>19 \
+\{\
+.    ds : e
+.    ds 8 ss
+.    ds o a
+.    ds d- d\h'-1'\(ga
+.    ds D- D\h'-1'\(hy
+.    ds th \o'bp'
+.    ds Th \o'LP'
+.    ds ae ae
+.    ds Ae AE
+.\}
+.rm #[ #] #H #V #F C
+.\" ========================================================================
+.\"
+.IX Title "ATITVOUT 1"
+.TH ATITVOUT 1 "Fri May 29 13:00:32 NZST 2009" "ATITVout " "User Contributed Perl Documentation"
+.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.if n .ad l
+.nh
+.SH "NAME"
+atitvout \- ATI Rage/Radeon TV Out configuration program
+.SH "COMMANDS"
+.IX Header "COMMANDS"
+.Vb 12
+\&    help: Shows this help.
+\&    vbe: Show some information about the VESA BIOS Extension (VBE).
+\&    tvout: Shows some information about the TV Out connector.
+\&    standard: Shows some information about the used TV standard.
+\&    pal*: Sets PAL mode.
+\&    ntsc*: Sets NTSC mode.
+\&    detect: Shows a list of attached displays.
+\&    active: Shows a list of all active displays.
+\&    auto: Activates all attached displays, deactivates all others.
+\&    off: Deactives all displays.
+\&    l,c,t,lc,lt,ct,lct: Activates the specified display, deactivates all
+\&                        others. (l = LCD; c = CRT; t = TV)
+.Ve
+.SH "MISC"
+.IX Header "MISC"
+Use the flags \-f and \-r for forcing Rage Mobility/Rage \s-1LT\s0 resp. Radeon/R128 mode.
+* Not available on Radeon/Rage 128.
+.PP
+You may specifiy more than one command on the command line. An example:
+.PP
+.Vb 1
+\&    atitvout pal auto
+.Ve
+.PP
+This command line automatically enables an attached \s-1TV\s0 and sets it to \s-1PAL\s0 mode.
+.SH "NOTES"
+.IX Header "NOTES"
+\&\s-1PLEASE\s0 \s-1NOTE:\s0 When using the ati driver of XFree 4.1 you should rerun this
+utility always after having changed the screen resolution with C\-A\-+ or C\-A\-\-.
+Otherwise the displays may go nuts.
+.PP
+\&\s-1PLEASE\s0 \s-1NOTE:\s0 Not all \s-1ATI\s0 adapters support all of these commands. Please try them
+all before complaining.
+.PP
+\&\s-1PLEASE\s0 \s-1NOTE:\s0 Most cards do not allow to activate non attached displays. All calls
+to atitvout will fail if you try to enable displays which do not show up in
+\&'atitvout detect'.
+.PP
+\&\s-1PLEASE\s0 \s-1NOTE:\s0 Not all adapters seem to support simultaneously using \s-1TV\s0 and \s-1LCD\s0 from
+within Linux. Thus 'lt' may fail, while 'l' and 't' succeed. In this case 'auto'
+will fail too. In fact 'auto' works only on very few adapters.
+.SH "AUTHOR"
+.IX Header "AUTHOR"
+Author of this manpage is Ola Lundqvist <opal@debian.org>
+.SH "SEE ALSO"
+.IX Header "SEE ALSO"
+http://www.stud.uni\-hamburg.de/users/lennart/projects/atitvout/
--- atitvout-0.4.orig/debian/atitvout.pod
+++ atitvout-0.4/debian/atitvout.pod
@@ -0,0 +1,54 @@
+=head1 NAME
+
+atitvout - ATI Rage/Radeon TV Out configuration program
+
+=head1 COMMANDS
+
+    help: Shows this help.
+    vbe: Show some information about the VESA BIOS Extension (VBE).
+    tvout: Shows some information about the TV Out connector.
+    standard: Shows some information about the used TV standard.
+    pal*: Sets PAL mode.
+    ntsc*: Sets NTSC mode.
+    detect: Shows a list of attached displays.
+    active: Shows a list of all active displays.
+    auto: Activates all attached displays, deactivates all others.
+    off: Deactives all displays.
+    l,c,t,lc,lt,ct,lct: Activates the specified display, deactivates all
+                        others. (l = LCD; c = CRT; t = TV)
+
+=head1 MISC
+
+Use the flags -f and -r for forcing Rage Mobility/Rage LT resp. Radeon/R128 mode.
+* Not available on Radeon/Rage 128.
+
+You may specifiy more than one command on the command line. An example:
+
+    atitvout pal auto
+
+This command line automatically enables an attached TV and sets it to PAL mode.
+
+=head1 NOTES
+
+PLEASE NOTE: When using the ati driver of XFree 4.1 you should rerun this
+utility always after having changed the screen resolution with C-A-+ or C-A--.
+Otherwise the displays may go nuts.
+
+PLEASE NOTE: Not all ATI adapters support all of these commands. Please try them
+all before complaining.
+
+PLEASE NOTE: Most cards do not allow to activate non attached displays. All calls
+to atitvout will fail if you try to enable displays which do not show up in
+'atitvout detect'.
+
+PLEASE NOTE: Not all adapters seem to support simultaneously using TV and LCD from
+within Linux. Thus 'lt' may fail, while 'l' and 't' succeed. In this case 'auto'
+will fail too. In fact 'auto' works only on very few adapters.
+
+=head1 AUTHOR
+
+Author of this manpage is Ola Lundqvist <opal@debian.org>
+
+=head1 SEE ALSO
+
+http://www.stud.uni-hamburg.de/users/lennart/projects/atitvout/
--- atitvout-0.4.orig/debian/changelog
+++ atitvout-0.4/debian/changelog
@@ -0,0 +1,118 @@
+atitvout (0.4-13b1) staging; urgency=medium
+
+  * No-change rebuild for Tanglu.
+
+ -- Jon Severinsson <jon@severinsson.net>  Wed, 30 Jul 2014 17:08:41 +0200
+
+atitvout (0.4-13) unstable; urgency=low
+
+  * Merged atitvout_0.4-12ubuntu1.patch (Closes: #518725 #490746)
+  * Added builddep: quilt, libx86-dev
+  * Updated maintainer email
+  * Bump Standards-Version up to 3.8.1	
+
+ -- Philippe Coval <rzr@gna.org>  Sun, 24 May 2009 22:15:54 +0200
+	
+atitvout (0.4-12ubuntu1) intrepid; urgency=low
+
+  * lrmi-0.6/lrmi.c:
+    - Adjust some constants to match 2.6.26 and newer kernels.
+
+ -- Luca Falavigna <dktrkranz@ubuntu.com>  Sat, 18 Oct 2008 13:11:28 +0200
+
+atitvout (0.4-12) unstable; urgency=low
+
+  * Adopted the package (Closes: #469080)
+  * Updated description
+  * Bump Standards-Version up to 3.8.0
+
+ -- Philippe Coval <rzr@users.sf.net>  Sat, 28 Jun 2008 11:05:08 +0200
+
+atitvout (0.4-11) unstable; urgency=low
+
+  * Bump debhelper compatibility to 6
+  * Remove /usr/bin from debian/dirs
+  * Bump Standards-Version up to 3.7.3 (no other changes)
+
+ -- Francois Marier <francois@debian.org>  Mon, 04 Feb 2008 16:12:06 +1300
+
+atitvout (0.4-10) unstable; urgency=low
+
+  * Add the homepage field in debian/control
+  * Rename the XS-Vcs-* fields to Vcs-*
+
+ -- Francois Marier <francois@debian.org>  Tue, 20 Nov 2007 15:15:31 +1300
+
+atitvout (0.4-9) unstable; urgency=low
+
+  * Refer specifically to GPL-2 in debian/copyright
+  * debian/control: list svn repo (collab-maint)
+
+ -- Francois Marier <francois@debian.org>  Mon, 20 Aug 2007 14:33:31 +1200
+
+atitvout (0.4-8) unstable; urgency=low
+
+  * Remove the strip call from the main Makefile (closes: #436486)
+  * Move the debhelper compat setting to debian/compat
+  * Remove unnecessary commented-out lines in debian/rules
+  * Fix "make clean" lintian warning
+
+ -- Francois Marier <francois@debian.org>  Wed, 08 Aug 2007 06:06:35 +0000
+
+atitvout (0.4-7) unstable; urgency=low
+
+  * Actually add the watch file...
+
+ -- Francois Marier <francois@debian.org>  Tue, 11 Jul 2006 12:05:09 -0400
+
+atitvout (0.4-6) unstable; urgency=low
+
+  * Bump Standards-Version up to 3.7.2 (no changes)
+  * Add watch file
+
+ -- Francois Marier <francois@debian.org>  Mon, 10 Jul 2006 23:28:20 -0400
+
+atitvout (0.4-5) unstable; urgency=low
+
+  * Adopting this package (closes: #364342)
+  * Update FSF address
+  * Update upstream website
+
+ -- Francois Marier <francois@debian.org>  Tue, 25 Apr 2006 17:27:09 -0400
+
+atitvout (0.4-4) unstable; urgency=low
+
+  * Orphaning this package.
+  * Updating standards version to 3.6.2.
+  * Updating to debhelper 4 compatibility.
+
+ -- Ola Lundqvist <opal@debian.org>  Sat, 22 Apr 2006 23:05:26 +0200
+
+atitvout (0.4-3) unstable; urgency=low
+
+  * Fixed test.sh so it have correct atitvout location, closes: #189486.
+  * Updated standards version to 3.6.1.
+
+ -- Ola Lundqvist <opal@debian.org>  Tue, 21 Sep 2004 09:28:00 +0200
+
+atitvout (0.4-2) unstable; urgency=low
+
+  * Added some more documentation to the package, closes: #176440.
+  * Changed the standards version from 2.5.2 to 3.5.8 (no other
+    changes).
+
+ -- Ola Lundqvist <opal@debian.org>  Mon, 13 Jan 2003 19:36:58 +0100
+
+atitvout (0.4-1) unstable; urgency=low
+
+  * New upstream version.
+  * The code is (according to upstream homepage) x86 specific so
+    it should only be built on that arch, closes: #162930.
+
+ -- Ola Lundqvist <opal@debian.org>  Tue,  1 Oct 2002 07:49:27 +0200
+
+atitvout (0.2b-1) unstable; urgency=low
+
+  * Initial release, closes: #162764.
+
+ -- Ola Lundqvist <opal@debian.org>  Mon,  9 Sep 2002 19:38:26 +0200
--- atitvout-0.4.orig/debian/compat
+++ atitvout-0.4/debian/compat
@@ -0,0 +1 @@
+6
--- atitvout-0.4.orig/debian/control
+++ atitvout-0.4/debian/control
@@ -0,0 +1,20 @@
+Source: atitvout
+Section: misc
+Priority: optional
+Maintainer: Philippe Coval <rzr@gna.org>
+Build-Depends: debhelper (>= 6), quilt, libx86-dev
+Standards-Version: 3.8.1
+Homepage: http://0pointer.de/lennart/projects/atitvout/
+Vcs-Svn: svn://svn.debian.org/svn/collab-maint/deb-maint/atitvout/
+Vcs-Browser: http://svn.debian.org/wsvn/collab-maint/deb-maint/atitvout/
+
+Package: atitvout
+Architecture: i386 ia64
+Depends: ${shlibs:Depends}
+Description: ATI TV Out Support Program
+ This utility program may be used for executing several configuration
+ commands for the TV Out connector of ATI Rage Mobility P/M 
+ and some Radeon graphics boards under GNU/Linux on i386.
+ Primarily it is intended to enable TV Out support after bootup and 
+ for switching the used TV standard from NTSC to PAL. 
+ It works either on console or X.
--- atitvout-0.4.orig/debian/copyright
+++ atitvout-0.4/debian/copyright
@@ -0,0 +1,28 @@
+This package was debianized by Ola Lundqvist <opal@debian.org> on
+Mon,  9 Sep 2002 19:38:26 +0200.
+
+It was downloaded from:
+	http://0pointer.de/lennart/projects/atitvout/
+
+Upstream Authors:
+	Lennart Poettering <mz617469@poettering.de>
+	Josh Vanderhoof (developing LRMI)
+
+Copyright:
+
+	Copyright 2002 Lennart Poettering <mz617469@poettering.de>
+
+ This program 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, or (at your option) any later version.
+
+ This program 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 with
+ your Debian GNU system, in /usr/share/common-licenses/GPL-2, or with the
+ Debian GNU atitvout source package as the file COPYING.  If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ MA  02110-1301, USA
--- atitvout-0.4.orig/debian/dirs
+++ atitvout-0.4/debian/dirs
@@ -0,0 +1 @@
+usr/sbin
--- atitvout-0.4.orig/debian/docs
+++ atitvout-0.4/debian/docs
@@ -0,0 +1,3 @@
+README
+mails
+HARDWARE
--- atitvout-0.4.orig/debian/examples
+++ atitvout-0.4/debian/examples
@@ -0,0 +1 @@
+test.sh
--- atitvout-0.4.orig/debian/manpages
+++ atitvout-0.4/debian/manpages
@@ -0,0 +1 @@
+debian/atitvout.1
--- atitvout-0.4.orig/debian/patches/debian
+++ atitvout-0.4/debian/patches/debian
@@ -0,0 +1,62 @@
+--- atitvout-0.4.orig/Makefile
++++ atitvout-0.4/Makefile
+@@ -4,6 +4,7 @@
+ TAR=atitvout-$(VERSION).tar.gz
+ BINARY=atitvout
+ PACKAGE=atitvout
++PREFIX=/usr/local
+ 
+ all: $(BINARY)
+ 
+@@ -11,17 +12,12 @@
+ 	make -C lrmi-0.6
+ 	$(CC) $(OBJS) lrmi-0.6/liblrmi.a -o $(BINARY)
+ 
+-strip: $(BINARY)
+-	@du -h $(BINARY)
+-	strip -s $(BINARY)
+-	@du -h $(BINARY)
+-
+ clean:
+ 	rm -f *.o $(BINARY) *~ README index.html *.tar.gz test.out
+ 	make -C lrmi-0.6 clean
+ 
+-install: strip
+-	install -g root -o root -m 555 $(BINARY) /usr/local/sbin
++install: $(BINARY)
++	install -g root -o root -m 555 $(BINARY) $(DESTDIR)$(PREFIX)/sbin
+ 
+ deinstall:
+ 	rm -f /usr/local/sbin/$(BINARY)
+--- atitvout-0.4.orig/test.sh
++++ atitvout-0.4/test.sh
+@@ -2,7 +2,7 @@
+ 
+ testit () {
+ 	echo "TEST: Running 'atitvout $FLAG $1' ..."
+-	./atitvout $FLAG $1
++	atitvout $FLAG $1
+ 	echo "TEST: ... finished. Return value is $?. Please wait 3 seconds."
+ 	echo
+ 	sleep 3
+--- atitvout-0.4.orig/COPYING
++++ atitvout-0.4/COPYING
+@@ -2,7 +2,7 @@
+ 		       Version 2, June 1991
+ 
+  Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+-     59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
++     51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
+  Everyone is permitted to copy and distribute verbatim copies
+  of this license document, but changing it is not allowed.
+ 
+@@ -305,7 +305,8 @@
+ 
+     You should have received a copy of the GNU General Public License
+     along with this program; if not, write to the Free Software
+-    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
++    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
++    MA  02110-1301, USA
+ 
+ 
+ Also add information on how to contact you by electronic and paper mail.
--- atitvout-0.4.orig/debian/patches/lrmi
+++ atitvout-0.4/debian/patches/lrmi
@@ -0,0 +1,23 @@
+Index: atitvout-trunk/lrmi-0.6/lrmi.c
+===================================================================
+--- atitvout-trunk.orig/lrmi-0.6/lrmi.c	2009-05-24 22:08:40.000000000 +0200
++++ atitvout-trunk/lrmi-0.6/lrmi.c	2009-05-24 22:11:42.000000000 +0200
+@@ -26,6 +26,13 @@
+ 
+ #include "lrmi.h"
+ 
++#if defined(__linux__) && !defined(TF_MASK)
++	#define TF_MASK X86_EFLAGS_TF
++	#define IF_MASK X86_EFLAGS_IF
++	#define VIF_MASK X86_EFLAGS_VIF
++	#define IOPL_MASK X86_EFLAGS_IOPL
++#endif
++
+ #define REAL_MEM_BASE 	((void *)0x10000)
+ #define REAL_MEM_SIZE 	0x10000
+ #define REAL_MEM_BLOCKS 	0x100
+@@ -880,4 +887,3 @@
+ 
+ 	return vret;
+ 	}
+-
--- atitvout-0.4.orig/debian/patches/series
+++ atitvout-0.4/debian/patches/series
@@ -0,0 +1,2 @@
+debian
+lrmi
--- atitvout-0.4.orig/debian/rules
+++ atitvout-0.4/debian/rules
@@ -0,0 +1,89 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+export DDATE=`date`
+
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -g
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	INSTALL_PROGRAM += -s
+endif
+
+include /usr/share/quilt/quilt.make
+
+configure: configure-stamp
+configure-stamp: patch
+	dh_testdir
+	# Add here commands to configure the package.
+
+	touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp 
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE)
+	$(MAKE) README
+	pod2man --section=1 \
+		--release="ATITVout " \
+		--date="$(DDATE)" \
+		debian/atitvout.pod > debian/atitvout.1
+
+	touch build-stamp
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+	# Add here commands to clean up after the build process.
+	[ ! -f Makefile ] || $(MAKE) clean
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	# Add here commands to install the package into debian/atitvout.
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/atitvout PREFIX=/usr
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs
+	dh_installexamples
+	dh_installmenu
+	dh_installcron
+	dh_installman
+	dh_installinfo
+	dh_installchangelogs 
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- atitvout-0.4.orig/debian/watch
+++ atitvout-0.4/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://0pointer.de/lennart/projects/atitvout/ (?:.*/)?atitvout-?_?([\d+\.]+|\d+)\.tar.* debian uupdate
