source: trunk/dports/sysutils/foremost/Portfile

Last change on this file was 140073, checked in by mf2k@…, 23 months ago

dd_rescue foremost socat: Ports abandoned. (#47548)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 140073 2015-09-08 15:13:04Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            foremost
6version         1.5.7
7revision        1
8categories      sysutils
9maintainers     nomaintainer
10platforms       darwin
11description     a console program to recover files based on their headers and footers.
12long_description Foremost is a console program to recover files based on \
13their headers and footers. Foremost can work on image files, such as those \
14generated by dd, Safeback, Encase, etc, or directly on a drive. The headers \
15and footers are specified by a configuration file, so you can pick and \
16choose which headers you want to look for.
17homepage        http://foremost.sourceforge.net/
18master_sites    ${homepage}pkg/
19checksums       sha256  502054ef212e3d90b292e99c7f7ac91f89f024720cd5a7e7680c3d1901ef5f34 \
20                rmd160  437e174cccc25c4ae672825a413c865555bb4a46
21
22use_configure   no
23
24pre-build {
25    reinplace "s#RAW_CC = gcc#RAW_CC = ${configure.cc}#" ${worksrcpath}/Makefile
26}
27
28platform darwin {
29        build.target     mac
30        build.env-append RAW_CC=${configure.cc}
31        destroot.args    BIN=${destroot}${prefix}/bin \
32                         MAN=${destroot}${prefix}/share/man/man8 \
33                         CONF=${destroot}${prefix}/etc
34}
35
36post-destroot   {
37        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
38        xinstall -m 644 -W ${worksrcpath} README CHANGES \
39                ${destroot}${prefix}/share/doc/${name}
40        move ${destroot}${prefix}/etc/foremost.conf \
41             ${destroot}${prefix}/etc/foremost.conf.sample
42}
Note: See TracBrowser for help on using the repository browser.