Ticket #22951: Portfile

File Portfile, 2.8 KB (added by groolot@…, 15 years ago)

Portfile for autopsy-2.21

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem 1.0
5
6name            autopsy
7version         2.21
8categories      sysutils
9maintainers     ecronin
10platforms       darwin
11description     Autopsy Forensic Browser
12long_description \
13    The Autopsy Forensic Browser is a graphical interface to the \
14    command line digital investigation analysis tools in  The Sleuth \
15    Kit. Together, they can analyze Windows and UNIX disks and file \
16    systems (NTFS, FAT, UFS1/2, Ext2/3). \
17    The Sleuth Kit and Autopsy are both Open Source and run on UNIX \
18    platforms. As Autopsy is HTML-based, you can connect to the \
19    Autopsy server from any platform using an HTML browser. Autopsy \
20    provides a \"File Manager\"-like interface and shows details about \
21    deleted data and file system structures.
22master_sites    sourceforge
23homepage        http://www.sleuthkit.org/autopsy/
24checksums       sha1 083f6e1794e19ad07989d088a35da16e9418c83b \
25                rmd160 d9b0c5c16c2462997cfe217211f46e1e75464204 \
26                md5 48d970749861cde7b850283636c6c4dd
27livecheck.version   ${name}-${version}
28patchfiles      patch-configure.diff
29use_configure   no
30
31depends_build   port:file \
32                path:bin/perl:perl5 \
33                port:sleuthkit
34
35post-patch {
36    reinplace "s|^dirs='.*'$|dirs='${prefix}/bin/ /usr/bin/ /sbin/'|g"  \
37        ${worksrcpath}/configure
38    reinplace "s|\\\$PWD/|${prefix}/share/${name}/|g" ${worksrcpath}/configure
39    reinplace "s|MP_AUTOPSY_LOCKER|${prefix}/var/${name}/|g" ${worksrcpath}/configure
40}
41
42destroot {
43    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
44
45    xinstall -m 755 -d ${destroot}${prefix}/share/${name}
46    xinstall -m 755 -d ${destroot}${prefix}/share/${name}/help
47    xinstall -m 755 -d ${destroot}${prefix}/share/${name}/lib
48    xinstall -m 755 -d ${destroot}${prefix}/share/${name}/pict
49
50    xinstall -m 755 -d ${destroot}${prefix}/man/man1
51
52    eval xinstall -m 644 [glob ${worksrcpath}/docs/*] \
53        ${destroot}${prefix}/share/doc/${name}
54    xinstall -m 644 -W ${worksrcpath} CHANGES.txt INSTALL.txt README.txt \
55        ${destroot}${prefix}/share/doc/${name}
56
57    xinstall -m 755 -W ${worksrcpath} autopsy \
58        ${destroot}${prefix}/bin
59
60    xinstall -m 644 -W ${worksrcpath} conf.pl global.css \
61        ${destroot}${prefix}/share/${name}
62    eval xinstall -m 644 [glob ${worksrcpath}/help/*] \
63        ${destroot}${prefix}/share/${name}/help
64    eval xinstall -m 644 [glob ${worksrcpath}/lib/*] \
65        ${destroot}${prefix}/share/${name}/lib
66    eval xinstall -m 644 [glob ${worksrcpath}/pict/*] \
67        ${destroot}${prefix}/share/${name}/pict
68
69    eval xinstall -m 644 [glob ${worksrcpath}/man/man1/*] \
70        ${destroot}${prefix}/share/man/man1/
71
72}