From 7013896cccfd49cb90466176b1025b2a43067e72 Mon Sep 17 00:00:00 2001 From: cy Date: Fri, 29 Jun 2012 23:01:42 +0000 Subject: Add hdrecover, a utility to check for and repair bad disk sectors. --- sysutils/hdrecover/Makefile | 22 ++++++++++++++++++++++ sysutils/hdrecover/distinfo | 2 ++ sysutils/hdrecover/files/patch-hdrecover.cpp | 14 ++++++++++++++ sysutils/hdrecover/pkg-descr | 9 +++++++++ sysutils/hdrecover/pkg-plist | 1 + 5 files changed, 48 insertions(+) create mode 100644 sysutils/hdrecover/Makefile create mode 100644 sysutils/hdrecover/distinfo create mode 100644 sysutils/hdrecover/files/patch-hdrecover.cpp create mode 100644 sysutils/hdrecover/pkg-descr create mode 100644 sysutils/hdrecover/pkg-plist (limited to 'sysutils/hdrecover') diff --git a/sysutils/hdrecover/Makefile b/sysutils/hdrecover/Makefile new file mode 100644 index 000000000000..55dd007cc65d --- /dev/null +++ b/sysutils/hdrecover/Makefile @@ -0,0 +1,22 @@ +# New ports collection makefile for: hdrecover +# Date created: 18 June 2012 +# Whom: Cy Schubert +# +# $FreeBSD$ +# + +PORTNAME= hdrecover +PORTVERSION= 0.4 +CATEGORIES= sysutils +MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} + +MAINTAINER= cy@FreeBSD.org +COMMENT= Attempts to recover a hard disk that has bad blocks on it. + +GNU_CONFIGURE= yes +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +PLIST_FILES= bin/hdrecover + +.include diff --git a/sysutils/hdrecover/distinfo b/sysutils/hdrecover/distinfo new file mode 100644 index 000000000000..f17c25ac1853 --- /dev/null +++ b/sysutils/hdrecover/distinfo @@ -0,0 +1,2 @@ +SHA256 (hdrecover-0.4.tar.gz) = 609a0755dbda744e3dc89bffd1c673fd5c370448aa43e426d90ff35faa74a20d +SIZE (hdrecover-0.4.tar.gz) = 85409 diff --git a/sysutils/hdrecover/files/patch-hdrecover.cpp b/sysutils/hdrecover/files/patch-hdrecover.cpp new file mode 100644 index 000000000000..84daf5bd6d1f --- /dev/null +++ b/sysutils/hdrecover/files/patch-hdrecover.cpp @@ -0,0 +1,14 @@ +--- hdrecover.cpp.orig 2011-09-25 04:48:10.000000000 -0700 ++++ hdrecover.cpp 2012-06-29 12:07:43.004361705 -0700 +@@ -26,7 +26,11 @@ + #include + #include + #include ++#ifdef __FreeBSD_cc_version ++#include ++#else + #include ++#endif + #include + #include + #include diff --git a/sysutils/hdrecover/pkg-descr b/sysutils/hdrecover/pkg-descr new file mode 100644 index 000000000000..26b5fe07545a --- /dev/null +++ b/sysutils/hdrecover/pkg-descr @@ -0,0 +1,9 @@ +Attempts to recover a hard disk that has bad blocks on it. + +WARNING: A hard disk with bad blocks on is likely to fail! If you value +your data you should get a new hard disk instead of using this program! + +However, if you can't afford a new hard disk, or just like being reckless +with your data then this tool might just help you out! + +WWW: http://hdrecover.sourceforge.net/ diff --git a/sysutils/hdrecover/pkg-plist b/sysutils/hdrecover/pkg-plist new file mode 100644 index 000000000000..c80422a0d613 --- /dev/null +++ b/sysutils/hdrecover/pkg-plist @@ -0,0 +1 @@ +@dirrm %%DOCSDIR%% -- cgit