Ticket #42457: patch-volatility-Portfile.2.diff

File patch-volatility-Portfile.2.diff, 3.7 KB (added by jul_bsd@…, 10 years ago)

asked modifications

  • security/volatility/Portfile

    old new  
    11# $Id: Portfile 70206 2010-08-01 23:28:25Z ryandesign@macports.org $
    22
    33PortSystem          1.0
    4 PortGroup           python26 1.0
     4PortGroup           python 1.0
    55
    66name                volatility
    7 set my_name         Volatility
    8 version             1.1.2
     7version             2.3.1
    98categories          security
    109platforms           darwin
    1110maintainers         yahoo.fr:jul_bsd openmaintainer
     
    2524                    volatile memory samples and provide a platform for \
    2625                    further work into this exciting area of research.
    2726
    28 homepage            https://www.volatilesystems.com/default/volatility
    29 master_sites        https://www.volatilesystems.com/volatility/${version}/
    30 distname            ${my_name}-${version}
    31 
    32 checksums           md5     e8272a7fa2f361880cf79d93b100f64a \
    33                     sha1    15bac31c4b0026a5422637f439dce499b1e19ac1 \
    34                     rmd160  89778cc7d6ad58ef12d87c00228efbc894474ad8
     27homepage            https://code.google.com/p/volatility/
     28distfiles-append    MacProfilesAll.zip
    3529
    3630supported_archs     noarch
     31python.versions     26 27
     32python.default_version     27
     33
     34depends_run-append  port:yara
    3735
    3836post-patch {
    3937    reinplace "s|import sys|import sys\\\nsys.path.append('${python.pkgd}')|" \
     
    4341}
    4442
    4543post-destroot {
    46     xinstall -m 755 -W ${worksrcpath} \
    47         volatility \
    48         ${destroot}${prefix}/bin
    49    
    50     xinstall -d ${destroot}${prefix}/share/doc/${name}
    51     xinstall -m 644 -W ${worksrcpath} \
    52         AUTHORS.txt \
    53         CREDITS.txt \
    54         LEGAL.txt \
    55         LICENSE.txt \
    56         README.txt \
    57         ${destroot}${prefix}/share/doc/${name}
    58 
    59     xinstall -m 644 -W ${worksrcpath} \
    60         vmodules.py \
    61         vsyms.py \
    62         vtypes.py \
    63         vutils.py \
    64         ${destroot}${python.pkgd}
     44        xinstall -d ${destroot}${prefix}/share/doc/${name}
     45        xinstall -m 644 -W ${worksrcpath} \
     46                AUTHORS.txt \
     47                CHANGELOG.txt \
     48                CREDITS.txt \
     49                LEGAL.txt \
     50                LICENSE.txt \
     51                README.txt \
     52                ${destroot}${prefix}/share/doc/${name}
     53
     54        xinstall -d ${destroot}${prefix}/share/examples/${name}
     55        copy ${distpath}/MacProfilesAll.zip ${destroot}${prefix}/share/examples/${name}/
    6556}
    6657
     58if {${subport} eq ${name}} {
     59
     60        master_sites        googlecode
     61
     62        checksums           volatility-${version}.tar.gz \
     63                            rmd160  621de1bf164e604314baeca42de9114c5289e67a \
     64                            sha256  bb1411fc671e0bf550a31e534fb1991b2f940f1dce1ebe4ce2fb627aec40726c \
     65                            MacProfilesAll.zip \
     66                            rmd160  b52ed3412093f72b75a2cc167a589c49d2cf3d6f \
     67                            sha256  455815a7b51e7ff1d6cbcae1850433174020687d0c3cd080fd81d2def21a789b
     68
     69}
     70
     71subport ${name}-devel {
     72        conflicts  ${name}
     73
     74        fetch.type          svn
     75        svn.url             http://volatility.googlecode.com/svn/trunk
     76        ## Note: currently not tag/branch outside of releases
     77        svn.revision        r3588
     78        worksrcdir          trunk
     79        checksums           MacProfilesAll.zip \
     80                            rmd160  b52ed3412093f72b75a2cc167a589c49d2cf3d6f \
     81                            sha256  455815a7b51e7ff1d6cbcae1850433174020687d0c3cd080fd81d2def21a789b
     82}
     83
     84notes "
     85You may need some kernel profile depending on memory image you want to analyze.
     86See https://code.google.com/p/volatility/wiki/MacMemoryForensics
     87"
     88
    6789livecheck.type      regex
    68 livecheck.regex     ${my_name}-(\[0-9.\]+)\\.tar
     90livecheck.regex     "Download the latest release: <a href=\"https://code.google.com/p/volatility/downloads/list\" rel=\"nofollow\">Volatility Framework (\\d+(?:\\.\\d+)*)</a>"