freebsd-ports/sysutils/magicrescue/Makefile
Renato Botelho eeb0735e7b 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)
2005-07-19 12:17:18 +00:00

34 lines
734 B
Makefile

# 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>