summaryrefslogtreecommitdiff
path: root/sysutils/fatback
diff options
context:
space:
mode:
authoragc <agc>2005-05-25 10:29:01 +0000
committeragc <agc>2005-05-25 10:29:01 +0000
commit45331e4892464add7d74e3ee614e70f8f09f51a7 (patch)
tree5c63c71810766aae1bede27fdaef5537cc04d17f /sysutils/fatback
parentb35822a03cd00030de5a9a0fb381ddfd2a2eeb4a (diff)
downloadpkgsrc-45331e4892464add7d74e3ee614e70f8f09f51a7.tar.gz
Initial import of fatback-1.3 into the Packages Collection.
Taken from a posting by Wolfgang S. Rupprecht to netbsd-users on April 26th. Fatback is a forensic tool for undeleting files from FAT file systems. Fatback is different from other undelete tools in that it does the following: * Runs under UNIX environments * Can undelete files automatically * Supports Long File Names * Supports FAT12, FAT16, and FAT32 * Powerful interactive mode * Recursively undeletes deleted directories * Recovers lost cluster chains * Works with single partitions or whole disks
Diffstat (limited to 'sysutils/fatback')
-rw-r--r--sysutils/fatback/DESCR13
-rw-r--r--sysutils/fatback/Makefile13
-rw-r--r--sysutils/fatback/PLIST4
-rw-r--r--sysutils/fatback/distinfo7
-rw-r--r--sysutils/fatback/patches/patch-aa19
-rw-r--r--sysutils/fatback/patches/patch-ab23
6 files changed, 79 insertions, 0 deletions
diff --git a/sysutils/fatback/DESCR b/sysutils/fatback/DESCR
new file mode 100644
index 00000000000..a4669c16bbe
--- /dev/null
+++ b/sysutils/fatback/DESCR
@@ -0,0 +1,13 @@
+Fatback is a forensic tool for undeleting files from FAT file systems.
+
+Fatback is different from other undelete tools in that it does the
+following:
+
+ * Runs under UNIX environments
+ * Can undelete files automatically
+ * Supports Long File Names
+ * Supports FAT12, FAT16, and FAT32
+ * Powerful interactive mode
+ * Recursively undeletes deleted directories
+ * Recovers lost cluster chains
+ * Works with single partitions or whole disks
diff --git a/sysutils/fatback/Makefile b/sysutils/fatback/Makefile
new file mode 100644
index 00000000000..718a094edd2
--- /dev/null
+++ b/sysutils/fatback/Makefile
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/05/25 10:29:01 agc Exp $
+
+DISTNAME= fatback-1.3
+CATEGORIES= sysutils
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fatback/}
+
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://sourceforge.net/project/showfiles.php?group_id=46038
+COMMENT= Recover deleted files from FAT filesystems
+
+GNU_CONFIGURE= yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/fatback/PLIST b/sysutils/fatback/PLIST
new file mode 100644
index 00000000000..bb3ada4d078
--- /dev/null
+++ b/sysutils/fatback/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/05/25 10:29:01 agc Exp $
+bin/fatback
+info/fatback-manual.info
+man/man1/fatback.1
diff --git a/sysutils/fatback/distinfo b/sysutils/fatback/distinfo
new file mode 100644
index 00000000000..275e580b253
--- /dev/null
+++ b/sysutils/fatback/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/05/25 10:29:01 agc Exp $
+
+SHA1 (fatback-1.3.tar.gz) = 0c17a76f64b359ee67ea308e58b668c14c77c699
+RMD160 (fatback-1.3.tar.gz) = 4a8b29f00e51ea4856e41e94c30dca3e96712a40
+Size (fatback-1.3.tar.gz) = 190800 bytes
+SHA1 (patch-aa) = 7012ffcfc8c50bebf4a2a9accefc62d024cfe1aa
+SHA1 (patch-ab) = 36fb419f55817375437e2548e6c99cb5b70bf0c5
diff --git a/sysutils/fatback/patches/patch-aa b/sysutils/fatback/patches/patch-aa
new file mode 100644
index 00000000000..a00d84cf493
--- /dev/null
+++ b/sysutils/fatback/patches/patch-aa
@@ -0,0 +1,19 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/05/25 10:29:01 agc Exp $
+
+--- output.c 2005/05/25 10:09:24 1.1
++++ output.c 2005/05/25 10:11:08
+@@ -63,9 +63,12 @@
+ /* print the rest of the arguments in standard printf style */
+ va_start(arg_list, format);
+ retval = vfprintf(Audit_log, format, arg_list);
+- if ((level < VERBOSE) || (verbose && level == VERBOSE))
+- vfprintf(ostream, format, arg_list);
+ va_end(arg_list);
++ if ((level < VERBOSE) || (verbose && level == VERBOSE)) {
++ va_start(arg_list, format);
++ vfprintf(ostream, format, arg_list);
++ va_end(arg_list);
++ }
+
+ return retval;
+ }
diff --git a/sysutils/fatback/patches/patch-ab b/sysutils/fatback/patches/patch-ab
new file mode 100644
index 00000000000..8ba3b174d5f
--- /dev/null
+++ b/sysutils/fatback/patches/patch-ab
@@ -0,0 +1,23 @@
+$NetBSD: patch-ab,v 1.1.1.1 2005/05/25 10:29:01 agc Exp $
+
+--- recovery.c 2005/05/25 10:11:56 1.1
++++ recovery.c 2005/05/25 10:13:54
+@@ -85,10 +85,18 @@
+ fname);
+
+ chainlen = chain_length(clusts, cluster);
++#if 0
+ reqd_clusts = size / bytes_per_clust;
+ reqd_clusts += !!(size % bytes_per_clust);
++#else
++ /* this doesn't assume !! returns 0 or 1 */
++ reqd_clusts = (size + bytes_per_clust - 1) / bytes_per_clust;
++#endif
+ if (chainlen < reqd_clusts) {
+ display(VERBOSE, log_carve, fname);
++ display(VERBOSE, "Need: %d got: %d Missing: %d bytes\n",
++ size, chainlen * bytes_per_clust,
++ size - (chainlen * bytes_per_clust));
+ carve_file(clusts, cluster, size, bytes_per_clust, file);
+ return 0;
+ }