From 7f74c0d7ec6ed5a0a8df8e45bb8b54e877f5a04f Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Sat, 23 Feb 2013 10:03:40 +0100 Subject: [PATCH] Import of dcfldd_1.3.4.1-2.1.debian.tar.gz --- debian/changelog | 32 +++++ debian/compat | 1 + debian/control | 29 +++++ debian/copyright | 112 ++++++++++++++++++ debian/docs | 1 + .../patches/fix-implicit-declarations.patch | 65 ++++++++++ debian/patches/fix-manpage-whatis.patch | 14 +++ debian/patches/fix-typo.patch | 23 ++++ debian/patches/series | 3 + debian/rules | 85 +++++++++++++ debian/source/format | 1 + debian/source/options | 1 + debian/watch | 3 + 13 files changed, 370 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/patches/fix-implicit-declarations.patch create mode 100644 debian/patches/fix-manpage-whatis.patch create mode 100644 debian/patches/fix-typo.patch create mode 100644 debian/patches/series create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/source/options create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..9171eba --- /dev/null +++ b/debian/changelog @@ -0,0 +1,32 @@ +dcfldd (1.3.4.1-2.1) unstable; urgency=low + + * Non-maintainer upload. + * Replaced homepage pseudo header with regular field. Closes: #615447 + * Updated standards version to 3.9.3 + * Fixed lintian warnings + * Updated outdated autotools helper files. Closes: #533686 + + -- Miah Gregory Sat, 12 May 2012 23:07:38 +0100 + +dcfldd (1.3.4.1-2) unstable; urgency=low + + * closes: #453577 + * updated debian/watch to use built in uscan sf.net handling + + -- Kenny Duffus Fri, 30 Nov 2007 11:32:37 +0000 + +dcfldd (1.3.4.1-1) unstable; urgency=low + + * closes: #357738 + * updated standards version to 3.7.2 + * new upstream (renamed from 1.3.4-1 for compatability) which Fixed an issue + with error-producing blocks not being zero padding under BSD systems + + -- Kenny Duffus Sat, 22 Sep 2007 09:57:01 +0100 + +dcfldd (1.3.4-0ubuntu1) dapper; urgency=low + + * Initial release + + -- Kenny Duffus Sun, 12 Feb 2006 18:46:07 +0000 + 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..645ff0b --- /dev/null +++ b/debian/control @@ -0,0 +1,29 @@ +Source: dcfldd +Section: admin +Priority: optional +Maintainer: Kenny Duffus +Build-Depends: debhelper (>= 7.0.50~), autotools-dev +Standards-Version: 3.9.3 +Homepage: http://dcfldd.sourceforge.net/ + +Package: dcfldd +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: enhanced version of dd for forensics and security + Based on the dd program with the following additional features: + . + - Hashing on-the-fly, dcfldd can hash the input data as it is being + transferred, helping to ensure data integrity. + - Status output, dcfldd can update the user of its progress in terms of the + amount of data transferred and how much longer operation will take. + - Flexible disk wipes, dcfldd can be used to wipe disks quickly and with a + known pattern if desired. + - Image/wipe Verify, dcfldd can verify that a target drive is a bit-for-bit + match of the specified input file or pattern. + - Multiple outputs, dcfldd can output to multiple files or disks at the same + time. + - Split output, dcfldd can split output to multiple files with more + configurability than the split command. + - Piped output and logs, dcfldd can send all its log data and output to + commands as well as files natively. + . diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..3b1c5c9 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,112 @@ +This package was debianized by Kenny Duffus on +Sun, 12 Feb 2006 18:46:07 +0000. + +It was downloaded from http://dcfldd.sourceforge.net/ + +Author: Nicholas Harbour + +dcfldd is based on GNU dd written by Paul Rubin, David MacKenzie and +Stuart Kemp. + +Copyright (C) 1985-2006 Free Software Foundation, Inc. + +License: + + 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; either version 2 of the License, or + (at your option) any later version. + + 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 package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + MA 02110-1301, USA. + +You should have a copy of this license in the file +/usr/share/common-licenses/GPL on your Debian system. + +With the exception of the following: + +md5.c and md5.h are Copyright (C) 1990, RSA Data Security, Inc under the +following license: + + License to copy and use this software is granted provided that + it is identified as the "RSA Data Security, Inc. MD5 Message + Digest Algorithm" in all material mentioning or referencing this + software or this function. + + License is also granted to make and use derivative works + provided that such works are identified as "derived from the RSA + Data Security, Inc. MD5 Message Digest Algorithm" in all + material mentioning or referencing the derived work. + + RSA Data Security, Inc. makes no representations concerning + either the merchantability of this software or the suitability + of this software for any particular purpose. It is provided "as + is" without express or implied warranty of any kind. + + These notices must be retained in any copies of any part of this + documentation and/or software. + +sha1.c and sha1.h are Copyright (c) 2001-2003 Allan Saddi +under the following license: + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY ALLAN SADDI AND HIS 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 ALLAN SADDI OR HIS 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. + +sha2.c and sha2.h are Copyright (c) 2000-2001 Aaron D. Gifford + under the following license: + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of the copyright holder nor the names of contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTOR(S) ``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 AUTHOR OR CONTRIBUTOR(S) 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. + +The Debian packaging is (C) 2006, Kenny Duffus and is +licensed under the GPL v2 or (at your option) any later version, see above. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README diff --git a/debian/patches/fix-implicit-declarations.patch b/debian/patches/fix-implicit-declarations.patch new file mode 100644 index 0000000..7aff3fb --- /dev/null +++ b/debian/patches/fix-implicit-declarations.patch @@ -0,0 +1,65 @@ +Fixing implicit declaration warnings. + +--- a/hash.h ++++ b/hash.h +@@ -99,6 +99,8 @@ + extern void hash_update_buf(hashlist_t *, int, int, void *, size_t); + extern void hash_remainder(hashlist_t *, int); + ++extern void init_hashlist(hashlist_t **hashlist, hashflag_t flags); ++ + /* inner hashl_* funcitons are for iterating over hashlists */ + extern void hashl_init(hashlist_t *, int); + extern void hashl_update(hashlist_t *, int, const void *, size_t); +--- a/split.c ++++ b/split.c +@@ -20,6 +20,9 @@ + + /* GNU dd originally written by Paul Rubin, David MacKenzie, and Stuart Kemp. */ + ++#define _GNU_SOURCE 1 ++#include ++ + #include "dcfldd.h" + #include "split.h" + #include +--- a/translate.c ++++ b/translate.c +@@ -23,6 +23,7 @@ + + #include "dcfldd.h" + #include "log.h" ++#include "util.h" + + /* Output representation of newline and space characters. + They change if we're converting to EBCDIC. */ +--- a/util.c ++++ b/util.c +@@ -32,6 +32,7 @@ + + #include "dcfldd.h" + #include ++#include + #include + #include + #include +@@ -40,6 +41,8 @@ + #include "config.h" + #include + #include ++#include ++#include "safe-read.h" + + int buggy_lseek_support(int fdesc) + { +--- a/util.h ++++ b/util.h +@@ -41,7 +41,7 @@ + extern int bit_count(register unsigned int); + extern void replace_escapes(char *); + extern FILE *popen2(const char *, const char *); +-extern pclose2(FILE *); ++extern int pclose2(FILE *); + + #if (!HAVE_DECL_STRNDUP) + extern char *strndup(const char *, size_t); diff --git a/debian/patches/fix-manpage-whatis.patch b/debian/patches/fix-manpage-whatis.patch new file mode 100644 index 0000000..24446d3 --- /dev/null +++ b/debian/patches/fix-manpage-whatis.patch @@ -0,0 +1,14 @@ +Update whatis entry for manual page to something more useful. +Index: dcfldd-1.3.4.1/dcfldd.1 +=================================================================== +--- dcfldd-1.3.4.1.orig/dcfldd.1 2012-05-12 23:37:00.033037122 +0100 ++++ dcfldd-1.3.4.1/dcfldd.1 2012-05-12 23:40:26.159509098 +0100 +@@ -1,7 +1,7 @@ + .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.35. + .TH DCFLDD "1" "February 2006" "dcfldd (dcfldd) 1.3.4" "User Commands" + .SH NAME +-dcfldd \- manual page for dcfldd (dcfldd) 1.3.4 ++dcfldd \- enhanced version of dd for forensics and security + .SH SYNOPSIS + .B dcfldd + [\fIOPTION\fR]... diff --git a/debian/patches/fix-typo.patch b/debian/patches/fix-typo.patch new file mode 100644 index 0000000..f795655 --- /dev/null +++ b/debian/patches/fix-typo.patch @@ -0,0 +1,23 @@ +Fix spelling of 'separate' in the man page and source code. +--- a/dcfldd.1 ++++ b/dcfldd.1 +@@ -68,7 +68,7 @@ + send MD5 hash output to FILE instead of stderr + .IP + if you are using multiple hash algorithms you +-can send each to a seperate file using the ++can send each to a separate file using the + convention ALGORITHMlog=FILE, for example + md5log=FILE1, sha1log=FILE2, etc. + .TP +--- a/dcfldd.c ++++ b/dcfldd.c +@@ -181,7 +181,7 @@ + in a comma separated list\n\ + hashlog=FILE send MD5 hash output to FILE instead of stderr\n\ + if you are using multiple hash algorithms you\n\ +- can send each to a seperate file using the\n\ ++ can send each to a separate file using the\n\ + convention ALGORITHMlog=FILE, for example\n\ + md5log=FILE1, sha1log=FILE2, etc.\n\ + hashlog:=COMMAND exec and write hashlog to process COMMAND\n\ diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..582a413 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,3 @@ +fix-typo.patch +fix-manpage-whatis.patch +fix-implicit-declarations.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..8e7ba87 --- /dev/null +++ b/debian/rules @@ -0,0 +1,85 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +config.status: configure + dh_testdir + dh_autotools-dev_updateconfig + # Add here commands to configure the package. + CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info + + +build: build-arch build-indep +build-arch: build-stamp +build-indep: build-stamp +build-stamp: config.status + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp config.guess.dh-orig config.sub.dh-orig + + # Add here commands to clean up after the build process. + [ ! -f Makefile ] || $(MAKE) distclean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + # Add here commands to install the package into debian/dcfldd. + $(MAKE) install DESTDIR=$(CURDIR)/debian/dcfldd + + +# 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_installchangelogs ChangeLog + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_installdocs + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/options b/debian/source/options new file mode 100644 index 0000000..97fee11 --- /dev/null +++ b/debian/source/options @@ -0,0 +1 @@ +extend-diff-ignore = "(^|/)(config.sub|config.guess)$" diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..a15bcf8 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://sf.net/dcfldd/ dcfldd-([\d.]*).tar.gz