---
name: ddrescue
version: 1.16_1
origin: sysutils/ddrescue
comment: Data recovery tool
arch: freebsd:9:x86:64
www: http://www.gnu.org/software/ddrescue/ddrescue.html
maintainer: jharris@widomaker.com
prefix: /usr/local
licenselogic: single
licenses:
- GPLv3
flatsize: 247713
desc: |
  GNU ddrescue is a data recovery tool. It copies data from one file or
  block device (hard disc, cdrom, etc) to another, trying hard to rescue
  data in case of read errors. Ddrescue does not truncate the output file
  if not asked to. So, every time you run it on the same output file, it
  tries to fill in the gaps. The basic operation of ddrescue is fully
  automatic. That is, you don't have to wait for an error, stop the
  program, read the log, run it in reverse mode, etc. If you use the
  logfile feature of ddrescue, the data is rescued very efficiently (only
  the needed blocks are read). Also you can interrupt the rescue at any
  time and resume it later at the same point.

  Automatic merging of backups: If you have two or more damaged copies of
  a file, cdrom, etc, and run ddrescue on all of them, one at a time,
  with the same output file, you will probably obtain a complete and
  error-free file. This is so because the probability of having damaged
  areas at the same places on different input files is very low. Using
  the logfile, only the needed blocks are read from the second and
  successive copies.

  WWW: http://www.gnu.org/software/ddrescue/ddrescue.html
categories:
- sysutils
options: {DOCS: on}
files:
  /usr/local/bin/ddrescue: aa63ac0458422e3402c8f5abf30e9225b7c803aaa7db59f5431443874fab1ace
  /usr/local/bin/ddrescuelog: 346550c8bef446970e935bff9ebe74f5dd67dbea914b0489a0f9f9f32c79cbf0
  /usr/local/info/ddrescue.info: 9effaa92d85c73db0dd8871c705f5e61714648e45e50f7608e36c6c21875a186
  /usr/local/man/man1/ddrescue.1.gz: ce62017a931065e9d917ac827cea3eb734d55e9943a6471f6cf25778cb9140bd
  /usr/local/man/man1/ddrescuelog.1.gz: ddbd858ebaf52b4996832a693727ade36ef608e70883336c3b2fe1aa8ffcff4c
  /usr/local/share/doc/ddrescue/AUTHORS: 92f8862b09b07374b6f71ed9545d4009085c06057727cf1ba314d7a44ab979bb
  /usr/local/share/doc/ddrescue/ChangeLog: 34db5b2e94b0854a52f1cb3fedfbaf0921f091903d96723796ebd9094fdfba0a
  /usr/local/share/doc/ddrescue/NEWS: e2c347f31a9533daf1ff48ffb5608b34693b82bbd296be58a0eab3be4f747582
  /usr/local/share/doc/ddrescue/README: 53755b445bb4bf68d0892074fea7935106e4c8aa981b2a12dc7786037d053ede
  /usr/local/share/licenses/ddrescue-1.16_1/GPLv3: fc82ca8b6fdb18d4e3e85cfd8ab58d1bcd3f1b29abe782895abd91d64763f8e7
  /usr/local/share/licenses/ddrescue-1.16_1/LICENSE: feb018c22cc4001bbeccc04db5569c5aeaec18f1ebbee51a52d56c251418e243
  /usr/local/share/licenses/ddrescue-1.16_1/catalog.mk: c77de64384abe120cd2ffe7b7a2e50e6a48579318c1b6feddcd58adbc0467124
directories:
  /usr/local/share/licenses/ddrescue-1.16_1/: n
  /usr/local/share/licenses/: y
  /usr/local/share/doc/ddrescue/: n
scripts:
  post-install: |
    cd /usr/local
    file=/usr/local/info/ddrescue.info
    install-info --quiet /usr/local/info/ddrescue.info ${file%25/*}/dir
    cd /usr/local
  pre-deinstall: |
    cd /usr/local
    if [ -f /usr/local/info/dir ]; then if sed -e '1,/Menu:/d' /usr/local/info/dir | grep -q '^[*] '; then true; else rm /usr/local/info/dir; fi; fi
    cd /usr/local
  post-deinstall: |
    cd /usr/local
    file=/usr/local/info/ddrescue.info
    install-info --quiet --delete /usr/local/info/ddrescue.info ${file%25/*}/dir
    if [ $(info -d ${file%25/*}  --output - 2>/dev/null | grep -c '^*') -eq 1 ]; then
      rm -f ${file%25/*}/dir
    fi
    cd /usr/local
