mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Magic Rescue scans a block device for file types it knows how to recover and
calls an external program to extract them. It looks at "magic bytes" in file contents, so it can be used both as an undelete utility and for recovering a corrupted drive or partition. As long as the file data is there, it will find it. It works on any file system, but on very fragmented file systems it can only recover the first chunk of each file. Practical experience shows, however, that chunks of 30-50MB are not uncommon. PR: ports/83666 Submitted by: Emanuel Haupt <ehaupt@mx.critical.ch> Approved by: flz (mentor)
This commit is contained in:
parent
cdd41104c4
commit
eeb0735e7b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=139584
@ -281,6 +281,7 @@
|
||||
SUBDIR += ltrace
|
||||
SUBDIR += luma
|
||||
SUBDIR += lxsplit
|
||||
SUBDIR += magicrescue
|
||||
SUBDIR += maint
|
||||
SUBDIR += makefs
|
||||
SUBDIR += manck
|
||||
|
34
sysutils/magicrescue/Makefile
Normal file
34
sysutils/magicrescue/Makefile
Normal file
@ -0,0 +1,34 @@
|
||||
# New ports collection makefile for: magicrescue
|
||||
# Date created: 18 Jul 2005
|
||||
# Whom: Emanuel Haupt <ehaupt@critical.ch>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= magicrescue
|
||||
PORTVERSION= 1.1.4
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://jbj.rapanden.dk/magicrescue/release/
|
||||
|
||||
MAINTAINER= ehaupt@critical.ch
|
||||
COMMENT= A file recovery tool which recovers deleted files from a block device
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USE_REINPLACE= yes
|
||||
USE_PERL5_RUN= yes
|
||||
|
||||
MAN1= dupemap.1 magicrescue.1 magicsort.1
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|^#!/usr/bin/env.*|#!${PERL}|' \
|
||||
${WRKSRC}/magicsort
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
post-install:
|
||||
${MKDIR} ${DOCSDIR}
|
||||
.for f in NEWS README
|
||||
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
2
sysutils/magicrescue/distinfo
Normal file
2
sysutils/magicrescue/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (magicrescue-1.1.4.tar.gz) = 1df1ca602732208adf48f17ab703e2b6
|
||||
SIZE (magicrescue-1.1.4.tar.gz) = 89965
|
20
sysutils/magicrescue/files/patch-magicsort
Normal file
20
sysutils/magicrescue/files/patch-magicsort
Normal file
@ -0,0 +1,20 @@
|
||||
--- magicsort.orig Mon Jul 18 11:55:35 2005
|
||||
+++ magicsort Mon Jul 18 12:03:01 2005
|
||||
@@ -13,7 +13,7 @@
|
||||
while (defined(my $file = readdir DH)) {
|
||||
next unless -f $file;
|
||||
|
||||
- open FILE, "-|", "file", $file or die "Executing file: $!\n";
|
||||
+ open(FILE, 'file '.$file.'|') or die "Executing file: $!\n";
|
||||
my $idstring = <FILE>;
|
||||
close FILE;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
next;
|
||||
}
|
||||
my $dir = substr($idstring, length($file) + 2);
|
||||
- mkdir $dir;
|
||||
+ mkdir $dir,0755;
|
||||
rename $file, "$dir/$file" or warn "Cannot move $file: $!\n";
|
||||
}
|
||||
|
14
sysutils/magicrescue/pkg-descr
Normal file
14
sysutils/magicrescue/pkg-descr
Normal file
@ -0,0 +1,14 @@
|
||||
Magic Rescue scans a block device for file types it knows how to recover and
|
||||
calls an external program to extract them. It looks at "magic bytes" in file
|
||||
contents, so it can be used both as an undelete utility and for recovering a
|
||||
corrupted drive or partition. As long as the file data is there, it will
|
||||
find it.
|
||||
|
||||
It works on any file system, but on very fragmented file systems it can only
|
||||
recover the first chunk of each file. Practical experience shows, however, that
|
||||
chunks of 30-50MB are not uncommon.
|
||||
|
||||
WWW: http://jbj.rapanden.dk/magicrescue/
|
||||
|
||||
- ehaupt
|
||||
ehaupt@critical.ch
|
35
sysutils/magicrescue/pkg-plist
Normal file
35
sysutils/magicrescue/pkg-plist
Normal file
@ -0,0 +1,35 @@
|
||||
bin/dupemap
|
||||
bin/magicrescue
|
||||
bin/magicsort
|
||||
%%DATADIR%%/recipes/avi
|
||||
%%DATADIR%%/recipes/elf
|
||||
%%DATADIR%%/recipes/gimp-xcf
|
||||
%%DATADIR%%/recipes/gpl
|
||||
%%DATADIR%%/recipes/gzip
|
||||
%%DATADIR%%/recipes/jpeg-exif
|
||||
%%DATADIR%%/recipes/jpeg-jfif
|
||||
%%DATADIR%%/recipes/mp3-id3v1
|
||||
%%DATADIR%%/recipes/mp3-id3v2
|
||||
%%DATADIR%%/recipes/msoffice
|
||||
%%DATADIR%%/recipes/perl
|
||||
%%DATADIR%%/recipes/png
|
||||
%%DATADIR%%/recipes/zip
|
||||
%%DATADIR%%/tools/checkrecipe
|
||||
%%DATADIR%%/tools/elfextract.pl
|
||||
%%DATADIR%%/tools/gimp-resave.pl
|
||||
%%DATADIR%%/tools/gzip_rename.pl
|
||||
%%DATADIR%%/tools/inputseek
|
||||
%%DATADIR%%/tools/laola.pl
|
||||
%%DATADIR%%/tools/mp3extract.pl
|
||||
%%DATADIR%%/tools/ole_rename.pl
|
||||
%%DATADIR%%/tools/oleextract.pl
|
||||
%%DATADIR%%/tools/pngextract.pl
|
||||
%%DATADIR%%/tools/safecat
|
||||
%%DATADIR%%/tools/script_rename.pl
|
||||
%%DATADIR%%/tools/textextract
|
||||
%%PORTDOCS%%%%DOCSDIR%%/NEWS
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
@dirrm %%DATADIR%%/tools
|
||||
@dirrm %%DATADIR%%/recipes
|
||||
@dirrm %%DATADIR%%
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
Loading…
Reference in New Issue
Block a user