Skip to content

Commit

Permalink
Add magika
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalsleuth committed May 21, 2024
1 parent 7bca905 commit aab0f8c
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
2 changes: 2 additions & 0 deletions remnux/python3-packages/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ include:
- remnux.python3-packages.pylibemu
- remnux.python3-packages.peepdf-3
- remnux.python3-packages.dissect
- remnux.python3-packages.magika

remnux-python3-packages:
test.nop:
Expand Down Expand Up @@ -115,3 +116,4 @@ remnux-python3-packages:
- sls: remnux.python3-packages.pylibemu
- sls: remnux.python3-packages.peepdf-3
- sls: remnux.python3-packages.dissect
- sls: remnux.python3-packages.magika
40 changes: 40 additions & 0 deletions remnux/python3-packages/magika.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Name: Magika
# Website: https://google.github.io/magika/
# Description: File type detection and analysis
# Category: Examine Static Properties
# Author: Google
# License: Apache License 2.0 (https://github.com/google/magika/blob/main/LICENSE)
# Notes:

include:
- remnux.packages.python3-pip
- remnux.packages.virtualenv

remnux-python3-packages-magika-venv:
virtualenv.managed:
- name: /opt/magika
- python: /usr/bin/python3
- pip_pkgs:
- pip>=23.1.2
- setuptools==67.7.2
- wheel==0.38.4
- require:
- sls: remnux.packages.virtualenv
- sls: remnux.packages.python3-pip

remnux-python3-packages-magika-install:
pip.installed:
- name: magika
- bin_env: /opt/magika/bin/python3
- upgrade: True
- require:
- sls: remnux.packages.python3-pip
- virtualenv: remnux-python3-packages-magika-venv

remnux-python3-packages-magika-symlink:
file.symlink:
- name: /usr/local/bin/magika
- target: /opt/magika/bin/magika
- makedirs: False
- require:
- pip: remnux-python3-packages-magika-install

0 comments on commit aab0f8c

Please sign in to comment.