Last active
July 29, 2018 02:52
-
-
Save obilodeau/a2f50b9ddd66f16d1b01e61d0c7eb221 to your computer and use it in GitHub Desktop.
Autopsy 4.7.0 working PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Name=Autopsy | |
Comment=The Autopsy Forensic Browser is a GUI for The Sleuth Kit. | |
GenericName=Autopsy | |
Exec=/opt/autopsy/bin/autopsy | |
Icon=/usr/share/pixmaps/autopsy.ico | |
Type=Application | |
StartupNotify=false | |
Categories=Utility; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Jaryl Chng <mrciku@gmail.com> | |
# Contributor: Olivier Bilodeau <obilodeau@gosecure.ca> | |
pkgname=autopsy | |
pkgver=4.7.0 | |
pkgrel=2 | |
pkgdesc='The Autopsy Forensic Browser is a GUI for The Sleuth Kit.' | |
arch=(x86_64) | |
url='http://www.sleuthkit.org/autopsy/' | |
license=('MIT/Apache-2.0') | |
provides=(autopsy) | |
depends=(java-runtime testdisk sleuthkit sleuthkit-java java-openjfx) | |
makedepends=() | |
source=(https://github.com/sleuthkit/${pkgname}/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.zip Autopsy.desktop) | |
sha256sums=(de85415aef78236f6f135b6ab4376470e60c154f58b867d676bf5b11df40f766 5e887abf2f2c7df3a86816d02453d96a9fddc39fe742186b3356d8b00db92b01) | |
package() { | |
cd "${pkgname}-${pkgver}" | |
mkdir -p $pkgdir/opt/${pkgname} | |
cp -r * $pkgdir/opt/${pkgname}/ | |
# copy sleuthkit jar into autopsy | |
cp /usr/share/java/sleuthkit-4.6.1.jar $pkgdir/opt/${pkgname}/${pkgname}/modules/ext/sleuthkit-postgresql-4.6.1.jar | |
# overwrite bin/autopsy with proper permissions | |
install -m755 bin/autopsy $pkgdir/opt/${pkgname}/bin/autopsy | |
mkdir -p $pkgdir/usr/share/pixmaps | |
cp icon.ico $pkgdir/usr/share/pixmaps/autopsy.ico | |
mkdir -p $pkgdir/usr/share/applications | |
install -Dm644 ../../Autopsy.desktop $pkgdir/usr/share/applications | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Autopsy.desktop b/Autopsy.desktop | |
index 972bf12..c581ef1 100644 | |
--- a/Autopsy.desktop | |
+++ b/Autopsy.desktop | |
@@ -2,7 +2,7 @@ | |
Name=Autopsy | |
Comment=The Autopsy Forensic Browser is a GUI for The Sleuth Kit. | |
GenericName=Autopsy | |
-Exec=env TSK_HOME=/bin /usr/bin/autopsy | |
+Exec=/opt/autopsy/bin/autopsy | |
Icon=/usr/share/pixmaps/autopsy.ico | |
Type=Application | |
StartupNotify=false | |
diff --git a/PKGBUILD b/PKGBUILD | |
index 1548c00..9560fa5 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -1,35 +1,33 @@ | |
# Maintainer: Jaryl Chng <mrciku@gmail.com> | |
+# Contributor: Olivier Bilodeau <obilodeau@gosecure.ca> | |
pkgname=autopsy | |
pkgver=4.7.0 | |
-pkgrel=1 | |
+pkgrel=2 | |
pkgdesc='The Autopsy Forensic Browser is a GUI for The Sleuth Kit.' | |
arch=(x86_64) | |
url='http://www.sleuthkit.org/autopsy/' | |
license=('MIT/Apache-2.0') | |
provides=(autopsy) | |
-depends=(java-runtime testdisk sleuthkit sleuthkit-java) | |
+depends=(java-runtime testdisk sleuthkit sleuthkit-java java-openjfx) | |
makedepends=() | |
source=(https://github.com/sleuthkit/${pkgname}/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.zip Autopsy.desktop) | |
-sha256sums=(de85415aef78236f6f135b6ab4376470e60c154f58b867d676bf5b11df40f766 be382bc92f5e98dfebbbf31dc927fc44af0fecee6911f7122ba8e7c55d281262) | |
+sha256sums=(de85415aef78236f6f135b6ab4376470e60c154f58b867d676bf5b11df40f766 5e887abf2f2c7df3a86816d02453d96a9fddc39fe742186b3356d8b00db92b01) | |
package() { | |
cd "${pkgname}-${pkgver}" | |
- mkdir $pkgdir/usr | |
- mkdir $pkgdir/usr/bin | |
- install -m755 bin/autopsy $pkgdir/usr/bin/autopsy | |
- cp -r autopsy $pkgdir/usr/ | |
- cp -r docs $pkgdir/usr/ | |
- cp -r etc $pkgdir/usr/ | |
- cp -r gstreamer $pkgdir/usr/ | |
- cp -r harness $pkgdir/usr/ | |
- cp -r java $pkgdir/usr/ | |
- cp -r platform $pkgdir/usr/ | |
+ mkdir -p $pkgdir/opt/${pkgname} | |
+ cp -r * $pkgdir/opt/${pkgname}/ | |
- mkdir $pkgdir/usr/share | |
- mkdir $pkgdir/usr/share/pixmaps | |
+ # copy sleuthkit jar into autopsy | |
+ cp /usr/share/java/sleuthkit-4.6.1.jar $pkgdir/opt/${pkgname}/${pkgname}/modules/ext/sleuthkit-postgresql-4.6.1.jar | |
+ | |
+ # overwrite bin/autopsy with proper permissions | |
+ install -m755 bin/autopsy $pkgdir/opt/${pkgname}/bin/autopsy | |
+ | |
+ mkdir -p $pkgdir/usr/share/pixmaps | |
cp icon.ico $pkgdir/usr/share/pixmaps/autopsy.ico | |
- mkdir $pkgdir/usr/share/applications | |
+ mkdir -p $pkgdir/usr/share/applications | |
install -Dm644 ../../Autopsy.desktop $pkgdir/usr/share/applications | |
-} | |
\ No newline at end of file | |
+} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment