Files
ports/sysutils/ddrescue/Makefile
T
Andrew Pantyukhin 84af058d26 Add port sysutils/ddrescue:
GNU ddrescue is a data recovery tool. It copies data from one file or
block device (hard disc, cdrom, etc) to another, trying hard to rescue
data in case of read errors. Ddrescue does not truncate the output file
if not asked to. So, every time you run it on the same output file, it
tries to fill in the gaps. The basic operation of ddrescue is fully
automatic. That is, you don't have to wait for an error, stop the
program, read the log, run it in reverse mode, etc. If you use the
logfile feature of ddrescue, the data is rescued very efficiently (only
the needed blocks are read). Also you can interrupt the rescue at any
time and resume it later at the same point.

Automatic merging of backups: If you have two or more damaged copies of
a file, cdrom, etc, and run ddrescue on all of them, one at a time,
with the same output file, you will probably obtain a complete and
error-free file. This is so because the probability of having damaged
areas at the same places on different input files is very low. Using
the logfile, only the needed blocks are read from the second and
successive copies.

WWW: http://www.gnu.org/software/ddrescue/ddrescue.html
Author: Antonio Diaz Diaz <ant_diaz@teleline.es>
2007-08-16 12:13:45 +00:00

38 lines
936 B
Makefile

# New ports collection makefile for: ddrescue
# Date created: 16 August 2007
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= ddrescue
DISTVERSION= 1.5
CATEGORIES= sysutils
MASTER_SITES= GNU
MAINTAINER= infofarmer@FreeBSD.org
COMMENT= Data recovery tool
HAS_CONFIGURE= yes
CONFIGURE_ARGS= CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}"\
CXXFLAGS="${CXXFLAGS}"
USE_BZIP2= yes
PLIST_FILES= bin/${PORTNAME}
MAN1= ${PORTNAME}.1
INFO= ${PORTNAME}
PORTDOCS= AUTHORS ChangeLog NEWS README
post-patch:
@${REINPLACE_CMD} -e 's|LONG_LONG|LLONG|' ${WRKSRC}/main.cc
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
@${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${MAN1PREFIX}/man/man1/
@${INSTALL_DATA} ${WRKSRC}/doc/${PORTNAME}.info ${PREFIX}/${INFO_PATH}/
.ifndef NOPORTDOCS
@${INSTALL} -d ${DOCSDIR}/
@cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif
.include <bsd.port.mk>