summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2006-07-09 15:12:15 +0000
committerwiz <wiz@pkgsrc.org>2006-07-09 15:12:15 +0000
commit3dc5d45f1bd9f7e9ad21f28502dc45f664fba986 (patch)
treee294fa079bad8f7d62fc5e8f8348582b187386b9 /sysutils
parent0c18eb3a31c054931ccad49efa80377bb5e96a83 (diff)
downloadpkgsrc-3dc5d45f1bd9f7e9ad21f28502dc45f664fba986.tar.gz
Initial import of magicrescue-1.1.4:
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 (this program was not written for fun) shows, however, that chunks of 30-50MB are not uncommon.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/magicrescue/DESCR10
-rw-r--r--sysutils/magicrescue/Makefile25
-rw-r--r--sysutils/magicrescue/PLIST36
-rw-r--r--sysutils/magicrescue/distinfo6
-rw-r--r--sysutils/magicrescue/patches/patch-aa24
5 files changed, 101 insertions, 0 deletions
diff --git a/sysutils/magicrescue/DESCR b/sysutils/magicrescue/DESCR
new file mode 100644
index 00000000000..b085b0b8b61
--- /dev/null
+++ b/sysutils/magicrescue/DESCR
@@ -0,0 +1,10 @@
+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 (this program was not written for fun) shows, however,
+that chunks of 30-50MB are not uncommon.
diff --git a/sysutils/magicrescue/Makefile b/sysutils/magicrescue/Makefile
new file mode 100644
index 00000000000..ec9bade714d
--- /dev/null
+++ b/sysutils/magicrescue/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/07/09 15:12:15 wiz Exp $
+#
+
+DISTNAME= magicrescue-1.1.4
+CATEGORIES= sysutils
+MASTER_SITES= http://jbj.rapanden.dk/magicrescue/release/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://jbj.rapanden.dk/magicrescue/release/
+COMMENT= Recover files from a block device by scanning for magic bytes
+
+USE_TOOLS+= perl:run
+HAS_CONFIGURE= yes
+
+REPLACE_PERL= tools/elfextract.pl \
+ tools/gimp-resave.pl \
+ tools/gzip_rename.pl \
+ tools/laola.pl \
+ tools/mp3extract.pl \
+ tools/ole_rename.pl \
+ tools/oleextract.pl \
+ tools/pngextract.pl \
+ tools/script_rename.pl
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/magicrescue/PLIST b/sysutils/magicrescue/PLIST
new file mode 100644
index 00000000000..c4ec6444565
--- /dev/null
+++ b/sysutils/magicrescue/PLIST
@@ -0,0 +1,36 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/07/09 15:12:15 wiz Exp $
+bin/dupemap
+bin/magicrescue
+bin/magicsort
+man/man1/dupemap.1
+man/man1/magicrescue.1
+man/man1/magicsort.1
+share/magicrescue/recipes/avi
+share/magicrescue/recipes/elf
+share/magicrescue/recipes/gimp-xcf
+share/magicrescue/recipes/gpl
+share/magicrescue/recipes/gzip
+share/magicrescue/recipes/jpeg-exif
+share/magicrescue/recipes/jpeg-jfif
+share/magicrescue/recipes/mp3-id3v1
+share/magicrescue/recipes/mp3-id3v2
+share/magicrescue/recipes/msoffice
+share/magicrescue/recipes/perl
+share/magicrescue/recipes/png
+share/magicrescue/recipes/zip
+share/magicrescue/tools/checkrecipe
+share/magicrescue/tools/elfextract.pl
+share/magicrescue/tools/gimp-resave.pl
+share/magicrescue/tools/gzip_rename.pl
+share/magicrescue/tools/inputseek
+share/magicrescue/tools/laola.pl
+share/magicrescue/tools/mp3extract.pl
+share/magicrescue/tools/ole_rename.pl
+share/magicrescue/tools/oleextract.pl
+share/magicrescue/tools/pngextract.pl
+share/magicrescue/tools/safecat
+share/magicrescue/tools/script_rename.pl
+share/magicrescue/tools/textextract
+@dirrm share/magicrescue/tools
+@dirrm share/magicrescue/recipes
+@dirrm share/magicrescue
diff --git a/sysutils/magicrescue/distinfo b/sysutils/magicrescue/distinfo
new file mode 100644
index 00000000000..54ecc577961
--- /dev/null
+++ b/sysutils/magicrescue/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/07/09 15:12:15 wiz Exp $
+
+SHA1 (magicrescue-1.1.4.tar.gz) = b4be78fb6eba668c79aac6bf6a01123911049008
+RMD160 (magicrescue-1.1.4.tar.gz) = ef8185ad19d4fb1bc277403b82eea3aa21f0e758
+Size (magicrescue-1.1.4.tar.gz) = 89965 bytes
+SHA1 (patch-aa) = 0c736f7ed1191919a4aaf816fc4a7431c717e78e
diff --git a/sysutils/magicrescue/patches/patch-aa b/sysutils/magicrescue/patches/patch-aa
new file mode 100644
index 00000000000..90b255875b9
--- /dev/null
+++ b/sysutils/magicrescue/patches/patch-aa
@@ -0,0 +1,24 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/07/09 15:12:15 wiz Exp $
+
+--- configure.orig 2004-08-14 23:04:00.000000000 +0000
++++ configure
+@@ -26,16 +26,13 @@
+ # Default options
+ #
+ app="the application"
+-prefix=/usr/local
++app="Magic Rescue"
++prefix=${PREFIX}
+ env_vars="CC CFLAGS CPPFLAGS LDFLAGS"
+ def_CC=cc
+-def_CFLAGS="-O3 -Wall"
++def_CFLAGS="-Wall"
+ MAKE_VARS=
+
+-if [ -f config.config ]; then
+- . config.config
+-fi
+-
+ #
+ # Helper functions
+ #