Ticket #12327: Portfile

File Portfile, 2.7 KB (added by ecronin (Eric Cronin), 17 years ago)
Line 
1# $Id: Portfile 20471 2006-11-03 15:27:05Z blair@macports.org $
2
3PortSystem 1.0
4
5name            autopsy
6version         2.08
7categories      sysutils
8maintainers     ecronin@gizmolabs.org
9platforms       darwin
10description     Autopsy Forensic Browser
11long_description \
12    The Autopsy Forensic Browser is a graphical interface to the \
13    command line digital investigation analysis tools in  The Sleuth \
14    Kit. Together, they can analyze Windows and UNIX disks and file \
15    systems (NTFS, FAT, UFS1/2, Ext2/3). \
16    The Sleuth Kit and Autopsy are both Open Source and run on UNIX \
17    platforms. As Autopsy is HTML-based, you can connect to the \
18    Autopsy server from any platform using an HTML browser. Autopsy \
19    provides a \"File Manager\"-like interface and shows details about \
20    deleted data and file system structures.
21master_sites    sourceforge
22homepage        http://www.sleuthkit.org/autopsy/
23checksums       sha1 a9a1234393afd50b3609575a906fa0b387efe4b9 \
24                md5 0ac9db9acf66742f8f01f3d8b0cf2f90
25patchfiles      patch-configure
26use_configure   no
27
28depends_build   port:file port:perl5.8 port:sleuthkit
29
30post-patch {
31    reinplace "s|/usr/local/bin/ /usr/bin/ /usr/ccs/bin/ /bin/ /usr/ucb/bin/ /sbin/ /usr/sbin/ /usr/local/sbin/|${prefix}/bin/ /usr/bin/|g"  \
32        ${worksrcpath}/configure
33    reinplace "s|\\\$PWD/|${prefix}/share/${name}/|g" ${worksrcpath}/configure
34    reinplace "s|MP_AUTOPSY_LOCKER|${prefix}/var/${name}/|g" ${worksrcpath}/configure
35}
36
37destroot {
38    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
39
40    xinstall -m 755 -d ${destroot}${prefix}/share/${name}
41    xinstall -m 755 -d ${destroot}${prefix}/share/${name}/help
42    xinstall -m 755 -d ${destroot}${prefix}/share/${name}/lib
43    xinstall -m 755 -d ${destroot}${prefix}/share/${name}/pict
44
45    xinstall -m 755 -d ${destroot}${prefix}/man/man1
46
47    eval xinstall -m 644 [glob ${worksrcpath}/docs/*] \
48        ${destroot}${prefix}/share/doc/${name}
49    xinstall -m 644 -W ${worksrcpath} CHANGES.txt INSTALL.txt README.txt \
50        ${destroot}${prefix}/share/doc/${name}
51   
52    xinstall -m 755 -W ${worksrcpath} autopsy \
53        ${destroot}${prefix}/bin
54
55    xinstall -m 644 -W ${worksrcpath} conf.pl global.css \
56        ${destroot}${prefix}/share/${name}
57    eval xinstall -m 644 [glob ${worksrcpath}/help/*] \
58        ${destroot}${prefix}/share/${name}/help
59    eval xinstall -m 644 [glob ${worksrcpath}/lib/*] \
60        ${destroot}${prefix}/share/${name}/lib
61    eval xinstall -m 644 [glob ${worksrcpath}/pict/*] \
62        ${destroot}${prefix}/share/${name}/pict
63
64    eval xinstall -m 644 [glob ${worksrcpath}/man/man1/*] \
65        ${destroot}${prefix}/share/man/man1/
66}