--- matroxset-0.4.orig/debian/control
+++ matroxset-0.4/debian/control
@@ -0,0 +1,18 @@
+Source: matroxset
+Section: misc
+Priority: optional
+Maintainer: Jari Aalto <jari.aalto@cante.net>
+Build-Depends: libncurses5-dev, debhelper (>= 7)
+Standards-Version: 3.8.2
+Vcs-Browser: http://git.debian.org/?p=collab-maint/matroxset.git
+Vcs-Git: git://git.debian.org/git/collab-maint/matroxset.git
+Homepage: http://knihovny.cvut.cz/~vana/matroxfb.html
+
+Package: matroxset
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: switch output modes, including TV out, of Matrox video cards
+ This utility can be used to map heads to outputs, change the output
+ mode to monitor, TV, or digital flat panel, display information about
+ horizontal and vertical blanking, and view or modify a number of card
+ specific controls.
--- matroxset-0.4.orig/debian/pod2man.mk
+++ matroxset-0.4/debian/pod2man.mk
@@ -0,0 +1,62 @@
+# pod2man.mk -- Makefile portion to convert *.pod files to manual pages
+#
+#   Copyright information
+#
+#	Copyright (C) 2008-2009 Jari Aalto
+#
+#   License
+#
+#	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 of the
+#	License, 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 at
+#	Visit <http://www.gnu.org/copyleft/gpl.html>.
+#
+#   Description
+#
+# 	Convert *.pod files to manual pages. Write this to 'install'
+# 	target:
+#
+#       install: build $(MANPAGE)
+
+ifneq (,)
+    This makefile requires GNU Make.
+endif
+
+# This variable *must* be set when calling
+PACKAGE		?= package
+
+# Optional variables to set
+MANSECT		?= 1
+PODCENTER	?= $$(date "+%Y-%m-%d")
+
+# Directories
+MANSRC		=
+MANDEST		= $(MANSRC)
+
+MANPOD		= $(MANSRC)$(PACKAGE).$(MANSECT).pod
+MANPAGE		= $(MANDEST)$(PACKAGE).$(MANSECT)
+
+POD2MAN		= pod2man
+POD2MAN_FLAGS	= --utf8
+
+makeman: $(MANPAGE)
+
+$(MANPAGE): $(MANPOD)
+	# make target - create manual page from a *.pod page
+	podchecker $(MANPOD)
+	LC_ALL= LANG=C $(POD2MAN) $(POD2MAN_FLAGS) \
+		--center="$(PODCENTER)" \
+		--name="$(PACKAGE)" \
+		--section="$(MANSECT)" \
+		$(MANPOD) \
+	| sed 's,[Pp]erl v[0-9.]\+,$(PACKAGE),' \
+	  > $(MANPAGE) && \
+	rm -f pod*.tmp
+
+# End of of Makefile part
--- matroxset-0.4.orig/debian/README.source
+++ matroxset-0.4/debian/README.source
@@ -0,0 +1,32 @@
+matroxset development
+---------------------
+
+Upstream is no longer developing or maintaining the code.
+
+Message-ID: <4A872655.6080201@vandrovec.name>
+Date: Sat, 15 Aug 2009 14:19:17 -0700
+From: Petr Vandrovec <petr@vandrovec.name>
+To: Jari Aalto <jari.aalto@cante.net>
+References: <87d46wlt6w.fsf@jondo.cante.net>
+In-Reply-To: <87d46wlt6w.fsf@jondo.cante.net>
+Subject: Re: MatroxFB - Framebuffer Driver for Matrox Graphics Cards under Linux
+
+Jari Aalto wrote:
+> Hi,
+>
+> I'm the new debian maintainer of 'matroxset' and the page refers to
+> this. Could you confirm is you are you the author of this:
+>
+>     http://knihovny.cvut.cz/~vana/matroxfb.html
+
+Yes.
+
+> Is that the official page? Is there any newer version that could be
+> packages for Debian?
+
+No.  I've stopped using Matrox videocards ~3 years ago, so there was no
+new development since then as I have no way how to test anything.
+
+Petr
+
+ -- Jari Aalto <jari.aalto@cante.net>  Sun, 16 Aug 2009 08:45:57 +0000
--- matroxset-0.4.orig/debian/changelog
+++ matroxset-0.4/debian/changelog
@@ -0,0 +1,38 @@
+matroxset (0.4-3) unstable; urgency=low
+
+  * New maintainer (Closes: #540820).
+  * debian/compat
+    - update to 7.
+  * debian/control
+    - (Homepage): new field.
+    - (Build-Depends): debhelper 7.
+    - (Standards-Version): update to 3.8.2.
+    - (Vcs-*): new fields.
+  * debian/copyright
+    - update to latest format.
+  * debian/rules
+    - upgrade to debhelper 7.
+    - (man): add new target.
+  * debian/watch
+    - new file.
+  * debian/*.1.pod
+    - Convert debian/*.1 manual page into easy-to-maintain *.pod format.
+    - Add proper "SEE ALSO" section.
+  * debian/*.mk
+    - New helper files.
+
+ -- Jari Aalto <jari.aalto@cante.net>  Thu, 13 Aug 2009 06:41:48 +0000
+
+matroxset (0.4-2) unstable; urgency=low
+
+  * New maintainer (Closes: #354625)
+  * Fixed new FSF postal address
+  * New Standards-Version
+
+ -- Matti PÃ¶llÃ¤ <mpo@iki.fi>  Wed, 29 Nov 2006 17:20:10 +0200
+
+matroxset (0.4-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Shaun Jackman <sjackman@debian.org>  Mon, 23 Aug 2004 18:54:26 -0700
--- matroxset-0.4.orig/debian/matroxset.1.pod
+++ matroxset-0.4/debian/matroxset.1.pod
@@ -0,0 +1,103 @@
+#  This is manual page in Perl POD format. Read more at
+#  http://perldoc.perl.org/perlpod.html or run command:
+#
+#     perldoc perlpod | less
+#
+#  To check the syntax:
+#
+#     podchecker *.pod
+#
+#  Create manual page with command:
+#
+#    pod2man PAGE.N.pod > PAGE.N
+
+=pod
+
+=head1 NAME
+
+matroxset - switch the output mode of Matrox video cards
+
+=head1 SYNOPSIS
+
+   matroxset [[OPTION] ...] [VALUE]
+
+=head1 OPTIONS
+
+=over 4
+
+=item B<-c>
+
+Get/set control value.
+
+B<-e>
+
+=item Edit controls interactively.
+
+=item B<-f DEVICE>
+
+Manipulate the frame buffer DEVICE (default is /dev/fb1).
+
+=item B<-l>
+
+List controls
+
+=item B<-m>
+
+Connect this frame buffer to the outputs specified in VALUE (0 is
+none, 1 is primary, 2 is secondary, 4 is digital flat panel; these
+values may be summed for multiple outputs).
+
+=item B<-o OUTPUT>
+
+Set OUTPUT (0 is primary, 1 is secondary, default is 1) to the output
+mode VALUE (128 is monitor, 1 is PAL TV, 2 is NTSC TV).
+
+=item B<-p>
+
+Display information about blanking.
+
+=back
+
+=head1 DESCRIPTION
+
+Output mMatrox card video to television. PAL 50Hz and NTSC 59.94Hz are
+supported, Composite and S-Video output.
+
+Contains two demoprograms, normal and swapped. First selects CRTC1 on
+first output and CRTC2 on second one. Swapped connects CRTC1 to
+secondary head and CRTC2 to primary head. You can use these programs
+if you need text mode or 8bpp mode on TV, as CRTC2 is incapable of
+these modes.
+
+In program call, If VALUE is specified, set the specified option to
+VALUE. If VALUE is not specified, retreive the value of the specified
+option.
+
+For technical information, see C<TV-out on the G450> at
+http://www.bglug.ca/matrox_tvout. See also C<Matrox Marvel>
+tips for G200, G400 at http://marvel.sourceforge.net/. Matrox
+frame buffer headers at /usr/include/linux/matroxfb.h
+
+=head1 ENVIRONMENT
+
+None.
+
+=head1 FILES
+
+None.
+
+=head1 SEE ALSO
+
+directvnc(1) fbdev(4) fbgrab(1) fbset(1) fbterm(1) Xvfb(1)
+
+=head1 AUTHORS
+
+Program was written by Petr Vandrovec <vandrove@vc.cvut.cz>.
+
+This manual page was written by Shaun Jackman <sjackman@debian.org>, for
+the Debian GNU system (but may be used by others). Updated by Jari
+Aalto <jari.aalto@cante.net>. Released under license GNU GPL v2 or (at
+your option) any later version. For more information about license, visit
+<http://www.gnu.org/copyleft/gpl.html>.
+z
+=cut
--- matroxset-0.4.orig/debian/install
+++ matroxset-0.4/debian/install
@@ -0,0 +1 @@
+matroxset usr/bin
--- matroxset-0.4.orig/debian/manpages
+++ matroxset-0.4/debian/manpages
@@ -0,0 +1 @@
+debian/matroxset.1
--- matroxset-0.4.orig/debian/rules
+++ matroxset-0.4/debian/rules
@@ -0,0 +1,64 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+PACKAGE = matroxset
+MANSECT = 1
+
+include debian/debian-vars.mk
+
+man:
+	# convert *.pod to manual page
+	$(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE) \
+	MANSECT=$(MANSECT) makeman
+
+build: build-stamp man
+
+build-stamp:
+	dh_testdir
+	$(MAKE)
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+
+	[ ! -f Makefile ] || $(MAKE) clean
+
+	rm -f build-stamp
+	rm  -f debian/*.$(MANSECT)
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep
+#	dh_installdirs
+
+# Build architecture-independent files.
+binary-indep: build install
+# We have nothing to do.
+
+# Build architecture-dependent files.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs
+	dh_installdocs
+	dh_installexamples
+	dh_install
+	dh_installman  debian/*.$(MANSECT)
+	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 man
--- matroxset-0.4.orig/debian/watch
+++ matroxset-0.4/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://knihovny.cvut.cz/~vana/matroxfb.html .*matroxset-(.*)\.tar\.gz
--- matroxset-0.4.orig/debian/examples
+++ matroxset-0.4/debian/examples
@@ -0,0 +1,3 @@
+normal
+swapit
+swapped
--- matroxset-0.4.orig/debian/copyright
+++ matroxset-0.4/debian/copyright
@@ -0,0 +1,43 @@
+This package was debianized by Shaun Jackman <sjackman@debian.org>
+on Mon 2004-08-23 18:54:26 -0700
+
+It was downloaded from:
+
+    http://knihovny.cvut.cz/~vana/matroxfb.html
+
+    NOTE: 2009-08-16, upstream has abandoned the code 2006
+
+Upstream Author:
+
+    Petr Vandrovec <petr@vandrovec.name>
+    https://launchpad.net/~petr-vmware
+
+Copyright:
+
+    Copyright (C) 2004-2009 Petr Vandrovec
+
+License:
+
+    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 package; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+The Debian packaging is licensed under the GPL version 2 or, at your
+options, any later version (see below); and is:
+
+    Copyright (C) 2009 Jari Aalto <jari.aalto@cante.net>
+    Copyright (C) 2006 Matti Pöllä <mpo@iki.fi>
+    Copyright (C) 2004 Shaun Jackman <sjackman@debian.org>
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL-2'.
--- matroxset-0.4.orig/debian/debian-vars.mk
+++ matroxset-0.4/debian/debian-vars.mk
@@ -0,0 +1,103 @@
+# debian-vars.mk -- Common variables
+#
+#   Copyright
+#
+#	Copyright (C) 2005-2009 Jari Aalto <jari.aalto@cante.net>
+#
+#   License
+#
+#	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 of
+#	the License, 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 at
+#	<http://www.gnu.org/copyleft/gpl.html>.
+#
+#   Description
+#
+#	This is GNU makefile part, that defines common variables and
+#	macros to be used from debian/rules. To install, add this:
+#
+#	    PACKAGE = foo
+#	    include debian/debian-vars.mk
+
+ifneq (,)
+    This makefile requires GNU Make.
+endif
+
+PACKAGE		?= foo
+TOPDIR		:= $(shell pwd)
+PKGDIR		= $(CURDIR)/debian/$(PACKAGE)
+
+SHAREROOTDIR	= $(PKGDIR)/usr/share
+SHAREDIR	= $(SHAREROOTDIR)/$(PACKAGE)
+DOCROOTDIR	= $(SHAREROOTDIR)/doc
+PKGDOCDIR	= $(SHAREROOTDIR)/doc/$(PACKAGE)
+SITELISPDIR	= $(SHAREROOTDIR)/site-lisp
+PKGLISPDIR	= $(SHAREROOTDIR)/site-lisp/$(PACKAGE)
+DESKTOPDIR	= $(SHAREROOTDIR)/applications
+LOCALEDIR	= $(SHAREROOTDIR)/locale
+INFODIR		= $(SHAREROOTDIR)/info
+PIXDIR		= $(SHAREROOTDIR)/pixmaps
+
+MANROOTDIR	= $(SHAREROOTDIR)/man
+MAN1DIR		= $(MANROOTDIR)/man1
+MAN5DIR		= $(MANROOTDIR)/man5
+MAN8DIR		= $(MANROOTDIR)/man8
+
+LIBROOTDIR	= $(PKGDIR)/usr/lib
+LIBDIR		= $(LIBROOTDIR)/$(PACKAGE)
+LIBPERLDIR	= $(LIBROOTDIR)/perl
+
+BINDIR		= $(PKGDIR)/usr/bin
+SBINDIR		= $(PKGDIR)/usr/sbin
+
+INSTALL		?= /usr/bin/install
+INSTALL_DATA	= $(INSTALL) -p -m 644
+INSTALL_SCRIPT	= $(INSTALL) -p -m 755
+INSTALL_BIN	= $(INSTALL) -p -m 755
+INSTALL_DIR	= $(INSTALL) -m 755 -d
+
+#######################################################################
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+#
+# [Add this]
+# config.status: configure
+#	...
+#	./configure --host=$(DEB_HOST_GNU_TYPE) \
+#		    --build=$(DEB_BUILD_GNU_TYPE) \
+
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+#######################################################################
+# [Add this to use multiple CPU cores]
+#	build-stamp:
+#		$(MAKE) $(MAKE_FLAGS)
+
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+    INSTALL_BIN += -s
+endif
+
+CFLAGS		= -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+    CFLAGS += -O0
+else
+    CFLAGS += -O2
+endif
+
+MAKE_FLAGS	=
+CPU_COUNT	:= $(shell fgrep -c processor /proc/cpuinfo 2> /dev/null | \
+		     egrep "^[2-9]$$|^[0-9][0-9]$$")
+
+ifneq ($(CPU_COUNT),)
+    MAKE_FLAGS	+= -j$(CPU_COUNT)
+endif
+
+# End of Makefile part
--- matroxset-0.4.orig/debian/compat
+++ matroxset-0.4/debian/compat
@@ -0,0 +1 @@
+7
