source: trunk/dports/sysutils/autopsy/Portfile

Last change on this file was 98937, checked in by cal@…, 5 years ago

autopsy: fix livecheck, because autopsy3 is windows-only and completely different

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 98937 2012-10-21 16:00:19Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            autopsy
7license         GPL-2
8version         2.24
9revision        1
10categories      sysutils
11maintainers     cal openmaintainer
12platforms       darwin
13description     Autopsy Forensic Browser
14long_description \
15    The Autopsy Forensic Browser is a graphical interface to the \
16    command line digital investigation analysis tools in  The Sleuth \
17    Kit. Together, they can analyze Windows and UNIX disks and file \
18    systems (NTFS, FAT, UFS1/2, Ext2/3). \
19    The Sleuth Kit and Autopsy are both Open Source and run on UNIX \
20    platforms. As Autopsy is HTML-based, you can connect to the \
21    Autopsy server from any platform using an HTML browser. Autopsy \
22    provides a \"File Manager\"-like interface and shows details about \
23    deleted data and file system structures.
24
25homepage        http://www.sleuthkit.org/autopsy/
26master_sites    sourceforge:project/autopsy/autopsy/${version}
27
28checksums       sha256  ab787f519942783d43a561d12be0554587f11f22bc55ab79d34d8da703edc09e \
29                rmd160  de85770e21f1c65c938015c0dde2133136e02b60
30
31patchfiles      patch-configure-no-interactivity.diff
32
33use_configure   no
34
35depends_build   port:file \
36                path:bin/perl:perl5 \
37                port:sleuthkit \
38                port:md5sha1sum
39
40set evidence_locker "${prefix}/var/lib/${name}"
41post-patch {
42    reinplace "s|^dirs='.*'$|dirs='${prefix}/bin/ /usr/bin/ /sbin/'|g"  \
43        ${worksrcpath}/configure
44    reinplace "s|\\\$PWD/|${prefix}/share/${name}/|g" ${worksrcpath}/configure
45    reinplace "s|MP_AUTOPSY_LOCKER|${evidence_locker}/|g" ${worksrcpath}/configure
46}
47
48destroot {
49    xinstall -m 755 -d ${destroot}${evidence_locker}
50
51    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
52
53    xinstall -m 755 -d ${destroot}${prefix}/share/${name}
54    xinstall -m 755 -d ${destroot}${prefix}/share/${name}/help
55    xinstall -m 755 -d ${destroot}${prefix}/share/${name}/lib
56    xinstall -m 755 -d ${destroot}${prefix}/share/${name}/pict
57
58    xinstall -m 755 -d ${destroot}${prefix}/man/man1
59
60    eval xinstall -m 644 [glob ${worksrcpath}/docs/*] \
61        ${destroot}${prefix}/share/doc/${name}
62    xinstall -m 644 -W ${worksrcpath} CHANGES.txt INSTALL.txt README.txt \
63        ${destroot}${prefix}/share/doc/${name}
64
65    xinstall -m 755 -W ${worksrcpath} autopsy \
66        ${destroot}${prefix}/bin
67
68    xinstall -m 644 -W ${worksrcpath} conf.pl global.css \
69        ${destroot}${prefix}/share/${name}
70    eval xinstall -m 644 [glob ${worksrcpath}/help/*] \
71        ${destroot}${prefix}/share/${name}/help
72    eval xinstall -m 644 [glob ${worksrcpath}/lib/*] \
73        ${destroot}${prefix}/share/${name}/lib
74    eval xinstall -m 644 [glob ${worksrcpath}/pict/*] \
75        ${destroot}${prefix}/share/${name}/pict
76
77    eval xinstall -m 644 [glob ${worksrcpath}/man/man1/*] \
78        ${destroot}${prefix}/share/man/man1/
79
80}
81
82destroot.keepdirs   ${evidence_locker}
83
84livecheck.regex     "/autopsy/(2\.\[a-zA-Z0-9.\]+)/"
Note: See TracBrowser for help on using the repository browser.