--- recover-1.3c.orig/debian/dirs
+++ recover-1.3c/debian/dirs
@@ -0,0 +1,3 @@
+usr/sbin
+usr/share/recover
+usr/share/man/man1
--- recover-1.3c.orig/debian/menu
+++ recover-1.3c/debian/menu
@@ -0,0 +1,4 @@
+?package(recover):needs="text" section="Apps/System"\
+ title="recover" \
+ description="Recover deleted files in an ext2 filesystem" \
+ command="su-to-root -p root -c /usr/sbin/recover"
--- recover-1.3c.orig/debian/control
+++ recover-1.3c/debian/control
@@ -0,0 +1,35 @@
+Source: recover
+Section: admin
+Priority: optional
+Maintainer: Luca Bruno <luca.br@uno.it>
+Build-Depends: debhelper (>=5)
+Standards-Version: 3.7.2
+
+Package: recover
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Undelete files on ext2 partitions
+ Recover automates some steps as described in the ext2-undeletion
+ howto. This means it seeks all the deleted inodes on your hard drive
+ with debugfs. When all the inodes are indexed, recover asks you some
+ questions about the deleted file. These questions are:
+ * Hard disk device name
+ * Year of deletion
+ * Month of deletion
+ * Weekday of deletion
+ * First/Last possible day of month
+ * Min/Max possible file size
+ * Min/Max possible deletion hour
+ * Min/Max possible deletion minute
+ * User ID of the deleted file
+ * A text string the file included (can be ignored)
+ .
+ If recover found any fitting inodes, it asks to give a directory name
+ and dumps the inodes into the directory. Finally it asks you if you
+ want to filter the inodes again (in case you typed some wrong
+ answers).
+ .
+ Note that recover works only with ext2 filesystems - it does not support
+ ext3.
+ .
+ http://recover.sourceforge.net/linux/recover/
--- recover-1.3c.orig/debian/rules
+++ recover-1.3c/debian/rules
@@ -0,0 +1,71 @@
+#!/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
+
+DEBIANCFLAGS ="-O2 -Wall"
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+ DEBIANCFLAGS += -g
+endif
+
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+
+ touch configure-stamp
+
+build: configure-stamp build-stamp
+build-stamp:
+ dh_testdir
+
+ $(MAKE) CFLAGS=$(DEBIANCFLAGS)
+
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+
+ -$(MAKE) clean
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ $(MAKE) install DESTDIR=`pwd`/debian/recover/
+
+
+# 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 debian/README.ext2only
+ dh_installmenu
+ gunzip ./debian/recover/usr/share/man/man1/*
+ dh_installchangelogs CHANGES
+ dh_link
+ dh_strip
+ dh_compress
+ dh_makeshlibs
+ 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
--- recover-1.3c.orig/debian/changelog
+++ recover-1.3c/debian/changelog
@@ -0,0 +1,168 @@
+recover (1.3c-11) unstable; urgency=low
+
+ * Raised debhelper compat mode to 5
+ * Bumped Standards-Version to 3.7.2
+ * Cleaned two unused variables
+
+ -- Luca Bruno <luca.br@uno.it> Wed, 20 Sep 2006 17:44:11 +0200
+
+recover (1.3c-10) unstable; urgency=low
+
+ * New Maintainer (Closes: #307558)
+ * Acknowledged NMU (Closes: #307667)
+ * Updated Standards-Version to 3.6.1
+
+ -- Luca Bruno <luca.br@uno.it> Tue, 7 Jun 2005 15:36:43 +0200
+
+recover (1.3c-9.1) unstable; urgency=low
+
+ * Non-Maintainer Upload by Gunnar Wolf <gwolf@debian.org> (Yes, right after
+ I orphaned it - Strange ;-) )
+ * Fixes wrong language strings in recover_questions - Thanks again to Luca
+ Bruno. (Closes: #307667)
+
+ -- Gunnar Wolf <gwolf@debian.org> Wed, 4 May 2005 16:14:14 -0500
+
+recover (1.3c-9) unstable; urgency=low
+
+ * Orphaned the package, maintainer set to the QA group (see #307558)
+ * Added italian translation - Thanks a lot to Luca Bruno for it!
+ (Closes: #307666)
+
+ -- Gunnar Wolf <gwolf@debian.org> Wed, 4 May 2005 12:53:32 -0500
+
+recover (1.3c-8) unstable; urgency=low
+
+ * Variable "c" in start_it is now an integer, not a char (Closes:
+ #180380)
+ * Fixed two lintian warnings casued by unquoted strings in debian/menu
+
+ -- Gunnar Wolf <gwolf@debian.org> Sun, 18 Apr 2004 20:57:06 -0500
+
+recover (1.3c-7) unstable; urgency=low
+
+ * Adds a boundary checking on environment variable LANG, as having it
+ set to a very large string (over 30 characters) would allow segfaulting
+ the program - Thanks to Steve Kemp for finding it and sending the patch!
+ (Closes: #221255)
+
+ -- Gunnar Wolf <gwolf@debian.org> Mon, 17 Nov 2003 09:49:59 -0600
+
+recover (1.3c-6) unstable; urgency=low
+
+ * Moved installed program to /usr/sbin, as it requires root privileges
+ to be run
+ * Menu entry gets called through /usr/bin/su-to-root in order to
+ ensure it has enough privileges (Closes: #215413)
+
+ -- Gunnar Wolf <gwolf@debian.org> Mon, 13 Oct 2003 16:24:45 -0500
+
+recover (1.3c-5) unstable; urgency=low
+
+ * Updated manpage stating recover does not work with ext3 (Closes:
+ #194059)
+ * Patched recover.c in order to correctly handle the situation when no
+ matching files are found (Closes: #178719)
+ * Updated standards-version to 3.6.0
+ * Reduced the number of warnings sent by the C compiler
+ * Applied patch to make it understand current e2fsprogs' notation
+ (Closes: #178720)
+
+ -- Gunnar Wolf <gwolf@debian.org> Tue, 15 Jul 2003 13:21:59 +0200
+
+recover (1.3c-4) unstable; urgency=low
+
+ * New Maintainer (Closes: #199250)
+
+ -- Gunnar Wolf <gwolf@debian.org> Sat, 5 Jul 2003 19:22:56 -0500
+
+recover (1.3c-3) unstable; urgency=low
+
+ * orphaning package see #199250
+
+ -- Noel Koethe <noel@debian.org> Sun, 29 Jun 2003 14:02:00 +0200
+
+recover (1.3c-2) unstable; urgency=low
+
+ * removed empty dir from package
+ (closes: Bug#183274)
+
+ -- Noel Koethe <noel@debian.org> Mon, 3 Mar 2003 22:57:00 +0100
+
+recover (1.3c-1) unstable; urgency=low
+
+ * new upstream from 2002-10-05
+ * new upstream fixes problem with latest debugfs
+ (closes: Bug#166493)
+ * updated Standards-Version
+ * added URL to description
+
+ -- Noel Koethe <noel@debian.org> Sat, 4 Jan 2003 23:18:00 +0100
+
+recover (1.3b-1) unstable; urgency=low
+
+ * new upstream version 1.3b from 2002-03-14
+ (closes: Bug#138360)
+ * new version removes 2GB filesize limit
+ (closes: Bug#98587)
+
+ -- Noel Koethe <noel@debian.org> Thu, 14 Mar 2002 23:40:00 +0100
+
+recover (1.3-4) unstable; urgency=low
+
+ * corrected control file
+
+ -- Noel Koethe <noel@debian.org> Fri, 8 Mar 2002 23:43:00 +0100
+
+recover (1.3-3) unstable; urgency=low
+
+ * new maintainer
+ (closes: Bug#130838)
+
+ -- Noel Koethe <noel@debian.org> Thu, 7 Mar 2002 11:18:00 +0100
+
+recover (1.3-2) unstable; urgency=low
+
+ * Orphaned this package.
+
+ -- Adrian Bunk <bunk@fs.tum.de> Fri, 25 Jan 2002 13:26:19 +0100
+
+recover (1.3-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Adrian Bunk <bunk@fs.tum.de> Thu, 8 Mar 2001 13:57:53 +0100
+
+recover (1.2-2) unstable; urgency=low
+
+ * debian/copyright: The upstream homepage has moved.
+ * Removed the dependency on the essential e2fsprogs package.
+ * Standards-Version: 3.5.0 (no changes)
+
+ -- Adrian Bunk <bunk@fs.tum.de> Sat, 17 Feb 2001 18:14:03 +0100
+
+recover (1.2-1) unstable; urgency=low
+
+ * New upstream release.
+ * Changed CFLAGS to follow new policy.
+ * Standards-Version: 3.2.1
+
+ -- Adrian Bunk <bunk@fs.tum.de> Sun, 12 Nov 2000 22:12:28 +0100
+
+recover (1.0a-2) unstable; urgency=low
+
+ * s/he/it/ at the package description.
+ * Upload sponsored by Tony Mancill <tmancill@debian.org>.
+
+ -- Adrian Bunk <bunk@fs.tum.de> Tue, 22 Aug 2000 21:19:35 +0200
+
+recover (1.0a-1) unstable; urgency=low
+
+ * Initial Release.
+ * Upload sponsored by Tony Mancill <tmancill@debian.org>.
+
+ -- Adrian Bunk <bunk@fs.tum.de> Sun, 16 Jul 2000 22:20:41 +0200
+
+Local variables:
+mode: debian-changelog
+End:
--- recover-1.3c.orig/debian/recover.1
+++ recover-1.3c/debian/recover.1
@@ -0,0 +1,50 @@
+.TH RECOVER 1 "November 4 1999"
+.SH NAME
+recover \- recover a deleted file
+.SH SYNOPSIS
+.br
+ recover [device] [options]
+.SH OPTIONS
+.br
+ -h, --help prints help
+.br
+ -a, --all no filtering; dump all deleted inodes
+.SH DESCRIPTION
+.B recover
+recovers a file which matches some ext2 - info about the deleted inode by
+getting all the deleted inodes and filtering them. It's based upon the
+Ext2Undeletion-howto by Aaron Crane. Using this utility, your chances to
+recover a lost file should increase a lot.
+.SH QUESTIONS ABOUT THE DELETED FILE
+ o Hard disk device name
+.br
+ o Year of deletion
+.br
+ o Month of deletion
+.br
+ o Weekday of deletion
+.br
+ o First/Last possible day of month
+.br
+ o Min/Max possible file size
+.br
+ o Min/Max possible deletion hour
+.br
+ o Min/Max possible deletion minute
+.br
+ o User ID of the deleted file
+.br
+ o A text string the file included (can be ignored)
+.SH BUGS
+Please note that recover does not work with ext3 filesystems, it is strictly
+ext2-only. For further information on this, please read
+/usr/share/doc/recover/README.ext2only
+.SH WARRANTY
+There is no warranty.
+.SH SEE ALSO
+.BR
+debugfs (8)
+.SH AUTHOR
+Tom Pycke (Tom.Pycke@advalvas.be)
+.SH WEBSITE
+http://users.linuxbox.com/~recover
--- recover-1.3c.orig/debian/compat
+++ recover-1.3c/debian/compat
@@ -0,0 +1 @@
+5
--- recover-1.3c.orig/debian/README.ext2only
+++ recover-1.3c/debian/README.ext2only
@@ -0,0 +1,53 @@
+Why does recover only work on true ext2 filesystems
+===================================================
+ (and not on ext3)
+
+Note: This text was shamesly taken and slightly adapted from the text
+found in the e2undel package. Thank Javier Fernández-Sanguino for the
+information ;-)
+
+If you delete a file stored on an ext2 file system, its data is
+not instantly lost. What happens is:
+
+· ext2 marks the file's data blocks as available in its block
+ bitmap
+
+· ext2 marks the file's inode as available in its inode bitmap
+
+· ext2 sets the deletion time in the file's inode
+
+· ext2 invalidates the file's name in the directory entry
+
+So, the file's data is not actually deleted (but it might be
+overwritten in the future); and the crucial information in the inode
+(owner, access rights, size, data blocks occupied by the file and some
+more) is not touched. If you know the inode number, you can recover
+the file by using Ted Ts'o's debugfs(8) tool.
+
+What is lost however is the association between the file name and
+the inode: You can't restore the former file name from the inode
+information. To recover the data of a deleted file, you must
+completely rely on the information in the inode like file size, owner,
+deletion time, etc. ext3 behaves different from ext2 in one
+regard: When a file is deleted, the information in the inode is also
+removed. Tools like e2undel (or Ted T'so's debugfs(8)) that rely
+on this information when undeleting files don't work anymore.
+
+--------------------------------------------------------------------
+
+If you have an important file you lost on an ext3 (or any other kind
+of) partition, you can do as recommended by
+http://recover.sourceforge.net/unix/ as the true Unix way:
+
+grep -a -B[size before] -A[size after] 'text' /dev/[your_partition]
+
+Replace [size before], [size after] and [your_partition] with
+something meaningful.
+
+e.g.: If you want to undelete a letter (+- 200 lines) starting with
+"Hi mum" which was stored on /dev/hda1 you can try:
+
+grep -a -B2 -A200 "Hi mum" /dev/hda1
+
+Of course, this will only work for text or otherwise human-readable
+files.
--- recover-1.3c.orig/debian/copyright
+++ recover-1.3c/debian/copyright
@@ -0,0 +1,13 @@
+This package was debianized by
+Adrian Bunk <bunk@fs.tum.de> on Sun, 16 Jul 2000 22:20:41 +0200
+Noel Koethe <noel@debian.org> on Thu, 7 Mar 2002 11:16:00 +0200
+Gunnar Wolf <gwolf@debian.org> on Sat, 5 Jul 2003 19:22:56 -0500
+
+It was downloaded from http://recover.sourceforge.net/linux/recover/
+
+Upstream Author: Tom Pycke <Tom.Pycke@advalvas.be>
+
+Copyright:
+
+This source code is copyright under the GNU Public License (GPL), a copy
+of which may be found at /usr/share/common-licenses/GPL