diff options
author | cy <cy@FreeBSD.org> | 2012-06-30 07:01:42 +0800 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2012-06-30 07:01:42 +0800 |
commit | 7013896cccfd49cb90466176b1025b2a43067e72 (patch) | |
tree | 5ebc39ea4efe6548e8a18962e589500e21fac326 /sysutils | |
parent | 1ddf4a1a8040c3e879ad6d386b9b53fcc01ebdfb (diff) | |
download | freebsd-ports-gnome-7013896cccfd49cb90466176b1025b2a43067e72.tar.gz freebsd-ports-gnome-7013896cccfd49cb90466176b1025b2a43067e72.tar.zst freebsd-ports-gnome-7013896cccfd49cb90466176b1025b2a43067e72.zip |
Add hdrecover, a utility to check for and repair bad disk sectors.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/hdrecover/Makefile | 22 | ||||
-rw-r--r-- | sysutils/hdrecover/distinfo | 2 | ||||
-rw-r--r-- | sysutils/hdrecover/files/patch-hdrecover.cpp | 14 | ||||
-rw-r--r-- | sysutils/hdrecover/pkg-descr | 9 | ||||
-rw-r--r-- | sysutils/hdrecover/pkg-plist | 1 |
6 files changed, 49 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index 7cea8061e610..17d763bb1e8a 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -368,6 +368,7 @@ SUBDIR += hardlink SUBDIR += hatop SUBDIR += hdup + SUBDIR += hdrecover SUBDIR += healthd SUBDIR += heartbeat SUBDIR += heirloom 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 <cy@freebsd.org> +# +# $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 <bsd.port.mk> 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 <sys/stat.h> + #include <fcntl.h> + #include <unistd.h> ++#ifdef __FreeBSD_cc_version ++#include <stdlib.h> ++#else + #include <malloc.h> ++#endif + #include <errno.h> + #include <string.h> + #include <time.h> 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%% |