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
1f74d98e
Commit
1f74d98e
authored
2 years ago
by
Greg DiCristofaro
Browse files
Options
Downloads
Patches
Plain Diff
got gstreamer working with homebrew
parent
34b247bd
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
homebrew/autopsy.rb
+22
-10
22 additions, 10 deletions
homebrew/autopsy.rb
with
22 additions
and
10 deletions
homebrew/autopsy.rb
+
22
−
10
View file @
1f74d98e
...
...
@@ -12,13 +12,7 @@ class Autopsy < Formula
depends_on
"libewf"
depends_on
"testdisk"
# TODO is this right?
depends_on
"gst-devtools"
depends_on
"gst-libav"
depends_on
"gst-plugins-bad"
depends_on
"gst-plugins-base"
depends_on
"gst-plugins-good"
depends_on
"gst-plugins-ugly"
depends_on
"libheif"
depends_on
"libtool"
=>
:build
...
...
@@ -47,6 +41,9 @@ class Autopsy < Formula
end
on_macos
do
uses_from_macos
"sqlite"
resource
"gstreamer_pkg"
do
url
"https://gstreamer.freedesktop.org/data/pkg/osx/1.20.4/gstreamer-1.0-1.20.4-universal.pkg"
end
on_arm
do
resource
"liberica_jvm"
do
...
...
@@ -102,9 +99,24 @@ class Autopsy < Formula
ENV
[
"TSK_JAVA_LIB_PATH"
]
=
File
.
join
(
prefix
,
"share"
,
"java"
)
system
unix_setup_script
,
"-j"
,
"
#{
java_home_path
}
"
open
(
File
.
join
(
autopsy_install_path
,
"etc"
,
"autopsy.conf"
),
'a'
)
{
|
f
|
f
.
puts
(
"export jreflags=
\"
-Djna.library.path=/usr/local/lib/ $jreflags
\"
"
)
}
# handle installing gstreamer for use with autopsy
# homebrew gstreamer packages don't appear to integrate properly with gstreamer-java
if
OS
.
mac?
# pkg has nested folders (with .pkg suffix) whose contents need to be extracted to the same location
gstreamer_initial_download_folder
=
"./gstreamer_initial_download"
gstreamer_initial_extraction
=
"./gstreamer_initial_extraction"
gstreamer_extraction_path
=
File
.
join
(
install_dir
,
"gstreamer_libs"
)
resource
(
"gstreamer_pkg"
).
stage
(
gstreamer_initial_download_folder
)
gstreamer_pkg_path
=
`find
#{
gstreamer_initial_download_folder
}
-maxdepth 1 -name *.pkg | head -n1`
.
strip
()
system
"pkgutil"
,
"--expand-full"
,
gstreamer_pkg_path
,
gstreamer_initial_extraction
system
"mkdir"
,
"-p"
,
gstreamer_extraction_path
system
"find
#{
gstreamer_initial_extraction
}
-maxdepth 2 -type d -path *.pkg/Payload | xargs -I{} cp -R {}/.
#{
gstreamer_extraction_path
}
"
open
(
File
.
join
(
autopsy_install_path
,
"etc"
,
"autopsy.conf"
),
'a'
)
{
|
f
|
f
.
puts
(
"export jreflags=
\"\\\"
-Djna.library.path=
#{
gstreamer_extraction_path
}
/lib
\\\"
$jreflags
\"
"
)
}
end
bin_autopsy
=
File
.
join
(
bin
,
"autopsy"
)
system
"ln"
,
"-s"
,
File
.
join
(
autopsy_install_path
,
"bin"
,
"autopsy"
),
bin_autopsy
...
...
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