pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/fatback Initial import of fatback-1.3 into th...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/27b29a616b0e
branches:  trunk
changeset: 494508:27b29a616b0e
user:      agc <agc%pkgsrc.org@localhost>
date:      Wed May 25 10:29:01 2005 +0000

description:
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:

 sysutils/fatback/DESCR            |  13 +++++++++++++
 sysutils/fatback/Makefile         |  13 +++++++++++++
 sysutils/fatback/PLIST            |   4 ++++
 sysutils/fatback/distinfo         |   7 +++++++
 sysutils/fatback/patches/patch-aa |  19 +++++++++++++++++++
 sysutils/fatback/patches/patch-ab |  23 +++++++++++++++++++++++
 6 files changed, 79 insertions(+), 0 deletions(-)

diffs (103 lines):

diff -r bf3eb42f748a -r 27b29a616b0e sysutils/fatback/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/fatback/DESCR    Wed May 25 10:29:01 2005 +0000
@@ -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 -r bf3eb42f748a -r 27b29a616b0e sysutils/fatback/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/fatback/Makefile Wed May 25 10:29:01 2005 +0000
@@ -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@localhost
+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 -r bf3eb42f748a -r 27b29a616b0e sysutils/fatback/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/fatback/PLIST    Wed May 25 10:29:01 2005 +0000
@@ -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 -r bf3eb42f748a -r 27b29a616b0e sysutils/fatback/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/fatback/distinfo Wed May 25 10:29:01 2005 +0000
@@ -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 -r bf3eb42f748a -r 27b29a616b0e sysutils/fatback/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/fatback/patches/patch-aa Wed May 25 10:29:01 2005 +0000
@@ -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 -r bf3eb42f748a -r 27b29a616b0e sysutils/fatback/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/fatback/patches/patch-ab Wed May 25 10:29:01 2005 +0000
@@ -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;
+      }



Home | Main Index | Thread Index | Old Index