# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $

PortSystem 1.0

name            foremost
version         1.5.4
categories      sysutils
maintainers     hudora.de:md
platforms       darwin
description     a console program to recover files based on their headers and footers.
long_description Foremost is a console program to recover files based on \
their headers and footers. Foremost can work on image files, such as those \
generated by dd, Safeback, Encase, etc, or directly on a drive. The headers \
and footers are specified by a configuration file, so you can pick and \
choose which headers you want to look for.
homepage        http://foremost.sourceforge.net/
master_sites    ${homepage}pkg/
checksums       md5 55395b1fef1039a88e02d81682347f6d \
		sha1 af075ea068bf1a83d7b37852dd7c60308e46f5de \
		rmd160 34a490742f7b112d72e1075351fa93d9511da995

use_configure   no

platform darwin {
        build.target    mac
	destroot.args 	BIN=${destroot}${prefix}/bin \
			MAN=${destroot}${prefix}/share/man/man1 \
			CONF=${destroot}${prefix}/etc
}

post-destroot   {
        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
        xinstall -m 644 -W ${worksrcpath} README CHANGES \
                ${destroot}${prefix}/share/doc/${name}
        move ${destroot}${prefix}/etc/foremost.conf \
             ${destroot}${prefix}/etc/foremost.conf.sample
}
