From 90b040899ac214bf14e22eff355424a0241ab0d7 Mon Sep 17 00:00:00 2001 From: ghen Date: Wed, 8 Mar 2006 08:42:04 +0000 Subject: Import dd_rescue, a dd(1)-like tool for rescuing data from media with errors. Like dd, dd_rescue does copy data from one file or block device to another. You can specify file positions (called seek and Skip in dd). There are several differences: * dd_rescue does not provide character conversions. * The command syntax is different. Call dd_rescue -h. * dd_rescue does not abort on errors on the input file, unless you specify a maximum error number. Then dd_rescue will abort when this number is reached. * dd_rescue does not truncate the output file, unless asked to. * You can tell dd_rescue to start from the end of a file and move backwards. * It uses two block sizes, a large (soft) block size and a small (hard) block size. In case of errors, the size falls back to the small one and is promoted again after a while without errors. --- sysutils/dd_rescue/DESCR | 14 ++++++++++++++ sysutils/dd_rescue/Makefile | 18 ++++++++++++++++++ sysutils/dd_rescue/PLIST | 2 ++ sysutils/dd_rescue/distinfo | 6 ++++++ sysutils/dd_rescue/patches/patch-aa | 14 ++++++++++++++ 5 files changed, 54 insertions(+) create mode 100644 sysutils/dd_rescue/DESCR create mode 100644 sysutils/dd_rescue/Makefile create mode 100644 sysutils/dd_rescue/PLIST create mode 100644 sysutils/dd_rescue/distinfo create mode 100644 sysutils/dd_rescue/patches/patch-aa (limited to 'sysutils') diff --git a/sysutils/dd_rescue/DESCR b/sysutils/dd_rescue/DESCR new file mode 100644 index 00000000000..5b5fab4bbf3 --- /dev/null +++ b/sysutils/dd_rescue/DESCR @@ -0,0 +1,14 @@ +Like dd, dd_rescue does copy data from one file or block device to another. +You can specify file positions (called seek and Skip in dd). + +There are several differences: +* dd_rescue does not provide character conversions. +* The command syntax is different. Call dd_rescue -h. +* dd_rescue does not abort on errors on the input file, unless you specify a + maximum error number. Then dd_rescue will abort when this number is + reached. +* dd_rescue does not truncate the output file, unless asked to. +* You can tell dd_rescue to start from the end of a file and move backwards. +* It uses two block sizes, a large (soft) block size and a small (hard) block + size. In case of errors, the size falls back to the small one and is + promoted again after a while without errors. diff --git a/sysutils/dd_rescue/Makefile b/sysutils/dd_rescue/Makefile new file mode 100644 index 00000000000..a0f37db3eb0 --- /dev/null +++ b/sysutils/dd_rescue/Makefile @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1.1.1 2006/03/08 08:42:04 ghen Exp $ + +DISTNAME= dd_rescue-1.11 +CATEGORIES= sysutils +MASTER_SITES= ${HOMEPAGE} + +MAINTAINER= ghen@NetBSD.org +HOMEPAGE= http://www.garloff.de/kurt/linux/ddrescue/ +COMMENT= dd(1)-like tool for rescuing data from media with errors + +WRKSRC= ${WRKDIR}/dd_rescue + +BUILD_TARGET= dd_rescue + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC:Q}/dd_rescue ${PREFIX:Q}/bin/ + +.include "../../mk/bsd.pkg.mk" diff --git a/sysutils/dd_rescue/PLIST b/sysutils/dd_rescue/PLIST new file mode 100644 index 00000000000..d4e5d649cfd --- /dev/null +++ b/sysutils/dd_rescue/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2006/03/08 08:42:04 ghen Exp $ +bin/dd_rescue diff --git a/sysutils/dd_rescue/distinfo b/sysutils/dd_rescue/distinfo new file mode 100644 index 00000000000..2e9c397a457 --- /dev/null +++ b/sysutils/dd_rescue/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2006/03/08 08:42:04 ghen Exp $ + +SHA1 (dd_rescue-1.11.tar.gz) = 5c00ab592087506ce9e2851c8b4443659bbf9226 +RMD160 (dd_rescue-1.11.tar.gz) = aaf44b8034162ae0738bf0613ac3c6ac4e1ea6f0 +Size (dd_rescue-1.11.tar.gz) = 17259 bytes +SHA1 (patch-aa) = fbb0fce59b038bad269379ca46592eab4f7929bd diff --git a/sysutils/dd_rescue/patches/patch-aa b/sysutils/dd_rescue/patches/patch-aa new file mode 100644 index 00000000000..a39f37cb995 --- /dev/null +++ b/sysutils/dd_rescue/patches/patch-aa @@ -0,0 +1,14 @@ +$NetBSD: patch-aa,v 1.1.1.1 2006/03/08 08:42:04 ghen Exp $ + +--- Makefile.orig 2006-03-08 09:29:43.000000000 +0100 ++++ Makefile +@@ -6,9 +6,6 @@ VERSION = 1.11 + + DESTDIR = + +-CC = gcc +-RPM_OPT_FLAGS = -O2 -Wall -g +-CFLAGS = $(RPM_OPT_FLAGS) $(EXTRA_CFLAGS) + DEFINES = -DVERSION=\"$(VERSION)\" + INSTALL = install + INSTALLFLAGS = -s -- cgit v1.2.3