source: trunk/dports/sysutils/sleuthkit/Portfile @ 50984

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3PortSystem 1.0
4
5name            sleuthkit
6version         2.09
7categories      sysutils
8maintainers     hudora.de:md
9platforms       darwin
10description     Forensic toolkit
11long_description The Sleuth Kit (previously known as TASK) is a collection \
12        of UNIX-based command line file system and media management forensic \
13        analysis tools. The file system tools allow you to examine file systems of \
14        a suspect computer in a non-intrusive fashion. Because the tools do not \
15        rely on the operating system to process the file systems, deleted and \
16        hidden content is shown. \
17        The media management tools allow you to examine the layout of disks and \
18        other media. The Sleuth Kit supports DOS partitions, BSD partitions (disk \
19        labels), Mac partitions, Sun slices (Volume Table of Contents), and GPT \
20        disks. With these tools, you can identify where partitions are located and \
21        extract them so that they can be analyzed with file system analysis tools.
22master_sites    sourceforge
23homepage        http://www.sleuthkit.org/sleuthkit/
24checksums       sha1 9d2db6868026d887a83b0becb4d95a69527df457 \
25                md5 7a7b50e089c1807956146a50621b7441
26use_configure   no
27depends_build   port:file port:perl5
28depends_lib     port:openssl port:p5-datemanip port:zlib
29patchfiles      patch-Makefile patch-check-install patch-src_timeline_config-perl
30
31post-patch {
32        reinplace {s|Darwin\.\[6-8\]|Darwin.[6-9]|g} ${worksrcpath}/src/makedefs
33        reinplace "s|/usr/local/bin/ /usr/bin/ /usr/ccs/bin/ /bin/ /usr/ucb/bin/ /sbin/ /usr/sbin/ /usr/local/sbin/ /usr/pkg/bin/|${prefix}/bin/|g" ${worksrcpath}/src/timeline/config-perl
34        reinplace "s|/usr/local/bin/ /usr/bin/ /usr/ccs/bin/ /bin/ /usr/ucb/bin/ /sbin/ /usr/sbin/ /usr/local/sbin/ /usr/pkg/bin/|${prefix}/bin/|g" ${worksrcpath}/src/sorter/install
35
36    foreach srcdir { auxtools disktools fstools hashtools imgtools
37                     mmtools srchtools } {
38        # Those are literal tabs after CFLAGS and LIBS, don't retab 'em
39        reinplace "s|^CFLAGS\[  \]*=|CFLAGS     = -I${prefix}/include |g" \
40                ${worksrcpath}/src/${srcdir}/Makefile
41        reinplace "s|^LIBS\[    \]*=|LIBS       = -L${prefix}/lib |g" \
42                ${worksrcpath}/src/${srcdir}/Makefile
43    }
44}
45
46destroot   {
47        reinplace "s|\\\$SK_DIR=\"${worksrcpath}/\"|\\\$SK_DIR=\"${prefix}\"|g" ${worksrcpath}/bin/sorter
48        reinplace "s|\\\$SK_DIR/share/sorter/|\\\$SK_DIR/share/${name}/sorter/|g" ${worksrcpath}/bin/sorter
49
50        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/tct_docs
51        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/api_docs
52
53        eval xinstall [glob ${worksrcpath}/docs/*.txt] \
54                ${destroot}${prefix}/share/doc/${name}
55
56        eval xinstall [glob ${worksrcpath}/docs/api-doc/*] \
57                ${destroot}${prefix}/share/doc/${name}/api_docs
58
59        xinstall -m 644 -W ${worksrcpath} CHANGES.txt INSTALL.txt README.txt \
60                ${destroot}${prefix}/share/doc/${name}
61
62        eval xinstall -m 644 [glob ${worksrcpath}/tct.docs/*] \
63                ${destroot}${prefix}/share/doc/${name}/tct_docs
64
65        xinstall -m 755 -d ${destroot}${prefix}/bin
66        eval xinstall -m 755 [glob ${worksrcpath}/bin/*] \
67                ${destroot}${prefix}/bin
68
69        xinstall -m 755 -d ${destroot}${prefix}/lib
70        xinstall -m 644 ${worksrcpath}/lib/libtsk.a \
71                ${destroot}${prefix}/lib
72
73        xinstall -m 755 -d ${destroot}${prefix}/man/man1
74        eval xinstall -m 644 [glob ${worksrcpath}/man/man1/*] \
75                ${destroot}${prefix}/share/man/man1/
76
77        xinstall -m 755 -d ${destroot}${prefix}/share/${name}/sorter
78        eval xinstall [glob ${worksrcpath}/share/sorter/*] \
79                ${destroot}${prefix}/share/${name}/sorter
80}
Note: See TracBrowser for help on using the repository browser.