Skip to content
Snippets Groups Projects
Commit cc43a286 authored by Greg DiCristofaro's avatar Greg DiCristofaro
Browse files

working classic snap

parent 61e0f021
Branches
Tags
No related merge requests found
......@@ -5,7 +5,7 @@ class Autopsy < Formula
desc "Autopsy® is a digital forensics platform and graphical interface to The Sleuth Kit® and other digital forensics tools. It can be used by law enforcement, military, and corporate examiners to investigate what happened on a computer. You can even use it to recover photos from your camera's memory card. "
homepage "http://www.sleuthkit.org/autopsy/"
url "https://github.com/sleuthkit/autopsy/archive/refs/tags/autopsy-4.19.3.tar.gz"
# sha256 "67299005603af0cadc98c420ce5088187010b71eabcbb6db7a4e5bce325734c5"
# sha256 "SHA_HERE"
license "Apache-2.0"
depends_on "postgresql@14"
......
name: autopsy # you probably want to 'snapcraft register <name>'
base: core20 # the base snap is the execution environment for this snap
version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
name: autopsy
base: core20
version: '4.19.3'
summary: A graphical interface to The Sleuth Kit and other digital forensics tools. # 79 char long summary
description: Autopsy is a graphical interface to The Sleuth Kit and other open source digital forensics tools.
grade: stable # must be 'stable' to release into candidate/stable channels
# TODO look into turning back to strict for store inclusion
# TODO look into turning back to strict for easier store inclusion but more limited usage
confinement: classic # use 'strict' once you have the right plugs and slots
architectures: [amd64, arm64]
compression: lzo
......@@ -29,7 +29,7 @@ apps:
environment:
jdkhome: $SNAP/usr/lib/jvm/bellsoft-java8-full-amd64
LD_LIBRARY_PATH: $SNAP/usr/local/lib:$LD_LIBRARY_PATH
PATH: $SNAP/usr/local/bin:$PATH
PATH: $SNAP/usr/bin:$SNAP/usr/local/bin:$PATH
SOLR_LOGS_DIR: $HOME/.autopsy/dev/solr/logs
SOLR_PID_DIR: $HOME/.autopsy/dev/solr/logs
command: autopsy/bin/autopsy
......@@ -170,19 +170,5 @@ parts:
find "$AUTOPSY_LOCATION/autopsy/markmckinnon" -name "Export*" -o -name "parse*" | xargs -I{} chmod a+x {}
chmod -R a+x "$AUTOPSY_LOCATION/autopsy/solr/bin"
# # ----- INSTALL DESKTOP SHORTCUT -----
# AUTOPSY_DESKTOP_PATH="$SNAPCRAFT_PART_INSTALL/usr/share/applications/"
# AUTOPSY_ICON_BASE_PATH="usr/share/pixmaps/"
# mkdir -p "$SNAPCRAFT_PART_INSTALL/$AUTOPSY_ICON_BASE_PATH"
# cp ./snap/autopsy.png "$SNAPCRAFT_PART_INSTALL/$AUTOPSY_ICON_BASE_PATH"
# mkdir -p $AUTOPSY_DESKTOP_PATH
# sudo sh -c "cat << EOF > ${AUTOPSY_DESKTOP_PATH}/autopsy.desktop
# Icon=\$SNAP/${AUTOPSY_ICON_BASE_PATH}/autopsy.png
# Exec=\$SNAP/autopsy/bin/autopsy
# EOF"
# include this line to print all set variables
# TODO remove after debugging
sed -i '129 i set -o posix ; echo $(set) >&2 ; ls -l "${jdkhome}/bin/java"' "$AUTOPSY_LOCATION/platform/lib/nbexec"
\ No newline at end of file
# sed -i '129 i set -o posix ; echo $(set) >&2 ; ls -l "${jdkhome}/bin/java"' "$AUTOPSY_LOCATION/platform/lib/nbexec"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment