--- libfs-1.0.4.orig/debian/rules
+++ libfs-1.0.4/debian/rules
@@ -0,0 +1,96 @@
+#!/usr/bin/make -f
+# debian/rules for the Debian libfs package.
+# Copyright © 2004 Scott James Remnant <scott@netsplit.com>
+# Copyright © 2005 Daniel Stone <daniel@fooishbar.org>
+# Copyright © 2005 David Nusinow <dnusinow@debian.org>
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# set this to the name of the main shlib's binary package
+PACKAGE = libfs6
+
+CFLAGS = -Wall -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	INSTALL_PROGRAM += -s
+endif
+
+DEB_HOST_ARCH      ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
+	confflags += --build=$(DEB_HOST_GNU_TYPE)
+else
+	confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
+endif
+
+build: build-arch
+build-indep:
+	# Nothing to do
+build-arch: build-stamp
+build-stamp:
+	dh_testdir
+	autoreconf -vfi
+	mkdir -p build
+	cd build && \
+	../configure --prefix=/usr --mandir=\$${prefix}/share/man \
+	             --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
+	             --infodir=\$${prefix}/share/info $(confflags) \
+	             CFLAGS="$(CFLAGS)" 
+	cd build && $(MAKE)
+	>$@
+
+clean:
+	dh_testdir
+	rm -f build-stamp
+	rm -f aclocal.m4 config.guess config.h.in config.sub configure
+	rm -f config.cache config.log config.status
+	rm -f */config.cache */config.log */config.status
+	rm -f conftest* */conftest*
+	rm -rf autom4te.cache */autom4te.cache
+	rm -f depcomp install-sh ltmain.sh missing
+	find -name Makefile.in -delete
+	rm -rf build
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	cd build && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+
+	dh_installdocs
+	dh_install --sourcedir=debian/tmp --fail-missing -XlibFS.la
+	dh_installchangelogs ChangeLog
+	dh_link
+	dh_strip --dbg-package=$(PACKAGE)-dbg
+	dh_compress
+	dh_fixperms
+	dh_makeshlibs
+	dh_shlibdeps
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+# Build architecture-independent files here.
+binary-indep: build install
+# Nothing to do
+
+binary: binary-indep binary-arch
+.PHONY: build build-arch build-indep
+.PHONY: clean binary-indep binary-arch binary install
--- libfs-1.0.4.orig/debian/control
+++ libfs-1.0.4/debian/control
@@ -0,0 +1,89 @@
+Source: libfs
+Section: x11
+Priority: optional
+Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
+Uploaders: Cyril Brulebois <kibi@debian.org>
+Build-Depends:
+ pkg-config,
+ x11proto-core-dev (>= 6.8.99.15+cvs.20050722),
+ x11proto-fonts-dev,
+ xtrans-dev,
+ automake,
+ libtool,
+ xutils-dev,
+# DEB_HOST_MULTIARCH
+ dpkg-dev (>= 1.16),
+# misc:Pre-Depends
+ debhelper (>= 8.1.3),
+Standards-Version: 3.9.3
+Vcs-Git: git://git.debian.org/git/pkg-xorg/lib/libfs
+Vcs-Browser: http://git.debian.org/?p=pkg-xorg/lib/libfs.git
+
+Package: libfs6
+Section: libs
+Architecture: any
+Multi-Arch: same
+Pre-Depends:
+ ${misc:Pre-Depends},
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+Description: X11 Font Services library
+ libFS, the Font Services library, provides various functions useful to
+ X11 font servers, and clients connecting to font servers.  It is not used
+ outside of these implementations.
+ .
+ More information about X.Org can be found at:
+ <URL:http://www.X.org>
+ .
+ This module can be found at
+ git://anongit.freedesktop.org/git/xorg/lib/libFS
+
+Package: libfs6-dbg
+Section: debug
+Architecture: any
+Priority: extra
+Multi-Arch: same
+Pre-Depends:
+ ${misc:Pre-Depends},
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+ libfs6 (= ${binary:Version}),
+Description: X11 Font Services library (debug package)
+ libFS, the Font Services library, provides various functions useful to
+ X11 font servers, and clients connecting to font servers.  It is not used
+ outside of thse implementations.
+ .
+ This package contains the debug versions of the library found in libfs6.
+ Non-developers likely have little use for this package.
+ .
+ More information about X.Org can be found at:
+ <URL:http://www.X.org>
+ .
+ This module can be found at
+ git://anongit.freedesktop.org/git/xorg/lib/libFS
+
+Package: libfs-dev
+Section: libdevel
+Architecture: any
+Multi-Arch: same
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+ libfs6 (= ${binary:Version}),
+ x11proto-core-dev,
+ x11proto-fonts-dev,
+Description: X11 Font Services library (development headers)
+ libFS, the Font Services library, provides various functions useful to
+ X11 font servers, and clients connecting to font servers.  It is not
+ used outside of these implementations.
+ .
+ This package contains the development headers for the library found in
+ libfs6.  Non-developers likely have little use for this package.
+ .
+ More information about X.Org can be found at:
+ <URL:http://www.X.org>
+ .
+ This module can be found at
+ git://anongit.freedesktop.org/git/xorg/lib/libFS
--- libfs-1.0.4.orig/debian/watch
+++ libfs-1.0.4/debian/watch
@@ -0,0 +1,3 @@
+#git=git://anongit.freedesktop.org/xorg/lib/libFS
+version=3
+http://xorg.freedesktop.org/releases/individual/lib/ libFS-(.*)\.tar\.gz
--- libfs-1.0.4.orig/debian/copyright
+++ libfs-1.0.4/debian/copyright
@@ -0,0 +1,88 @@
+This package was downloaded from
+http://xorg.freedesktop.org/releases/individual/lib/
+
+Copyright 1990 Network Computing Devices;
+Portions Copyright 1987 by Digital Equipment Corporation
+
+Permission to use, copy, modify, distribute, and sell this software
+and its documentation for any purpose is hereby granted without fee,
+provided that the above copyright notice appear in all copies and
+that both that copyright notice and this permission notice appear
+in supporting documentation, and that the names of Network Computing
+Devices or Digital not be used in advertising or publicity pertaining
+to distribution of the software without specific, written prior
+permission. Network Computing Devices or Digital make no representations
+about the suitability of this software for any purpose.  It is provided
+"as is" without express or implied warranty.
+
+NETWORK COMPUTING DEVICES AND  DIGITAL DISCLAIM ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES
+OR DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES
+OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
+SOFTWARE.
+
+Copyright 1987, 1994, 1998  The Open Group
+
+Permission to use, copy, modify, distribute, and sell this software and its
+documentation for any purpose is hereby granted without fee, provided that
+the above copyright notice appear in all copies and that both that
+copyright notice and this permission notice appear in supporting
+documentation.
+
+The above copyright notice and this permission notice 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
+OPEN GROUP 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.
+
+Except as contained in this notice, the name of The Open Group shall not be
+used in advertising or otherwise to promote the sale, use or other dealings
+in this Software without prior written authorization from The Open Group.
+
+Copyright 2005 Red Hat, Inc
+
+Permission to use, copy, modify, distribute, and sell this software and its
+documentation for any purpose is hereby granted without fee, provided that
+the above copyright notice appear in all copies and that both that
+copyright notice and this permission notice appear in supporting
+documentation, and that the name of Red Hat not be used in
+advertising or publicity pertaining to distribution of the software without
+specific, written prior permission.  Red Hat makes no
+representations about the suitability of this software for any purpose.  It
+is provided "as is" without express or implied warranty.
+
+RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+
+Copyright 2001,2003 Keith Packard
+Copyright 2003 Keith Packard, Noah Levitt
+
+Permission to use, copy, modify, distribute, and sell this software and its
+documentation for any purpose is hereby granted without fee, provided that
+the above copyright notice appear in all copies and that both that
+copyright notice and this permission notice appear in supporting
+documentation, and that the name of Keith Packard not be used in
+advertising or publicity pertaining to distribution of the software without
+specific, written prior permission.  Keith Packard makes no
+representations about the suitability of this software for any purpose.  It
+is provided "as is" without express or implied warranty.
+
+KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
--- libfs-1.0.4.orig/debian/README.source
+++ libfs-1.0.4/debian/README.source
@@ -0,0 +1,73 @@
+------------------------------------------------------
+Quick Guide To Patching This Package For The Impatient
+------------------------------------------------------
+
+1. Make sure you have quilt installed
+2. Unpack the package as usual with "dpkg-source -x"
+3. Run the "patch" target in debian/rules
+4. Create a new patch with "quilt new" (see quilt(1))
+5. Edit all the files you want to include in the patch with "quilt edit" 
+   (see quilt(1)).
+6. Write the patch with "quilt refresh" (see quilt(1))
+7. Run the "clean" target in debian/rules
+
+Alternatively, instead of using quilt directly, you can drop the patch in to 
+debian/patches and add the name of the patch to debian/patches/series.
+
+------------------------------------
+Guide To The X Strike Force Packages
+------------------------------------
+
+The X Strike Force team maintains X packages in git repositories on
+git.debian.org in the pkg-xorg subdirectory. Most upstream packages
+are actually maintained in git repositories as well, so they often
+just need to be pulled into git.debian.org in a "upstream-*" branch.
+Otherwise, the upstream sources are manually installed in the Debian
+git repository.
+
+The .orig.tar.gz upstream source file could be generated this
+"upstream-*" branch in the Debian git repository but it is actually
+copied from upstream tarballs directly.
+
+Due to X.org being highly modular, packaging all X.org applications
+as their own independent packages would have created too many Debian
+packages. For this reason, some X.org applications have been grouped
+into larger packages: xutils, xutils-dev, x11-apps, x11-session-utils,
+x11-utils, x11-xfs-utils, x11-xkb-utils, x11-xserver-utils.
+Most packages, including the X.org server itself and all libraries
+and drivers are, however maintained independently.
+
+The Debian packaging is added by creating the "debian-*" git branch
+which contains the aforementioned "upstream-*" branch plus the debian/
+repository files.
+When a patch has to be applied to the Debian package, two solutions
+are involved:
+* If the patch is available in one of the upstream branches, it
+  may be git'cherry-picked into the Debian repository. In this
+  case, it appears directly in the .diff.gz.
+* Otherwise, the patch is added to debian/patches/ which is managed
+  with quilt as documented in /usr/share/doc/quilt/README.source.
+
+quilt is actually invoked by the Debian X packaging through a larger
+set of scripts called XSFBS. XSFBS brings some other X specific
+features such as managing dependencies and conflicts due to the video
+and input driver ABIs.
+XSFBS itself is maintained in a separate repository at
+  git://git.debian.org/pkg-xorg/xsfbs.git
+and it is pulled inside the other Debian X repositories when needed.
+
+The XSFBS patching system requires a build dependency on quilt. Also
+a dependency on $(STAMP_DIR)/patch has to be added to debian/rules
+so that the XSFBS patching occurs before the actual build. So the
+very first target of the build (likely the one running autoreconf)
+should depend on $(STAMP_DIR)/patch. It should also not depend on
+anything so that parallel builds are correctly supported (nothing
+should probably run while patching is being done). And finally, the
+clean target should depend on the xsfclean target so that patches
+are unapplied on clean.
+
+When the upstream sources contain some DFSG-nonfree files, they are
+listed in text files in debian/prune/ in the "debian-*" branch of
+the Debian repository. XSFBS' scripts then take care of removing
+these listed files during the build so as to generate a modified
+DFSG-free .orig.tar.gz tarball.
--- libfs-1.0.4.orig/debian/libfs6.install
+++ libfs-1.0.4/debian/libfs6.install
@@ -0,0 +1 @@
+usr/lib/*/libFS.so.6*
--- libfs-1.0.4.orig/debian/libfs-dev.install
+++ libfs-1.0.4/debian/libfs-dev.install
@@ -0,0 +1,5 @@
+usr/include/X11/*
+usr/lib/*/libFS.a
+usr/lib/*/libFS.so
+usr/lib/*/pkgconfig/libfs.pc
+usr/share/doc/libFS/FSlib.txt usr/share/doc/libfs-dev
--- libfs-1.0.4.orig/debian/changelog
+++ libfs-1.0.4/debian/changelog
@@ -0,0 +1,117 @@
+libfs (2:1.0.4-1) unstable; urgency=low
+
+  * New upstream release.
+  * Delete debian/xsfbs/, it's no longer used in this package.
+  * Don't require fakeroot for debian/rules clean.
+  * Remove David Nusinow and Brice Goglin from Uploaders.
+  * Run autoreconf at build time.
+  * Add build-arch and build-indep debian/rules targets.
+  * Build for multiarch.
+  * Install FSlib.txt in libfs-dev.
+  * Bump Standards-Version to 3.9.3.
+
+ -- Julien Cristau <jcristau@debian.org>  Sun, 25 Mar 2012 17:43:10 +0200
+
+libfs (2:1.0.3-1) unstable; urgency=low
+
+  [ Timo Aaltonen ]
+  * Drop pre-dependency on x11-common from libfs-dev. This was needed
+    for upgrades from sarge.
+
+  [ Julien Cristau ]
+  * Remove myself from Uploaders.
+  * Rename the build directory to not include DEB_BUILD_GNU_TYPE for no
+    good reason.  Thanks, Colin Watson!
+
+  [ Cyril Brulebois ]
+  * New upstream release.
+  * Wrap build-deps.
+  * Switch from --list-missing to --fail-missing for additional safety.
+  * Exclude libFS.la from dh_install accordingly.
+  * Add myself to Uploaders.
+
+ -- Cyril Brulebois <kibi@debian.org>  Fri, 19 Nov 2010 01:00:28 +0100
+
+libfs (2:1.0.2-1) unstable; urgency=low
+
+  * New upstream release.
+  * Add a link to www.X.org and a reference to the upstream module
+    in the long description.
+  * Add README.source, bump Standards-Version to 3.8.2.
+  * Move the -dbg package to section debug.
+  * Add myself to Uploaders.
+
+ -- Brice Goglin <bgoglin@debian.org>  Mon, 27 Jul 2009 17:21:16 +0200
+
+libfs (2:1.0.1-1) unstable; urgency=low
+
+  * New upstream release.
+  * Install the upstream ChangeLog.
+  * Add upstream URL and missing copyright holders and licenses to
+    debian/copyright, based on upstream's new COPYING file.
+
+ -- Julien Cristau <jcristau@debian.org>  Sun, 25 May 2008 00:57:27 +0200
+
+libfs (2:1.0.0-5) unstable; urgency=low
+
+  * Remove outdated cvs information from the package descriptions, and add
+    Vcs-* headers.
+  * Remove Branden and Fabio from Uploaders with their permission.
+  * Add myself to Uploaders.
+  * Bump Standards-Version to 3.7.3.
+  * Don't build-depend on packages with a -1 debian revision.
+  * libfs6 and libfs6-dbg don't need to depend on x11-common.
+  * Use ${binary:Version} instead of the deprecated  ${Source-Version}.
+  * Add Section control fields for binary packages.
+  * autoreconf with current autotools to get updated config.{guess,sub}.
+
+ -- Julien Cristau <jcristau@debian.org>  Sun, 11 May 2008 14:48:43 +0200
+
+libfs (2:1.0.0-4) unstable; urgency=low
+
+  [ Andres Salomon ]
+  * Test for obj-$(DEB_BUILD_GNU_TYPE) before creating it during build;
+    idempotency fix.
+  * Run dh_install w/ --list-missing.
+
+  [ Drew Parsons ]
+  * dbg package has priority extra.
+
+  [ David Nusinow ]
+  * Version pre-depends on x11-common to bring things in line with policy
+  * Policy bump to 3.7.2.0
+  * Debhelper compat bump to 5
+
+ -- David Nusinow <dnusinow@debian.org>  Tue, 29 Aug 2006 23:24:19 +0000
+
+libfs (2:1.0.0-3) unstable; urgency=low
+
+  * Reorder makeshlib command in rules file so that ldconfig is run
+    properly. Thanks Drew Parsons and Steve Langasek.
+
+ -- David Nusinow <dnusinow@debian.org>  Tue, 18 Apr 2006 21:49:55 -0400
+
+libfs (2:1.0.0-2) unstable; urgency=low
+
+  * Upload to unstable
+
+ -- David Nusinow <dnusinow@debian.org>  Thu, 23 Mar 2006 22:44:23 -0500
+
+libfs (2:1.0.0-1) experimental; urgency=low
+
+  * First upload to Debian
+
+ -- David Nusinow <dnusinow@debian.org>  Thu, 29 Dec 2005 20:46:32 -0500
+
+libfs (1:3.0.0-2) breezy; urgency=low
+
+  * Bump Build-Depends on x11proto-core-dev to avoid the _XOPEN_SOURCE
+    cooties.
+
+ -- Daniel Stone <daniel.stone@ubuntu.com>  Sat, 23 Jul 2005 00:15:32 +1000
+
+libfs (1:3.0.0-1) breezy; urgency=low
+
+  * First libfs release.
+
+ -- Daniel Stone <daniel.stone@ubuntu.com>  Mon, 16 May 2005 22:10:17 +1000
--- libfs-1.0.4.orig/debian/compat
+++ libfs-1.0.4/debian/compat
@@ -0,0 +1 @@
+5
