Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Autopsy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IRT
Autopsy
Commits
00bda77f
Commit
00bda77f
authored
1 year ago
by
Greg DiCristofaro
Browse files
Options
Downloads
Patches
Plain Diff
updates for capturing libgtk
parent
de334cb4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
snap/snapcraft.yaml
+58
-54
58 additions, 54 deletions
snap/snapcraft.yaml
with
58 additions
and
54 deletions
snap/snapcraft.yaml
+
58
−
54
View file @
00bda77f
...
@@ -49,7 +49,6 @@ plugs:
...
@@ -49,7 +49,6 @@ plugs:
interface
:
browser-support
interface
:
browser-support
allow-sandbox
:
true
allow-sandbox
:
true
slots
:
slots
:
# TODO may not be necessary
# TODO may not be necessary
# taken from thunderbird snap: https://github.com/ubuntu/thunderbird/blob/stable/snapcraft.yaml
# taken from thunderbird snap: https://github.com/ubuntu/thunderbird/blob/stable/snapcraft.yaml
...
@@ -68,7 +67,7 @@ apps:
...
@@ -68,7 +67,7 @@ apps:
# set user home to new home value to avoid issues writing cache files to home
# set user home to new home value to avoid issues writing cache files to home
jreflags
:
$jreflags '-Duser.home=$HOME' '-Djava.io.tmpdir=$HOME/tmp' '-Djna.library.path=$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/local/lib'
jreflags
:
$jreflags '-Duser.home=$HOME' '-Djava.io.tmpdir=$HOME/tmp' '-Djna.library.path=$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/local/lib'
# to load libtsk.so
# to load libtsk.so
LD_LIBRARY_PATH
:
$SNAP/usr/local/lib:$LD_LIBRARY_PATH
LD_LIBRARY_PATH
:
$SNAP/usr/local/lib:$
SNAP/lib:$SNAP/usr/lib:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu:$
LD_LIBRARY_PATH
# make sure path is set up to ensure things like photorec are found
# make sure path is set up to ensure things like photorec are found
PATH
:
$SNAP/usr/bin:$SNAP/usr/local/bin:$PATH
PATH
:
$SNAP/usr/bin:$SNAP/usr/local/bin:$PATH
# gstreamer scans for plugins (i.e. app integration plugins). this tells gstreamer where to look for the scanner and libraries
# gstreamer scans for plugins (i.e. app integration plugins). this tells gstreamer where to look for the scanner and libraries
...
@@ -192,55 +191,54 @@ parts:
...
@@ -192,55 +191,54 @@ parts:
# needed by solr to determine locally running ports
# needed by solr to determine locally running ports
-
lsof
-
lsof
# TODO may be needed by openjfx
# TODO may be needed by openjfx
-
libopenjfx-java
# taken from https://github.com/jgneff/openjfx/blob/edge/snap/snapcraft.yaml
# taken from https://github.com/jgneff/openjfx/blob/edge/snap/snapcraft.yaml
#
- libatk1.0-0
-
libatk1.0-0
#
- libatk-bridge2.0-0
-
libatk-bridge2.0-0
#
- libatspi2.0-0
-
libatspi2.0-0
#
- libcairo2
-
libcairo2
#
- libcairo-gobject2
-
libcairo-gobject2
#
- libdatrie1
-
libdatrie1
#
- libepoxy0
-
libepoxy0
#
- libfontconfig1
-
libfontconfig1
#
- libfreetype6
-
libfreetype6
#
- libgdk-pixbuf2.0-0
-
libgdk-pixbuf2.0-0
#
- libgl1
-
libgl1
#
- libglvnd0
-
libglvnd0
#
- libglx0
-
libglx0
#
- libgraphite2-3
-
libgraphite2-3
#
- libgtk2.0-0
-
libgtk2.0-0
#
- libgtk-3-0
-
libgtk-3-0
#
- libharfbuzz0b
-
libharfbuzz0b
#
- libpango-1.0-0
-
libpango-1.0-0
#
- libpangocairo-1.0-0
-
libpangocairo-1.0-0
#
- libpangoft2-1.0-0
-
libpangoft2-1.0-0
#
- libpixman-1-0
-
libpixman-1-0
#
- libpng16-16
-
libpng16-16
#
- libthai0
-
libthai0
#
- libwayland-client0
-
libwayland-client0
#
- libwayland-cursor0
-
libwayland-cursor0
#
- libwayland-egl1
-
libwayland-egl1
#
- libx11-6
-
libx11-6
#
- libxau6
-
libxau6
#
- libxcb1
-
libxcb1
#
- libxcb-render0
-
libxcb-render0
#
- libxcb-shm0
-
libxcb-shm0
#
- libxcomposite1
-
libxcomposite1
#
- libxcursor1
-
libxcursor1
#
- libxdamage1
-
libxdamage1
#
- libxdmcp6
-
libxdmcp6
#
- libxext6
-
libxext6
#
- libxfixes3
-
libxfixes3
#
- libxi6
-
libxi6
#
- libxinerama1
-
libxinerama1
#
- libxkbcommon0
-
libxkbcommon0
#
- libxrandr2
-
libxrandr2
#
- libxrender1
-
libxrender1
#
- libxtst6
-
libxtst6
#
#
Gtk-Message: 16:12:52.145: Failed to load module "canberra-gtk-module"
# Gtk-Message: 16:12:52.145: Failed to load module "canberra-gtk-module"
#
- libcanberra-gtk3-module
-
libcanberra-gtk3-module
#
#
Gtk-Message: 10:57:54.572: Failed to load module "pk-gtk-module"
# Gtk-Message: 10:57:54.572: Failed to load module "pk-gtk-module"
#
- packagekit-gtk3-module
-
packagekit-gtk3-module
plugin
:
nil
plugin
:
nil
# source: https://github.com/sleuthkit/autopsy.git
# source: https://github.com/sleuthkit/autopsy.git
source
:
https://github.com/gdicristofaro/autopsy.git
source
:
https://github.com/gdicristofaro/autopsy.git
...
@@ -281,22 +279,28 @@ parts:
...
@@ -281,22 +279,28 @@ parts:
cat <<EOF > $AUTOPSY_LOCATION/bin/autopsywrapper.sh
cat <<EOF > $AUTOPSY_LOCATION/bin/autopsywrapper.sh
#!/bin/bash
#!/bin/bash
mkdir -p \$HOME/tmp
mkdir -p \$HOME/tmp
echo libs in gnome-platform
:
find \$SNAP_DESKTOP_RUNTIME -name *.so
echo Starting Autopsy...
echo Starting Autopsy...
\$SNAP/autopsy/bin/autopsy
\$SNAP/autopsy/bin/autopsy
EOF
EOF
chmod 755 $AUTOPSY_LOCATION/bin/autopsywrapper.sh
chmod 755 $AUTOPSY_LOCATION/bin/autopsywrapper.sh
# handles issue finding libgtk-2.0.so
LIB_GTK_LINK=$SNAPCRAFT_PART_INSTALL/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so
if ! [[ -L $LIB_GTK_LINK ]] ; then
LIB_GTK_LINK_PARENT="$(dirname "$LIB_GTK_LINK")"
pushd $LIB_GTK_LINK_PARENT
LIB_GTK_TARGET=../../../gnome-platform/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
ln -s $LIB_GTK_TARGET $LIB_GTK_LINK
popd
fi
# include this line to print all set variables
# include this line to print all set variables
# set -o posix ; echo $(set) >&2 ; ls -l "${jdkhome}/bin/java"
# set -o posix ; echo $(set) >&2 ; ls -l "${jdkhome}/bin/java"
# sed -i '129 i ' "$AUTOPSY_LOCATION/platform/lib/nbexec"
# sed -i '129 i ' "$AUTOPSY_LOCATION/platform/lib/nbexec"
# taken from https://github.com/ubuntu/gnome-recipes/blob/stable/snapcraft.yaml
# taken from https://github.com/ubuntu/gnome-recipes/blob/stable/snapcraft.yaml
cleanup
:
cleanup
:
after
:
[
autopsy
]
after
:
[
autopsy
]
plugin
:
nil
plugin
:
nil
build-snaps
:
[
core22
,
gtk-common-themes
,
gnome-42-2204
]
build-snaps
:
[
core22
,
gtk-common-themes
,
gnome-42-2204
]
override-prime
:
|
override-prime
:
|
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment