--- nasty-0.6.orig/debian/compat +++ nasty-0.6/debian/compat @@ -0,0 +1 @@ +5 --- nasty-0.6.orig/debian/rules +++ nasty-0.6/debian/rules @@ -0,0 +1,62 @@ +#!/usr/bin/make -f +#export DH_VERBOSE=1 + + +clean: clean-patched unpatch + +clean-patched: + dh_testdir + dh_testroot + rm -f build-stamp + + [ ! -f Makefile ] || $(MAKE) clean + + dh_clean + +patch: patch-stamp + +patch-stamp: + dpatch apply-all + dpatch cat-all >patch-stamp + +unpatch: + dpatch deapply-all + rm -rf patch-stamp debian/patched + +build-stamp: patch + dh_testdir + + $(MAKE) + + touch build-stamp + +build: build-stamp + +install: build + dh_testdir + dh_testroot + dh_prep + + $(MAKE) DESTDIR=$(CURDIR)/debian/nasty install + +binary: binary-arch + +binary-arch: install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs debian/README.source + dh_installman debian/nasty.1 + dh_lintian + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-indep: + +.PHONY: clean build install binary binary-arch binary-indep --- nasty-0.6.orig/debian/README.source +++ nasty-0.6/debian/README.source @@ -0,0 +1,5 @@ +This source package uses dpatch for the modifications of the upstream source. +If you want to change something it is best to use the dpatch approach as +documented in /usr/share/doc/dpatch/README.source.gz + + -- Tiago Bortoletto Vaz Sat, 26 Sep 2009 23:15:23 -0300 --- nasty-0.6.orig/debian/nasty.1 +++ nasty-0.6/debian/nasty.1 @@ -0,0 +1,58 @@ +.TH NASTY "1" "September 2009" "nasty " "User Commands" +.SH NAME +nasty \- A tool which helps you to recover your GPG passphrase +.SH SYNOPSIS +.B nasty +[\fIOPTIONS\fR] +.SH DESCRIPTION +.B nasty +is a program that helps you to recover the passphrase of your PGP or GPG-key in +case you forget or lost it. +.SH OPTIONS +.TP +\fB\-a x\fR +set minimum length of passphrase +.TP +\fB\-b x\fR +set maximum length +.TP +\fB\-m x\fR +set guessing mode: +.BR + \fBincremental\fR: try them all +.BR + \fBrandom\fR: try at random +.BR + \fBfile\fR: read phrases from file (use \-i) +.TP +\fB\-i x\fR +file to read the passphrases from +.TP +\fB\-f x\fR +file to write the found passphrase to +.TP +\fB\-c x...\fR +charset, one or more from the following: +.BR + a: a\-z +.BR + A: A\-Z +.BR + 0: 0\-9 +.BR + .: all ascii values (32...126) +.BR + +: 32...255 (default(!)) + +.TP +\fB\-h\fR +show command options +.SH ISSUES +.PP +Nasty will not work if you try it with a gpg-agent running in your system. For +obvious reasons the agent will ask you the passphrase to access your private +key - which you probably don't record, right? :) +.SH AUTHOR +.PP +This manual page was written by Tiago Bortoletto Vaz for +the Debian GNU/Linux system (but may be used by others). --- nasty-0.6.orig/debian/control +++ nasty-0.6/debian/control @@ -0,0 +1,21 @@ +Source: nasty +Section: utils +Priority: optional +Maintainer: Debian Forensics +Uploaders: Tiago Bortoletto Vaz +Build-Depends: debhelper (>= 7), dpatch, libgpgme11-dev +Standards-Version: 3.8.4 +Homepage: http://www.vanheusden.com/nasty/ +Vcs-Browser: http://git.debian.org/?p=forensics/nasty.git +Vcs-Git: git://git.debian.org/forensics/nasty.git + +Package: nasty +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends}, libgpgme11 +Description: A tool which helps you to recover your GPG passphrase + Nasty is a program that helps you to recover the passphrase of your PGP or + GPG-key in case you forget or lost it. The following features will make things + easier: + - set minimum/maximun length of the passphrase + - incremental mode, random mode or reads a file for guessing + - charset filter --- nasty-0.6.orig/debian/changelog +++ nasty-0.6/debian/changelog @@ -0,0 +1,15 @@ +nasty (0.6-2) unstable; urgency=low + + * Change VCS adddress. + * Change maintainer to Debian Forensics + * Add a new session in the manual page regarding the issue with gpg-agent. + Thanks to Gavin Westwood. (Closes: #568231) + * Update Policy version to 3.8.4 + + -- Tiago Bortoletto Vaz Fri, 05 Mar 2010 01:33:20 -0300 + +nasty (0.6-1) unstable; urgency=low + + * Initial Release. (Closes: #547667) + + -- Tiago Bortoletto Vaz Sun, 27 Sep 2009 18:52:18 -0300 --- nasty-0.6.orig/debian/watch +++ nasty-0.6/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://www.vanheusden.com/nasty/nasty-(.+)\.tgz --- nasty-0.6.orig/debian/copyright +++ nasty-0.6/debian/copyright @@ -0,0 +1,28 @@ +Name: nasty +Source: http://www.vanheusden.com/nasty/ + +Files: * +Copyright: 2009, Folkert van Heusden +License: GPL-2 + 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; version 2 + of the License. + . + 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. + . + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the complete text of the GNU General Public License + can be found in /usr/share/common-licenses/GPL-2 file. + +Files: debian/* +Copyright: 2009, Tiago Bortoletto Vaz +License: GPL-2+ + On Debian systems, the complete text of the GNU General Public License + can be found in /usr/share/common-licenses/GPL-2 file. --- nasty-0.6.orig/debian/patches/02_add_largefile_support.dpatch +++ nasty-0.6/debian/patches/02_add_largefile_support.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_add_largefile_support.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Support large files in order to avoid problems in chroot builds + +@DPATCH@ +diff -urNad nasty~/Makefile nasty/Makefile +--- nasty~/Makefile 2009-09-28 02:08:00.000000000 -0300 ++++ nasty/Makefile 2009-09-28 02:08:00.000000000 -0300 +@@ -1,7 +1,7 @@ + VERSION=0.6 + + DEBUG=-g # -pg +-CFLAGS+=-Wall -O2 -DVERSION=\"${VERSION}\" $(DEBUG) ++CFLAGS+=-Wall -O2 -DVERSION=\"${VERSION}\" $(DEBUG) -D_FILE_OFFSET_BITS=64 + LDFLAGS=-lgpgme $(DEBUG) + BINDIR=/usr/bin + --- nasty-0.6.orig/debian/patches/00list +++ nasty-0.6/debian/patches/00list @@ -0,0 +1,2 @@ +01_add_destdir_to_makefile +02_add_largefile_support --- nasty-0.6.orig/debian/patches/01_add_destdir_to_makefile.dpatch +++ nasty-0.6/debian/patches/01_add_destdir_to_makefile.dpatch @@ -0,0 +1,28 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_add_destdir_to_makefile.dpatch by Tiago Bortoletto Vaz +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Add DESTDIR to send the binary to the right place in Makefile + +@DPATCH@ +diff -urNad nasty-0.6~/Makefile nasty-0.6/Makefile +--- nasty-0.6~/Makefile 2009-09-27 19:12:55.000000000 -0300 ++++ nasty-0.6/Makefile 2009-09-27 19:14:15.000000000 -0300 +@@ -3,6 +3,7 @@ + DEBUG=-g # -pg + CFLAGS+=-Wall -O2 -DVERSION=\"${VERSION}\" $(DEBUG) + LDFLAGS=-lgpgme $(DEBUG) ++BINDIR=/usr/bin + + OBJS=nasty.o + +@@ -12,7 +13,8 @@ + $(CC) -Wall -W $(OBJS) $(LDFLAGS) -o nasty + + install: nasty +- cp nasty /usr/bin ++ mkdir -p $(DESTDIR)/$(BINDIR) ++ cp nasty $(DESTDIR)/$(BINDIR) + + clean: + rm -f $(OBJS) nasty core