summaryrefslogtreecommitdiff
path: root/sysutils/dd_rhelp
diff options
context:
space:
mode:
authorghen <ghen@pkgsrc.org>2006-03-08 10:01:49 +0000
committerghen <ghen@pkgsrc.org>2006-03-08 10:01:49 +0000
commitc733c124e0141878ff2948af68b98bf53241641a (patch)
treea3398e78ddfb2ced7d4a5007e9124a129f88fc46 /sysutils/dd_rhelp
parentbe9319543c89f6cefa7f14c2f5cac54c30671a6a (diff)
downloadpkgsrc-c733c124e0141878ff2948af68b98bf53241641a.tar.gz
Import dd_rhelp, a helper script for sysutils/dd_rescue.
dd_rhelp is a bash script that handles a very useful program written in C by Kurt Garloff which is called dd_rescue, which roughly acts as the dd(1) command with the characteristic to NOT stop when it falls on read/write errors. But using it is quite time consuming. This is where dd_rhelp come to help. In short, it'll use dd_rescue on your entire disc, but will try to gather the maximum valid data before trying for ages on bad sectors. So if you leave dd_rhelp work for infinite time, it'll have the same effect as a simple dd_rescue. But because you might not have this infinite time (this could indeed take really long in some cases...), dd_rhelp will jump over bad sectors and rescue valid data. In the long run, it'll parse all your device with dd_rescue. You can Ctrl-C it whenever you want, and rerun-it at will, it'll resume its job as it depends on the log files dd_rescue creates.
Diffstat (limited to 'sysutils/dd_rhelp')
-rw-r--r--sysutils/dd_rhelp/DESCR13
-rw-r--r--sysutils/dd_rhelp/Makefile23
-rw-r--r--sysutils/dd_rhelp/PLIST2
-rw-r--r--sysutils/dd_rhelp/distinfo5
4 files changed, 43 insertions, 0 deletions
diff --git a/sysutils/dd_rhelp/DESCR b/sysutils/dd_rhelp/DESCR
new file mode 100644
index 00000000000..b5ee484e698
--- /dev/null
+++ b/sysutils/dd_rhelp/DESCR
@@ -0,0 +1,13 @@
+dd_rhelp is a bash script that handles a very useful program written in C by
+Kurt Garloff which is called dd_rescue, which roughly acts as the dd(1) command
+with the characteristic to NOT stop when it falls on read/write errors. But
+using it is quite time consuming. This is where dd_rhelp come to help.
+
+In short, it'll use dd_rescue on your entire disc, but will try to gather the
+maximum valid data before trying for ages on bad sectors. So if you leave
+dd_rhelp work for infinite time, it'll have the same effect as a simple
+dd_rescue. But because you might not have this infinite time (this could indeed
+take really long in some cases...), dd_rhelp will jump over bad sectors and
+rescue valid data. In the long run, it'll parse all your device with dd_rescue.
+You can Ctrl-C it whenever you want, and rerun-it at will, it'll resume its job
+as it depends on the log files dd_rescue creates.
diff --git a/sysutils/dd_rhelp/Makefile b/sysutils/dd_rhelp/Makefile
new file mode 100644
index 00000000000..5be0325f1fd
--- /dev/null
+++ b/sysutils/dd_rhelp/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/03/08 10:01:49 ghen Exp $
+
+DISTNAME= dd_rhelp-0.0.6
+CATEGORIES= sysutils
+MASTER_SITES= http://www.kalysto.org/pkg/
+
+MAINTAINER= ghen@NetBSD.org
+HOMEPAGE= http://www.kalysto.org/utilities/dd_rhelp/index.en.html
+COMMENT= Rescue hard disk helper
+
+GNU_CONFIGURE= yes
+
+USE_TOOLS+= bash:run
+
+# can't use REPLACE_INTERPRETER because it happens too early
+SUBST_CLASSES+= bash
+SUBST_STAGE.bash= post-build
+SUBST_FILES.bash= dd_rhelp
+SUBST_SED.bash= -e 's,^\#!.*/bash,\#!${TOOLS_PATH.bash},'
+
+DEPENDS+= dd_rescue>=1.03:../../sysutils/dd_rescue
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/dd_rhelp/PLIST b/sysutils/dd_rhelp/PLIST
new file mode 100644
index 00000000000..bba3c5b512b
--- /dev/null
+++ b/sysutils/dd_rhelp/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/03/08 10:01:49 ghen Exp $
+bin/dd_rhelp
diff --git a/sysutils/dd_rhelp/distinfo b/sysutils/dd_rhelp/distinfo
new file mode 100644
index 00000000000..0977bbbf3f5
--- /dev/null
+++ b/sysutils/dd_rhelp/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/03/08 10:01:49 ghen Exp $
+
+SHA1 (dd_rhelp-0.0.6.tar.gz) = 4b0ac6c44c664d860e2bce24328cb62f7ec2a323
+RMD160 (dd_rhelp-0.0.6.tar.gz) = 8702f9bdf4195c79e2f3cccb1681d2d6b5153270
+Size (dd_rhelp-0.0.6.tar.gz) = 67098 bytes