Advertisement
Guest User

Untitled

a guest
Mar 9th, 2014
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.78 KB | None | 0 0
  1. --- ../../_orig/security/volatility/Portfile 2013-07-15 12:03:51.000000000 -0400
  2. +++ Portfile 2014-03-09 21:54:51.000000000 -0400
  3. @@ -1,11 +1,10 @@
  4. # $Id: Portfile 70206 2010-08-01 23:28:25Z ryandesign@macports.org $
  5.  
  6. PortSystem 1.0
  7. -PortGroup python26 1.0
  8. +PortGroup python 1.0
  9.  
  10. name volatility
  11. -set my_name Volatility
  12. -version 1.1.2
  13. +version 2.3.1
  14. categories security
  15. platforms darwin
  16. maintainers yahoo.fr:jul_bsd openmaintainer
  17. @@ -25,15 +24,14 @@
  18. volatile memory samples and provide a platform for \
  19. further work into this exciting area of research.
  20.  
  21. -homepage https://www.volatilesystems.com/default/volatility
  22. -master_sites https://www.volatilesystems.com/volatility/${version}/
  23. -distname ${my_name}-${version}
  24. -
  25. -checksums md5 e8272a7fa2f361880cf79d93b100f64a \
  26. - sha1 15bac31c4b0026a5422637f439dce499b1e19ac1 \
  27. - rmd160 89778cc7d6ad58ef12d87c00228efbc894474ad8
  28. +homepage https://code.google.com/p/volatility/
  29. +distfiles-append MacProfilesAll.zip
  30.  
  31. supported_archs noarch
  32. +python.versions 26 27
  33. +python.default_version 27
  34. +
  35. +depends_run-append port:yara
  36.  
  37. post-patch {
  38. reinplace "s|import sys|import sys\\\nsys.path.append('${python.pkgd}')|" \
  39. @@ -43,26 +41,50 @@
  40. }
  41.  
  42. post-destroot {
  43. - xinstall -m 755 -W ${worksrcpath} \
  44. - volatility \
  45. - ${destroot}${prefix}/bin
  46. -
  47. - xinstall -d ${destroot}${prefix}/share/doc/${name}
  48. - xinstall -m 644 -W ${worksrcpath} \
  49. - AUTHORS.txt \
  50. - CREDITS.txt \
  51. - LEGAL.txt \
  52. - LICENSE.txt \
  53. - README.txt \
  54. - ${destroot}${prefix}/share/doc/${name}
  55. -
  56. - xinstall -m 644 -W ${worksrcpath} \
  57. - vmodules.py \
  58. - vsyms.py \
  59. - vtypes.py \
  60. - vutils.py \
  61. - ${destroot}${python.pkgd}
  62. + xinstall -d ${destroot}${prefix}/share/doc/${name}
  63. + xinstall -m 644 -W ${worksrcpath} \
  64. + AUTHORS.txt \
  65. + CHANGELOG.txt \
  66. + CREDITS.txt \
  67. + LEGAL.txt \
  68. + LICENSE.txt \
  69. + README.txt \
  70. + ${destroot}${prefix}/share/doc/${name}
  71. +
  72. + xinstall -d ${destroot}${prefix}/share/examples/${name}
  73. + copy ${distpath}/MacProfilesAll.zip ${destroot}${prefix}/share/examples/${name}/
  74. }
  75.  
  76. +if {${subport} eq ${name}} {
  77. +
  78. + master_sites googlecode
  79. +
  80. + checksums volatility-2.3.1.tar.gz \
  81. + rmd160 621de1bf164e604314baeca42de9114c5289e67a \
  82. + sha256 bb1411fc671e0bf550a31e534fb1991b2f940f1dce1ebe4ce2fb627aec40726c \
  83. + MacProfilesAll.zip \
  84. + rmd160 b52ed3412093f72b75a2cc167a589c49d2cf3d6f \
  85. + sha256 455815a7b51e7ff1d6cbcae1850433174020687d0c3cd080fd81d2def21a789b
  86. +
  87. +}
  88. +
  89. +subport ${name}-devel {
  90. + conflicts ${name}
  91. +
  92. + fetch.type svn
  93. + svn.url http://volatility.googlecode.com/svn/trunk
  94. + ## Note: currently not tag/branch outside of releases
  95. + #svn.revision x
  96. + worksrcdir trunk
  97. + checksums MacProfilesAll.zip \
  98. + rmd160 b52ed3412093f72b75a2cc167a589c49d2cf3d6f \
  99. + sha256 455815a7b51e7ff1d6cbcae1850433174020687d0c3cd080fd81d2def21a789b
  100. +}
  101. +
  102. +notes "
  103. +You may need some kernel profile depending on memory image you want to analyze.
  104. +See https://code.google.com/p/volatility/wiki/MacMemoryForensics
  105. +"
  106. +
  107. livecheck.type regex
  108. -livecheck.regex ${my_name}-(\[0-9.\]+)\\.tar
  109. +livecheck.regex "Download the latest release: <a href=\"https://code.google.com/p/volatility/downloads/list\" rel=\"nofollow\">Volatility Framework (\\d+(?:\\.\\d+)*)</a>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement