--- freebsd-manpages-8.2.orig/debian/dirs
+++ freebsd-manpages-8.2/debian/dirs
@@ -0,0 +1,4 @@
+usr/share/man/man2
+usr/share/man/man3
+usr/share/man/man4
+usr/share/man/man9
--- freebsd-manpages-8.2.orig/debian/copyright
+++ freebsd-manpages-8.2/debian/copyright
@@ -0,0 +1,31 @@
+This package was debianized by:
+
+    Gürkan Sengün <gurkan@phys.ethz.ch> on Fri, 17 Feb 2006 20:50:20 +0100.
+
+It was downloaded from:
+
+    ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/
+
+Upstream Author:
+
+    The FreeBSD Project
+
+Copyright:
+
+    Redistribution and use in source and binary forms, with or without
+    modification, are permitted under the terms of the BSD License.
+
+    THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+    ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+    ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+    FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+    OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+    LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+    OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+    SUCH DAMAGE.
+
+On Debian systems, the complete text of the BSD License can be
+found in `/usr/share/common-licenses/BSD'.
--- freebsd-manpages-8.2.orig/debian/changelog
+++ freebsd-manpages-8.2/debian/changelog
@@ -0,0 +1,146 @@
+freebsd-manpages (8.2-1.4.201403111418) ucs4-0-0-0; urgency=low
+
+  * UCS auto build. No patches were applied to the original source package
+
+ -- Univention builddaemon <buildd@univention.de>  Tue, 11 Mar 2014 14:18:05 +0100
+
+freebsd-manpages (8.2-1) unstable; urgency=low
+
+  * New upstream version.
+  * Bump standards version to 3.9.2.
+  * Bump debhelper version to 8.
+
+ -- Gürkan Sengün <gurkan@phys.ethz.ch>  Wed, 04 May 2011 12:06:02 +0200
+
+freebsd-manpages (8.1-1) unstable; urgency=low
+
+  * New upstream version.
+  * Bump standards version to 3.9.1.
+
+ -- Gürkan Sengün <gurkan@phys.ethz.ch>  Thu, 05 Aug 2010 12:17:52 +0200
+
+freebsd-manpages (8.0-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Gürkan Sengün <gurkan@phys.ethz.ch>  Tue, 24 Nov 2009 09:42:18 +0100
+
+freebsd-manpages (8.0~rc3-1) unstable; urgency=low
+
+  * New upstream version.
+  * Bump standards version.
+
+ -- Gürkan Sengün <gurkan@phys.ethz.ch>  Mon, 16 Nov 2009 11:11:06 +0100
+
+freebsd-manpages (8.0~beta3-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Gürkan Sengün <gurkan@phys.ethz.ch>  Thu, 03 Sep 2009 15:16:59 +0200
+
+freebsd-manpages (8.0~beta2-1) unstable; urgency=low
+
+  * New upstream version.
+  * Add GNU/kFreeBSD Maintainers.
+  * Bump standards version.
+
+ -- Gürkan Sengün <gurkan@phys.ethz.ch>  Fri, 17 Jul 2009 11:47:00 +0200
+
+freebsd-manpages (7.2-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Gürkan Sengün <gurkan@phys.ethz.ch>  Sun, 03 May 2009 12:05:51 +0200
+
+freebsd-manpages (7.1-2) unstable; urgency=low
+
+  * Updated debian/rules.
+  * Updated debian/copyright.
+  * Bump standards version.
+
+ -- Gürkan Sengün <gurkan@phys.ethz.ch>  Thu, 09 Apr 2009 16:17:02 +0200
+
+freebsd-manpages (7.1-1) unstable; urgency=low
+
+  * New upstream version.
+  * Updated standards version.
+
+ -- Gürkan Sengün <gurkan@phys.ethz.ch>  Wed, 21 Jan 2009 16:14:39 +0100
+
+freebsd-manpages (7.1~beta1-1) unstable; urgency=low
+
+  * New upstream version.
+  * Update debhelper compat to 7.
+
+ -- Gürkan Sengün <gurkan@phys.ethz.ch>  Tue, 23 Sep 2008 10:28:58 +0200
+
+freebsd-manpages (7.0-2) unstable; urgency=low
+
+  * Move manpages into a freebsd section. (Closes: #367182)
+  * Removed all conflicts.
+  * Updated debian/copyright download URL.
+  * Updated my email address.
+
+ -- Gürkan Sengün <gurkan@phys.ethz.ch>  Wed, 23 Apr 2008 10:43:40 +0200
+
+freebsd-manpages (7.0-1) unstable; urgency=low
+
+  * New upstream version.
+  * debian/control: Bump standards version.
+
+ -- Gürkan Sengün <gurkan@linuks.mine.nu>  Wed, 27 Feb 2008 08:16:50 +0100
+
+freebsd-manpages (7.0~beta2-1) experimental; urgency=low
+
+  * New upstream version.
+  * Updated debian/control conflicts field.
+
+ -- Gürkan Sengün <gurkan@linuks.mine.nu>  Mon, 05 Nov 2007 15:04:58 +0100
+
+freebsd-manpages (7.0~beta1.5-1) experimental; urgency=low
+
+  * New upstream version. (Closes: #365624)
+  * debian/compat: Bump version, no changes needed.
+
+ -- Gürkan Sengün <gurkan@linuks.mine.nu>  Tue, 30 Oct 2007 01:54:07 +0100
+
+freebsd-manpages (6.2-1) unstable; urgency=low
+
+  * New upstream version.
+  * Bump standard version, no changes needed.
+
+ -- Gürkan Sengün <gurkan@linuks.mine.nu>  Mon, 15 Jan 2007 13:18:42 +0100
+
+freebsd-manpages (6.0-5) unstable; urgency=low
+
+  * Add conflicts with (Closes: #365623)
+    - ipchains (linux 2.2 specific)
+    - opie-client
+    - linux-manual-2.6.16
+
+ -- Gürkan Sengün <gurkan@linuks.mine.nu>  Mon,  1 May 2006 19:32:12 +0200
+
+freebsd-manpages (6.0-4) unstable; urgency=low
+
+  * Add section 3 sysctl manual page. (Closes: #363906)
+  * Conflict with fdutils (linux specific).
+
+ -- Gürkan Sengün <gurkan@linuks.mine.nu>  Thu, 20 Apr 2006 16:18:12 +0200
+
+freebsd-manpages (6.0-3) unstable; urgency=low
+
+  * Removed some more manpages from section 4 to co-exist with xorg7.
+
+ -- Gürkan Sengün <gurkan@linuks.mine.nu>  Fri, 14 Apr 2006 13:56:19 +0200
+
+freebsd-manpages (6.0-2) unstable; urgency=low
+
+  * Remove md.4. (Closes: #359210)
+
+ -- Gürkan Sengün <gurkan@linuks.mine.nu>  Tue, 14 Mar 2006 09:46:44 +0100
+
+freebsd-manpages (6.0-1) unstable; urgency=low
+
+  * Initial release. (Closes: #353381)
+
+ -- Gürkan Sengün <gurkan@linuks.mine.nu>  Fri, 17 Feb 2006 20:50:20 +0100
--- freebsd-manpages-8.2.orig/debian/compat
+++ freebsd-manpages-8.2/debian/compat
@@ -0,0 +1 @@
+8
--- freebsd-manpages-8.2.orig/debian/rules
+++ freebsd-manpages-8.2/debian/rules
@@ -0,0 +1,67 @@
+#!/usr/bin/make -f
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+DESTDIR=$(CURDIR)/debian/freebsd-manpages
+VER=8.2
+
+build: build-stamp
+
+# make update -f debian/rules
+update:
+	rm -f manpages.a?
+	lftp -e 'mget manpages.a?;exit' ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/$(VER)-RELEASE/manpages/
+
+build-stamp:
+	dh_testdir
+	cat manpages.a* | tar -xzf -
+	find usr/share/man -name "*gz" -exec gunzip -f {} \;
+	mv usr/share/man/* ./
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+	-rm -rf usr en* man? whatis
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep
+	dh_installdirs
+	cp -r man2 $(DESTDIR)/usr/share/man/
+	cp man3/sysctl.3 $(DESTDIR)/usr/share/man/man3/sysctl.3freebsd
+	cp -r man4 $(DESTDIR)/usr/share/man/
+	mv $(DESTDIR)/usr/share/man/man4/i386/* $(DESTDIR)/usr/share/man/man4/
+	rm -rf $(DESTDIR)/usr/share/man/man4/i386/
+	cp -r man9 $(DESTDIR)/usr/share/man/
+	for a in 2 4 9; do \
+	    for b in $(DESTDIR)/usr/share/man/man$${a}/*; do \
+	        c=`basename $${b} .gz`; \
+#	        if [ -f /usr/share/man/man$${a}/$${c}.gz ]; then \
+	            echo moving freebsd manpage to subsection freebsd man$${a}/$${c}freebsd; \
+	            mv $(DESTDIR)/usr/share/man/man$${a}/$${c} $(DESTDIR)/usr/share/man/man$${a}/$${c}freebsd; \
+#	        fi \
+	    done \
+	done
+
+binary-arch: build install
+
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs
+	dh_installdocs
+	dh_installman
+	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
--- freebsd-manpages-8.2.orig/debian/control
+++ freebsd-manpages-8.2/debian/control
@@ -0,0 +1,19 @@
+Source: freebsd-manpages
+Section: doc
+Priority: optional
+Maintainer: GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>
+Uploaders: Gürkan Sengün <gurkan@phys.ethz.ch>
+Build-Depends: debhelper (>= 8), manpages, manpages-dev
+Build-Conflicts: freebsd-manpages
+Standards-Version: 3.9.2
+
+Package: freebsd-manpages
+Architecture: all
+Depends: ${misc:Depends}
+Suggests: man-browser
+Description: Manual pages for a GNU/kFreeBSD system
+ This package contains a selection of manual pages from FreeBSD that are
+ useful on a GNU/kFreeBSD system:
+  2 = System calls (functions provided by the kernel)
+  4 = Special files (usually found in /dev)
+  9 = Kernel routines
