--- bsdgames-nonfree-2.17.orig/debian/docs
+++ bsdgames-nonfree-2.17/debian/docs
@@ -0,0 +1,9 @@
+AUTHORS
+BUGS
+ChangeLog
+ChangeLog.0
+README.non-free
+SECURITY
+THANKS
+TODO
+YEAR2000
--- bsdgames-nonfree-2.17.orig/debian/menu
+++ bsdgames-nonfree-2.17/debian/menu
@@ -0,0 +1,2 @@
+?package(bsdgames-nonfree):needs="text" section="Games/Adventure" \
+	title="Rogue" command="/usr/games/rogue"
--- bsdgames-nonfree-2.17.orig/debian/control
+++ bsdgames-nonfree-2.17/debian/control
@@ -0,0 +1,19 @@
+Source: bsdgames-nonfree
+Section: non-free/games
+Priority: optional
+Maintainer: Aaron M. Ucko <ucko@debian.org>
+Build-Depends: debhelper (>> 7), dpkg-dev (>= 1.14.17), libncurses5-dev
+Standards-Version: 3.8.0
+XS-Autobuild: yes
+
+Package: bsdgames-nonfree
+Architecture: any
+Depends: ${shlibs:Depends}
+Conflicts: bsdgames (<< 2.5)
+Suggests: bsdgames
+Description: rogue, the classic dungeon exploration game
+ This is a text-based game common on (traditional) BSD systems.  It may
+ not be distributed freely, so it had to be broken off from the main
+ bsdgames package and placed in non-free.
+ .
+ This package now contains only rogue, the classic dungeon exploration game.
--- bsdgames-nonfree-2.17.orig/debian/rules
+++ bsdgames-nonfree-2.17/debian/rules
@@ -0,0 +1,33 @@
+#!/usr/bin/make -f
+pkg         = bsdgames-nonfree
+DEB_DESTDIR = $(CURDIR)/debian/$(pkg)
+
+build:
+	dh build
+
+clean:
+	dh_testdir
+	dh_auto_clean -- -f GNUmakefile distclean
+	dh_clean
+
+install: build
+	dh install --until dh_prep
+	dh_auto_install -- INSTALL_PREFIX=$(DEB_DESTDIR)
+	-rm -f $(DEB_DESTDIR)/var/games/$(pkg)/rogue.scores 
+	mkdir -p $(DEB_DESTDIR)/usr/share/vrms/reasons
+	echo "$(pkg): No commercial use" \
+	    > $(DEB_DESTDIR)/usr/share/vrms/reasons/$(pkg)
+	cp rogue/CHANGES $(DEB_DESTDIR)/usr/share/doc/$(pkg)/CHANGES.rogue
+	dh_installchangelogs -k NEWS
+	dh install --remaining --before dh_fixperms
+	dh_fixperms -X/usr/games/rogue
+
+binary-arch: install
+	dh binary-arch
+
+binary-indep: install
+	dh binary-indep
+
+binary: binary-arch # binary-indep
+
+.PHONY: build clean install binary binary-arch binary-indep
--- bsdgames-nonfree-2.17.orig/debian/watch
+++ bsdgames-nonfree-2.17/debian/watch
@@ -0,0 +1,3 @@
+version=2
+ftp://ibiblio.org/pub/Linux/games/bsd-games-non-free-([0-9]+.*).tar.gz
+# ftp://ibiblio.org/pub/Linux/Incoming/bsd-games-non-free-([0-9]+.*).tar.gz
--- bsdgames-nonfree-2.17.orig/debian/changelog
+++ bsdgames-nonfree-2.17/debian/changelog
@@ -0,0 +1,329 @@
+bsdgames-nonfree (2.17-3) unstable; urgency=low
+
+  * Migrate from CDBS to Debhelper 7.
+  * Explicitly note distinction between main and non-free in debian/copyright.
+  * Declare compliance with Policy 3.8.0.
+
+ -- Aaron M. Ucko <ucko@debian.org>  Sat, 14 Jun 2008 18:10:04 -0400
+
+bsdgames-nonfree (2.17-2) unstable; urgency=low
+
+  * Convert to cdbs and debhelper 6.
+  * Note compliance with current policy (3.7.3).
+  * Set XS-Autobuild: yes, as the license isn't too severely non-free.
+
+ -- Aaron M. Ucko <ucko@debian.org>  Sat, 29 Mar 2008 19:51:53 -0400
+
+bsdgames-nonfree (2.17-1) unstable; urgency=low
+
+  * New upstream release.
+  * debian/menu: Properly double-quote command.
+  * debian/watch: Added, to help track future upstream versions.
+
+ -- Aaron M. Ucko <ucko@debian.org>  Fri, 18 Feb 2005 22:09:47 -0500
+
+bsdgames-nonfree (2.16-1) unstable; urgency=low
+
+  * New upstream release.
+  * debian/copyright: Update infrastructure copyright to cover 2004.
+  * debian/docs: drop rogue.me (now covered by upstream build system).
+
+ -- Aaron M. Ucko <ucko@debian.org>  Fri, 20 Feb 2004 23:24:21 -0500
+
+bsdgames-nonfree (2.15-2) unstable; urgency=low
+
+  * debian/postinst: Use POSIX-blessed chown syntax. (Closes: #229199)
+  * debian/rules: Tell vrms (and other interested parties) that the
+    license forbids commercial use.
+
+ -- Aaron M. Ucko <ucko@debian.org>  Fri, 23 Jan 2004 19:16:31 -0500
+
+bsdgames-nonfree (2.15-1) unstable; urgency=low
+
+  * New upstream release.
+  * debian/control: standards-version 3.6.1 (no changes needed).
+  * debian/copyright: rework once more; should now contain all needed info.
+
+ -- Aaron M. Ucko <ucko@debian.org>  Mon, 22 Dec 2003 22:20:30 -0500
+
+bsdgames-nonfree (2.14-2) unstable; urgency=low
+
+  * config.params:
+    - Make setgid games again (supposedly safe now...)
+    - Support "noopt" in DEB_BUILD_OPTIONS.
+    - debian/tmp -> debian/bsdgames-nonfree.
+    - Miscellaneous typo fixes.
+  * configure: Revert changes to defaults (config.params should suffice).
+  * debian/changelog: Removed obsolete emacs settings.
+  * debian/compat: Created (specifying version 4).
+  * debian/control:
+    - New maintainer, with Javier's blessing; my thanks to Joey H. and him
+      for maintaining the package thus far.
+    - Bumped standards version and build dependency on debhelper.
+    - Rewrote description to reflect single-game situation.
+  * debian/copyright:
+    - Updated version number in file name.
+    - Cited recent maintainers.
+    - Generally cleaned up a bit.
+  * debian/docs: New (split out from debian/rules).
+  * debian/postinst: Ensure $VARDIR is actually executable.
+  * debian/rules:
+    - Modernized (various cleanups).
+    - Exclude /usr/games/rogue from call to dh_fixperms.
+
+ -- Aaron M. Ucko <ucko@debian.org>  Wed,  9 Apr 2003 22:20:11 -0400
+
+bsdgames-nonfree (2.14-1) unstable; urgency=high
+
+  * New upstream version:
+      - fixes buffer overflow in rogue (priviledge escalation to
+      'games' since it's setgid)
+      - removes hack (Closes: #188279) 
+  * Note: I'm hurrying this upload due to the security fix for rogue
+  (see SECURITY). However, with the security fix changes 'rogue' will
+  no longer save on empty files. Also, there is no transition done from
+  previous hack save files (which should now be handled by 'bsdgames'
+  which now provides 'hack')
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@computer.org>  Wed,  9 Apr 2003 10:10:27 +0200
+
+bsdgames-nonfree (2.12-5) unstable; urgency=low
+
+  * Added save/ dir for hack with appropiate permissions (Closes: #174758)
+  * Fixed call to GNUmakefile (it did not clean properly the sources due to
+    GNUMakefile being called instead)
+  * Fixed the debian/rules since it was cleaning files in
+    /var/games/bsdgames-nonfree/hack that were not zero-byte (and might be
+    used by the game)
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@computer.org>  Wed,  1 Jan 2003 15:06:13 +0100
+
+bsdgames-nonfree (2.12-4) unstable; urgency=low
+
+  * Added Build-Depends (Closes: #174031)
+  * Removed binary files from package when cleaning
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@computer.org>  Mon, 30 Dec 2002 18:28:48 +0100
+
+bsdgames-nonfree (2.12-3) unstable; urgency=low
+
+  * New maintainer (so it does not disappear from Debian) (Closes: #68086)
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@computer.org>  Mon, 15 Jan 2001 19:33:45 +0100
+
+bsdgames-nonfree (2.12-2) unstable; urgency=low
+
+  * Much gnashing of teeth.
+
+ -- Joey Hess <joeyh@debian.org>  Sun,  5 Nov 2000 16:33:10 -0800
+
+bsdgames-nonfree (2.12-1) unstable; urgency=low
+
+  * New upstream release. No, I'm not maintianing the package anymore,
+    Debian-QA is - I just happen to be in Debian-QA. (Yeah, Joey.. keep
+    repeating that and maybe someone will believe you.)
+
+ -- Joey Hess <joeyh@master.debian.org>  Tue, 26 Sep 2000 09:38:44 -0700
+
+bsdgames-nonfree (2.11-1) unstable; urgency=low
+
+  * New upstream release. No, I'm not maintianing the package anymore,
+    Debian-QA is - I just happen to be in Debian-QA. (Yeah, Joey.. keep
+    repeating that and maybe someone will believe you.)
+  * Now includes hack, a precursor to nethack.
+
+ -- Joey Hess <joeyh@master.debian.org>  Wed, 19 Apr 2000 14:36:52 -0700
+
+bsdgames-nonfree (2.8-1) unstable; urgency=low
+
+  * New upstream release. No, I'm not maintianing the package anymore, 
+    Debian-QA is - I just happen to be in Debian-QA.
+  * Updated download location.
+  * FHS.
+
+ -- Joey Hess <joeyh@master.debian.org>  Thu,  4 Nov 1999 14:31:06 -0800
+
+bsdgames-nonfree (2.7-1) unstable; urgency=low
+
+  * New upstream release. No, I'm not maintianing the package anymore,
+    Debian-QA is - I just happen to be in Debian-QA.
+
+ -- Joey Hess <joeyh@master.debian.org>  Wed,  7 Apr 1999 00:00:28 -0700
+
+bsdgames-nonfree (2.6-2) unstable; urgency=low
+
+  * Orphaned the package, I'm not maining non-free things anymore.
+
+ -- Joey Hess <joeyh@master.debian.org>  Thu, 18 Mar 1999 14:49:50 -0800
+
+bsdgames-nonfree (2.6-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Joey Hess <joeyh@master.debian.org>  Sun, 20 Dec 1998 01:26:45 -0500
+
+bsdgames-nonfree (2.5-2) unstable; urgency=low
+
+  * Rebuilt with newest debhelper to change how suid binaries are registered.
+
+ -- Joey Hess <joeyh@master.debian.org>  Tue, 27 Oct 1998 20:04:34 -0800
+
+bsdgames-nonfree (2.5-1) unstable; urgency=low
+
+  * New upstream release. Boggle was moved to bsdgames, only rogue remains.
+
+ -- Joey Hess <joeyh@master.debian.org>  Thu, 24 Sep 1998 17:17:43 -0700
+
+bsdgames-nonfree (2.4-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Joey Hess <joeyh@master.debian.org>  Sat,  5 Sep 1998 15:44:05 -0700
+
+bsdgames-nonfree (2.3-3) unstable; urgency=low
+
+  * Make NEWS be a symlink to the upstream changelog, so the file name is
+    preserved.
+
+ -- Joey Hess <joeyh@master.debian.org>  Thu, 20 Aug 1998 15:57:29 -0700
+
+bsdgames-nonfree (2.3-2) unstable; urgency=low
+
+  * Fixed == bashism.
+
+ -- Joey Hess <joeyh@master.debian.org>  Thu, 20 Aug 1998 00:44:44 -0700
+
+bsdgames-nonfree (2.3-1) unstable; urgency=low
+
+  * New upstream release, removing Paranoia because of copyright problems
+    (ie, no copyright), and with security fixes.
+  * Re-enabled sgid bit of rogue becuase of above security fixes.
+  * Reworked how configure script is run, following the author's new docs in
+    PACKAGING.
+  * No longer have to include NEWS in my diff, it's available from upstream,
+    along with some more docs.
+
+ -- Joey Hess <joeyh@master.debian.org>  Wed, 19 Aug 1998 23:07:54 -0700
+
+bsdgames-nonfree (2.1-5) unstable; urgency=low
+
+  * Fixed rogue segfault on startup. Fixed by a simple recompile,
+    but I have no idea how.
+
+ -- Joey Hess <joeyh@master.debian.org>  Wed, 22 Jul 1998 20:31:37 -0700
+
+bsdgames-nonfree (2.1-4) unstable; urgency=low
+
+  * Copied NEWS over from bsdgames. It's really the same upstream changelog
+    for both packages. This lets me install a proper changelog.gz, to shut
+    lintian up. I've asked the author to include NEWS in the package in the
+    future.
+
+ -- Joey Hess <joeyh@master.debian.org>  Fri, 10 Jul 1998 15:30:15 -0700
+
+bsdgames-nonfree (2.1-3) frozen unstable; urgency=medium
+
+  * Reluctantly removed all sgid bits from rogue, becuase there are probably
+    security problems in it. See the TODO, which has a security audit as it's
+    first priority, but explains the difficulties of one.
+  * Added a README.Debian exaplaining this in greater detail.
+
+ -- Joey Hess <joeyh@master.debian.org>  Thu, 18 Jun 1998 10:54:33 -0700
+
+bsdgames-nonfree (2.1-2) frozen unstable; urgency=low
+
+  * Fixed rogue segfault on startup (#22619). Fixed by a simple recompile,
+    but I have no idea how.
+
+ -- Joey Hess <joeyh@master.debian.org>  Sat, 23 May 1998 07:02:53 -0400
+
+bsdgames-nonfree (2.1-1) frozen unstable; urgency=low
+
+  * New upstream bugfix release:
+    - man page for paranoia.
+    - changes to build process that don't affect us.
+    - bugfixes.
+
+ -- Joey Hess <joeyh@master.debian.org>  Mon, 30 Mar 1998 12:32:23 -0800
+
+bsdgames-nonfree (2.0-5) unstable; urgency=low
+
+  * Made score files not be conffiles.
+
+ -- Joey Hess <joeyh@master.debian.org>  Tue, 10 Mar 1998 21:11:23 -0800
+
+bsdgames-nonfree (2.0-4) unstable; urgency=low
+
+  * Added a man page for paranoia.
+  * Don't include paranoia's README anymore, as all info in it is in the new
+    man page as well.
+  * Section non-free/games.
+
+ -- Joey Hess <joeyh@master.debian.org>  Wed, 18 Feb 1998 17:51:50 -0800
+
+bsdgames-nonfree (2.0-3) unstable; urgency=low
+
+  * update standards-version.
+
+ -- Joey Hess <joeyh@master.debian.org>  Mon,  9 Feb 1998 15:52:24 -0800
+
+bsdgames-nonfree (2.0-2) unstable; urgency=low
+
+  * Applied patch from author to fix screen refresh bug after displaying
+    help.
+  * Fixed menu entry for bog.
+
+ -- Joey Hess <joeyh@master.debian.org>  Mon, 29 Dec 1997 16:57:34 -0500
+
+bsdgames-nonfree (2.0-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Joey Hess <joeyh@master.debian.org>  Fri, 26 Dec 1997 13:15:45 -0500
+
+bsdgames-nonfree (1.5-4) unstable; urgency=low
+
+  * Modified mkdict to exit with return code of zero. This was keeping it
+    from builing properly on the sparc.
+  * Use debhelper.
+
+ -- Joey Hess <joeyh@master.debian.org>  Thu, 11 Dec 1997 00:47:57 -0500
+
+bsdgames-nonfree (1.5-3) unstable; urgency=low
+
+  * Fixed postinst to make sure rogue score file is rw by user games.
+  * Routine update of debian/rules:
+    Fixed binary-indep target.
+
+ -- Joey Hess <joeyh@master.debian.org>  Fri, 12 Sep 1997 21:17:54 -0400
+
+bsdgames-nonfree (1.5-2) unstable; urgency=low
+
+  * Added rogue info to copyright file.
+
+ -- Joey Hess <joeyh@master.debian.org>  Tue,  2 Sep 1997 13:29:50 -0400
+
+bsdgames-nonfree (1.5-1) unstable; urgency=low
+
+  * New upstream release - now with rogue.
+  * Libc6 at last.
+  * Fakeroot fixes.
+  * Pristine upstream source.
+  * Changed how the configure script is run during building, new method
+    is more robust.
+
+ -- Joey Hess <joeyh@master.debian.org>  Mon,  1 Sep 1997 22:41:33 -0400
+
+bsdgames-nonfree (1.4-1) unstable; urgency=low
+
+  * New upstream release -- upstream source now separates these nonfree
+    games out of the main bsdgames source tree.
+  * Converted menufile to menu-1 format.
+
+ -- Joey Hess <joeyh@master.debian.org>  Sat, 22 Mar 1997 01:08:25 -0500
+
+bsdgames-nonfree (1.3-1) unstable; urgency=low
+
+  * First release.
+
+ -- Joey Hess <joeyh@master.debian.org>  Sat, 22 Mar 1997 01:08:25 -0500
--- bsdgames-nonfree-2.17.orig/debian/postinst
+++ bsdgames-nonfree-2.17/debian/postinst
@@ -0,0 +1,20 @@
+#!/bin/sh -e
+
+VARDIR=/var/games/bsdgames-nonfree
+SCOREFILES="$VARDIR/rogue.scores"
+OLDDIR=/var/lib/games/bsdgames-nonfree
+
+# See if the files exist in an old pre-FHS directory and move them if so.
+if [ -d $OLDDIR ]; then
+	if [ -e $OLDDIR/rogue.scores ]; then
+		mv -f $OLDDIR/rogue.scores $VARDIR/rogue.scores
+	fi
+fi
+
+# Older versions may have set bad permissions
+chmod a+x $VARDIR
+touch $SCOREFILES
+chown root:games $SCOREFILES
+chmod 664 $SCOREFILES
+
+#DEBHELPER#
--- bsdgames-nonfree-2.17.orig/debian/compat
+++ bsdgames-nonfree-2.17/debian/compat
@@ -0,0 +1 @@
+7
--- bsdgames-nonfree-2.17.orig/debian/postrm
+++ bsdgames-nonfree-2.17/debian/postrm
@@ -0,0 +1,12 @@
+#!/bin/sh -e
+
+VARDIR=/var/games/bsdgames-nonfree
+SCOREFILES="$VARDIR/rogue.scores"
+
+# Remove high score files on purge.
+if [ "$1" = "purge" ]; then
+	rm -f $SCOREFILES
+fi
+
+
+#DEBHELPER#
--- bsdgames-nonfree-2.17.orig/debian/copyright
+++ bsdgames-nonfree-2.17/debian/copyright
@@ -0,0 +1,41 @@
+This package was originally debianized by Joey Hess <joeyh@debian.org>
+in March 1997, and subsequently maintained (in succession) by Javier
+Fernandez-Sanguino Peña <jfs@computer.org> and Aaron M. Ucko
+<ucko@debian.org>.  Due to the license restrictions described below,
+it is formally part of Debian's non-free category rather than Debian
+proper ("main").
+
+It was downloaded from ftp://ibiblio.org:/pub/Linux/games/ .
+
+Primary upstream authors: Timothy Stoehr, Michael C. Toy, Ken Arnold,
+and Glenn Wichman.
+
+Copyright:
+    Game source files copyright © 1986, 1988, 1990, 1993 The Regents of
+    the University of California.  Upstream build system and support
+    library copyright © 1997-2005 Joseph Samuel Myers.  In both cases,
+    all rights reserved.
+
+    Redistribution and use in source and binary forms, with or without
+    modification, are permitted under the terms of the BSD License,
+    with the following additional (non-free) restrictions:
+
+    1.)  No portion of this notice shall be removed.
+    2.)  Credit shall not be taken for the creation of this source.
+    3.)  This code is not to be traded, sold, or used for personal
+         gain or profit.
+
+    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'.
