@@ -0,0 +1,39 @@
1+{ stdenv, fetchurl }:
2+
3+let version = "1.5.7"; in
4+stdenv.mkDerivation rec {
5+ name = "foremost-${version}";
6+
7+ src = fetchurl {
8+ sha256 = "0d2zxw0ijg8cd3ksgm8cf8jg128zr5x7z779jar90g9f47pm882h";
9+ url = "http://foremost.sourceforge.net/pkg/${name}.tar.gz";
10+ };
11+
12+ meta = with stdenv.lib; {
13+ inherit version;
14+ description = "Recover files based on their contents";
15+ longDescription = ''
16+ Foremost is a console program to recover files based on their headers,
17+ footers, and internal data structures. Foremost can work on image files, such
18+ as those generated by dd, Safeback, Encase, etc, or directly on a drive.
19+ The headers and footers can be specified by a configuration file or you can
20+ use command line switches to specify built-in file types. These built-in types
21+ look at the data structures of a given file format allowing for a more
22+ reliable and faster recovery.
23+ '';
24+ homepage = http://foremost.sourceforge.net/;
25+ license = with licenses; publicDomain;
26+ platforms = with platforms; linux;
27+ maintainers = with maintainers; [ nckx ];
28+ };
29+
30+ patches = [ ./makefile.patch ];
31+
32+ makeFlags = "PREFIX=$(out)";
33+
34+ enableParallelBuilding = true;
35+
36+ preInstall = ''
37+ mkdir -p $out/{bin,share/man/man8}
38+ '';
39+}