Skip to content

Commit

Permalink
Merge pull request #127 from digitalsleuth/analyzemft_24
Browse files Browse the repository at this point in the history
Update analyzemft to use a Virtualenv, point to new repo using python 3
  • Loading branch information
ekristen authored Jan 14, 2025
2 parents 94a9de1 + 7f42c0d commit 01957cf
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 16 deletions.
14 changes: 0 additions & 14 deletions sift/python-packages/analyzemft.sls

This file was deleted.

2 changes: 0 additions & 2 deletions sift/python-packages/init.sls
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
include:
- sift.python-packages.analyzemft
- sift.python-packages.appcompatprocessor
- sift.python-packages.argparse
- sift.python-packages.bitstring
Expand Down Expand Up @@ -32,7 +31,6 @@ sift-python-packages:
test.nop:
- name: sift-python-packages
- require:
- sls: sift.python-packages.analyzemft
- sls: sift.python-packages.appcompatprocessor
- sls: sift.python-packages.argparse
- sls: sift.python-packages.bitstring
Expand Down
41 changes: 41 additions & 0 deletions sift/python3-packages/analyzemft.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Name: analyzeMFT
# Website: https://github.com/rowingdude/analyzeMFT
# Description: NTFS MFT File Parser
# Category:
# Author: Benjamin Cance
# License: MIT License (https://github.com/rowingdude/analyzeMFT/blob/master/LICENSE.txt)
# Notes: analyzemft

{% set commit = 'b1d0e6a0aa58d42000bfdb8e6588513bd62eaeab' %}

include:
- sift.packages.python3-virtualenv
- sift.packages.git

sift-python3-package-analyzemft-virtualenv:
virtualenv.managed:
- name: /opt/analyzemft
- venv_bin: /usr/bin/virtualenv
- pip_pkgs:
- pip>=24.1.3
- setuptools>=70.0.0
- wheel>=0.38.4
- require:
- sls: sift.packages.python3-virtualenv

sift-python3-package-analyzemft:
pip.installed:
- name: git+https://github.com/rowingdude/analyzemft.git@{{ commit }}
- bin_env: /opt/analyzemft/bin/python3
- upgrade: True
- require:
- virtualenv: sift-python3-package-analyzemft-virtualenv
- sls: sift.packages.git

sift-python3-package-analyzemft-symlink:
file.symlink:
- name: /usr/local/bin/analyzemft
- target: /opt/analyzemft/bin/analyzemft
- makedirs: False
- require:
- pip: sift-python3-package-analyzemft
2 changes: 2 additions & 0 deletions sift/python3-packages/init.sls
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include:
- sift.python3-packages.analyzemft
- sift.python3-packages.python3-keyring
- sift.python3-packages.pip
- sift.python3-packages.python3-keyring
Expand Down Expand Up @@ -31,6 +32,7 @@ sift-python3-packages:
test.nop:
- name: sift-python3-packages
- require:
- sls: sift.python3-packages.analyzemft
- sls: sift.python3-packages.python3-keyring
- sls: sift.python3-packages.pip
- sls: sift.python3-packages.python3-keyring
Expand Down

0 comments on commit 01957cf

Please sign in to comment.