From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Jan 22 11:50:15 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F22BD16A41F for ; Sun, 22 Jan 2006 11:50:14 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C6E143D75 for ; Sun, 22 Jan 2006 11:50:03 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k0MBo3KK051625 for ; Sun, 22 Jan 2006 11:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k0MBo302051624; Sun, 22 Jan 2006 11:50:03 GMT (envelope-from gnats) Resent-Date: Sun, 22 Jan 2006 11:50:03 GMT Resent-Message-Id: <200601221150.k0MBo302051624@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Jeffrey H. Johnson" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1388016A41F for ; Sun, 22 Jan 2006 11:49:30 +0000 (GMT) (envelope-from root@offworld.cqasys.com) Received: from imf17aec.mail.bellsouth.net (imf17aec.mail.bellsouth.net [205.152.59.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05B9943D46 for ; Sun, 22 Jan 2006 11:49:28 +0000 (GMT) (envelope-from root@offworld.cqasys.com) Received: from ibm67aec.bellsouth.net ([65.7.181.160]) by imf22aec.mail.bellsouth.net with ESMTP id <20060122103415.KTCM22250.imf22aec.mail.bellsouth.net@ibm67aec.bellsouth.net> for ; Sun, 22 Jan 2006 05:34:15 -0500 Received: from offworld.cqasys.com ([65.7.181.160]) by ibm67aec.bellsouth.net with ESMTP id <20060122103414.RUQW12654.ibm67aec.bellsouth.net@offworld.cqasys.com>; Sun, 22 Jan 2006 05:34:14 -0500 Received: by offworld.cqasys.com (Postfix, from userid 0) id 229E839833; Sun, 22 Jan 2006 05:34:14 -0500 (EST) Message-Id: <20060122103414.229E839833@offworld.cqasys.com> Date: Sun, 22 Jan 2006 05:34:14 -0500 (EST) From: "Jeffrey H. Johnson" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: CPE1704TKS@bellsouth.net Subject: ports/92148: [NEW PORT] sysutils/recoverdm: Recover files and discs with damaged sectors X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jan 2006 11:50:15 -0000 >Number: 92148 >Category: ports >Synopsis: [NEW PORT] sysutils/recoverdm: Recover files and discs with damaged sectors >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Jan 22 11:50:02 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Jeffrey H. Johnson >Release: FreeBSD 6.0-STABLE i386 >Organization: >Environment: System: FreeBSD offworld.cqasys.com 6.0-STABLE FreeBSD 6.0-STABLE #21: Wed Jan 18 22:35:45 EST 2006 >Description: Another data recovery program, very similar to dd_recover and friends. -x- This program will help you recover disks with bad sectors. You can recover files as well complete devices. In case if finds sectors which simply cannot be recoverd, it writes an empty sector to the outputfile and continues. If you're recovering a CD or a DVD and the program cannot read the sector in "normal mode", then the program will try to read the sector in "RAW mode" (without error-checking etc.). This toolkit also has a utility called 'mergebad': mergebad merges multiple images into one. This can be usefull when you have, for example, multiple CD's with the same data which are all damaged. In such case, you can then first use recoverdm to retrieve the data from the damaged CD's into image-files and then combine them into one image with mergebad. WWW: http://www.vanheusden.com/recoverdm/ -x- Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- recoverdm-0.19.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # recoverdm # recoverdm/files # recoverdm/files/patch-ac # recoverdm/files/patch-aa # recoverdm/files/patch-ab # recoverdm/Makefile # recoverdm/distinfo # recoverdm/pkg-descr # recoverdm/pkg-plist # echo c - recoverdm mkdir -p recoverdm > /dev/null 2>&1 echo c - recoverdm/files mkdir -p recoverdm/files > /dev/null 2>&1 echo x - recoverdm/files/patch-ac sed 's/^X//' >recoverdm/files/patch-ac << 'END-of-recoverdm/files/patch-ac' X*** utils.h.orig Sun Jan 22 05:13:01 2006 X--- utils.h Sun Jan 22 05:20:11 2006 X*************** X*** 1,5 **** X--- 1,10 ---- X+ #define off64_t off_t X+ #define stat64 stat X+ #define open64 open X+ #define lseek64 lseek X+ X void * mymalloc(size_t size, char *what); X void * myrealloc(void *oldp, size_t newsize, char *what); X off64_t get_filesize(char *filename); X int copy_block(int fd_in, int fd_out, off64_t block_size); X void myseek(int fd, off64_t offset); END-of-recoverdm/files/patch-ac echo x - recoverdm/files/patch-aa sed 's/^X//' >recoverdm/files/patch-aa << 'END-of-recoverdm/files/patch-aa' X*** Makefile.orig Sun Jan 22 05:15:13 2006 X--- Makefile Sun Jan 22 05:22:31 2006 X*************** X*** 1,14 **** X VERSION=0.19 X X! CFLAGS=-Wall -Wshadow -Wconversion -Wwrite-strings -Winline -O2 -DVERSION=\"$(VERSION)\" X LDFLAGS= X X OBJSr=recoverdm.o dev.o io.o utils.o error.o X OBJSm=mergebad.o io.o utils.o error.o X X all: recoverdm mergebad X X recoverdm: $(OBJSr) X $(CC) -Wall -W $(OBJSr) $(LDFLAGS) -o recoverdm X strip recoverdm X echo X--- 1,19 ---- X VERSION=0.19 X X! CFLAGS+=-DVERSION=\"$(VERSION)\" X LDFLAGS= X X OBJSr=recoverdm.o dev.o io.o utils.o error.o X OBJSm=mergebad.o io.o utils.o error.o X X all: recoverdm mergebad X+ X+ install: X+ ${INSTALL} -m 755 recoverdm ${PREFIX}/bin X+ ${INSTALL} -m 755 mergebad ${PREFIX}/bin X+ ${INSTALL} -m 644 recoverdm.1 ${PREFIX}/man/man1 X X recoverdm: $(OBJSr) X $(CC) -Wall -W $(OBJSr) $(LDFLAGS) -o recoverdm X strip recoverdm X echo END-of-recoverdm/files/patch-aa echo x - recoverdm/files/patch-ab sed 's/^X//' >recoverdm/files/patch-ab << 'END-of-recoverdm/files/patch-ab' X*** io.c.orig Sun Jan 22 05:18:41 2006 X--- io.c Sun Jan 22 05:18:54 2006 X*************** X*** 9,18 **** X--- 9,19 ---- X #include X X #include "io.h" X #include "error.h" X #include "gen.h" X+ #include "utils.h" X X ssize_t READ(int fd, char *whereto, size_t len) X { X ssize_t cnt=0; X END-of-recoverdm/files/patch-ab echo x - recoverdm/Makefile sed 's/^X//' >recoverdm/Makefile << 'END-of-recoverdm/Makefile' X# New ports collection makefile for: recoverdm X# Date created: 22 January 2004 X# Whom: Jeffrey H. Johnson X# X# $FreeBSD: ports/sysutils/recoverdm/Makefile,v 1.00 2006/01/22 05:23:25 trn Exp $ X# X XPORTNAME= recoverdm XPORTVERSION= 0.19 XCATEGORIES= sysutils XMASTER_SITES= http://www.vanheusden.com/recoverdm/ XEXTRACT_SUFX= .tgz X XMAINTAINER= CPE1704TKS@bellsouth.net XCOMMENT= Recover files and discs with damaged sectors X XALL_TARGET= all XMAN1= recoverdm.1 X X.include END-of-recoverdm/Makefile echo x - recoverdm/distinfo sed 's/^X//' >recoverdm/distinfo << 'END-of-recoverdm/distinfo' XSIZE (recoverdm-0.19.tgz) = 9806 XMD5 (recoverdm-0.19.tgz) = f24050f1ab83584a2bf07e0ef6e5fc66 XSHA256 (recoverdm-0.19.tgz) = 6158eee718d172a655f6581cbda41bc2cc8a0438ce2ad08f2892cf8d31fbd9c5 END-of-recoverdm/distinfo echo x - recoverdm/pkg-descr sed 's/^X//' >recoverdm/pkg-descr << 'END-of-recoverdm/pkg-descr' XThis program will help you recover disks with bad sectors. XYou can recover files as well complete devices. X XIn case if finds sectors which simply cannot be recoverd, it writes an Xempty sector to the outputfile and continues. If you're recovering a CD Xor a DVD and the program cannot read the sector in "normal mode", then Xthe program will try to read the sector in "RAW mode" (without error-checking Xetc.). X XThis toolkit also has a utility called 'mergebad': mergebad merges multiple Ximages into one. This can be usefull when you have, for example, multiple CD's Xwith the same data which are all damaged. In such case, you can then first use Xrecoverdm to retrieve the data from the damaged CD's into image-files and then Xcombine them into one image with mergebad. X XWWW: http://www.vanheusden.com/recoverdm/ END-of-recoverdm/pkg-descr echo x - recoverdm/pkg-plist sed 's/^X//' >recoverdm/pkg-plist << 'END-of-recoverdm/pkg-plist' Xbin/mergebad Xbin/recoverdm END-of-recoverdm/pkg-plist exit --- recoverdm-0.19.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: