aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sleuthkit/APKBUILD
blob: f873b32dd94abc4af706c58ac94cc047f90bcf46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=sleuthkit
pkgver=4.2.0
pkgrel=0
pkgdesc="File system and media management forensic analysis tools"
arch="all"
license="custom"
depends="perl"
url="http://www.sleuthkit.org/sleuthkit"
depends_dev="libewf-dev sqlite-dev"
makedepends="$depends_dev autoconf automake libtool"
install=""
options="libtool"
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz
	10_link-to-sqlite.patch
	20_fix_spelling_errors.patch
	30_fix-manpages.patch
	40_no_static_ldflags.patch
	50_disable_ant_clean.patch"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	sed -i 's/daddr_t/uint32_t/g' tools/srchtools/sigfind.cpp
	autoreconf -fi
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr
	make || return  1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	install -d "$pkgdir"/usr/share/licenses/$pkgname
	install -Dm0644 licenses/* "$pkgdir"/usr/share/licenses/$pkgname

}

md5sums="e281fd0976ac93df5123a0eb8b32cfc3  sleuthkit-4.2.0.tar.gz
a70eee22ee0e0c7e014104be80f300e6  10_link-to-sqlite.patch
d17615f539b4bc5bc57f2675c5921c1a  20_fix_spelling_errors.patch
637713ba62356c72962701e42e5132c1  30_fix-manpages.patch
dc6516d309f5719b01396b785e89c443  40_no_static_ldflags.patch
b2dcc6fba6e77cfd5f69d92e58480aab  50_disable_ant_clean.patch"
sha256sums="91b287f19798ae480083c15401686e4a041c15f7a92054a5c0320bcb65604723  sleuthkit-4.2.0.tar.gz
c714731280ad99a047db6157c78a14ae73d82f102a2fe545347f4578be685afe  10_link-to-sqlite.patch
c902b51f24f31085d908549764c727f72a17b1cfc84cfe2bf6f5d4418e401cb9  20_fix_spelling_errors.patch
a436650b9d8df1000c77cb760f0a4fd6ee4ce2fe31114cb7910cf12cd9bddfa1  30_fix-manpages.patch
b0be2897811ba1496f032d617c33e18d98be621b0db32844ea1168ff385b0817  40_no_static_ldflags.patch
53f5c92be2af8ff3af07bc8e773bbadf1879b4903a8c0bae87e06dfde42c9ef5  50_disable_ant_clean.patch"
sha512sums="977c16505848348ff9f0b838d2117fde64bc35c7ca2e8a9eecdeac25b19e9f82dc2e3ebbf28f672cd2a8be9ce692dc104ebae1c00320782f6fad8a34a3cabe99  sleuthkit-4.2.0.tar.gz
2e165e1020fbf5af7507dc19faa7f115617432a06239cba78bf991d2bfcb73823bc33b1b621c859df27c62675d1db58d197b997f7e47acf368d4bc59073fc849  10_link-to-sqlite.patch
392f0bff361a91fe3dbee99ce12bacb5f033cef8ef19255da47ef9a6fa4a6d73260231a7054962cd33a507b3613075f5528321d9569cbc1fbc34e6274397689f  20_fix_spelling_errors.patch
4b68367bff62c731c09ab9a95f810b11562f0942021825226ca8d5e846e54c64004f77ac587ea0377bcb5c50c9dcb33dba1caa8cffd717076cc13c9931dd2c9c  30_fix-manpages.patch
e0421b2fc4bb1d04d3bdb13805d060b386f700586d9e33728185eaff26eef14d5fdbf89979fb5d898dfeee7467f891b5d3c33441f9cb35af5f93d3d576e7cc26  40_no_static_ldflags.patch
cb0d17840f1b4570da1ee0d092f8716a7e073463658d4a7b1cddb74058c5eccf316fcbd2e7c5fba3af0f0adaaabe4e395bd5a41aa1438be615edacb8c6efd89d  50_disable_ant_clean.patch"