[Forensics-changes] [nasty] 02/02: Imported Debian patch 0.6-1

Joao Eriberto Mota Filho eriberto at moszumanska.debian.org
Sat Feb 28 23:59:33 UTC 2015


This is an automated email from the git hooks/post-receive script.

eriberto pushed a commit to branch debian
in repository nasty.

commit 9b972ffb685011809ef7355d7c0567633730d5df
Author: Tiago Bortoletto Vaz <tiago at debian.org>
Date:   Sun Sep 27 18:52:18 2009 -0300

    Imported Debian patch 0.6-1
---
 debian/README.source                             |  5 ++
 debian/changelog                                 |  5 ++
 debian/compat                                    |  1 +
 debian/control                                   | 20 ++++++++
 debian/copyright                                 | 28 +++++++++++
 debian/nasty.1                                   | 53 ++++++++++++++++++++
 debian/patches/00list                            |  2 +
 debian/patches/01_add_destdir_to_makefile.dpatch | 28 +++++++++++
 debian/patches/02_add_largefile_support.dpatch   | 19 ++++++++
 debian/rules                                     | 62 ++++++++++++++++++++++++
 debian/watch                                     |  2 +
 11 files changed, 225 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..f05f712
--- /dev/null
+++ b/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 <tiago at debian.org>  Sat, 26 Sep 2009 23:15:23 -0300
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..461ca84
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+nasty (0.6-1) unstable; urgency=low
+
+  * Initial Release. (Closes: #547667)
+
+ -- Tiago Bortoletto Vaz <tiago at debian.org>  Sun, 27 Sep 2009 18:52:18 -0300
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..ff24d09
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,20 @@
+Source: nasty
+Section: utils
+Priority: extra
+Maintainer: Tiago Bortoletto Vaz <tiago at debian.org>
+Build-Depends: debhelper (>= 7), dpatch, libgpgme11-dev
+Standards-Version: 3.8.3
+Homepage: http://www.vanheusden.com/nasty/
+Vcs-Git: git://git.debian.org/users/zadig-guest/nasty.git
+Vcs-Browser: http://git.debian.org/git/users/zadig-guest/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
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..25c59b2
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,28 @@
+Name: nasty
+Source: http://www.vanheusden.com/nasty/
+
+Files: *
+Copyright: 2009, Folkert van Heusden <folkert at vanheusden.com>
+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 <tiago at debian.org>
+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.
diff --git a/debian/nasty.1 b/debian/nasty.1
new file mode 100644
index 0000000..85a19f3
--- /dev/null
+++ b/debian/nasty.1
@@ -0,0 +1,53 @@
+.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 AUTHOR
+.PP
+This manual page was written by Tiago Bortoletto Vaz <tiago at debian.org> for
+the Debian GNU/Linux system (but may be used by others).
diff --git a/debian/patches/00list b/debian/patches/00list
new file mode 100644
index 0000000..38aa38c
--- /dev/null
+++ b/debian/patches/00list
@@ -0,0 +1,2 @@
+01_add_destdir_to_makefile
+02_add_largefile_support
diff --git a/debian/patches/01_add_destdir_to_makefile.dpatch b/debian/patches/01_add_destdir_to_makefile.dpatch
new file mode 100644
index 0000000..95e998b
--- /dev/null
+++ b/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 <tiago at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Add DESTDIR to send the binary to the right place in Makefile
+
+ at 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
diff --git a/debian/patches/02_add_largefile_support.dpatch b/debian/patches/02_add_largefile_support.dpatch
new file mode 100644
index 0000000..ce80fda
--- /dev/null
+++ b/debian/patches/02_add_largefile_support.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_add_largefile_support.dpatch by  <tiago at thinkpad.debian-ba.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Support large files in order to avoid problems in chroot builds
+
+ at 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
+ 
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..762c830
--- /dev/null
+++ b/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
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..44c523f
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://www.vanheusden.com/nasty/nasty-(.+)\.tgz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/nasty.git



More information about the forensics-changes mailing list