# cygport script for sleuthkit NAME=sleuthkit VERSION=4.12.1 RELEASE=1 SOURCE_DATE="2024-03-02 11:00:00 UTC" SUMMARY="Tools for analysis of volume and filesystem data" DESCRIPTION="The Sleuth Kit (TSK) is a collection of command line tools for disk images. It allows to analyze volume and filesystem data, examine disk layout, recover deleted files, etc. Many partition and filesystem formats are supported." LICENSE="CPL-1.0 AND GPL-2.0-or-later" # Licenses mentioned in licenses/README.md: # Apache-2.0 # case-uco/*, win32/rejistry++/* (code not used) # BSD-3-Clause # samples/*, tsk/fs/lzvn.c # CPL-1.0 # The Sleuth Kit (TSK) license # GPL-2.0-or-later # tools/srchtools/srch_strings.c # GPL-3.0-or-later # m4/ax_pthread.m4 (... WITH Autoconf-exception-3.0) # IPL-1.0 # The Coroner's Toolkit (TCT) license # ISC # tools/fiwalk/src/base64.* # "public domain" # tools/fiwalk/*, tsk/base/sha1.c # MIT # tsk/auto/guid.cpp # RSA-MD # tsk/base/md5c.c # "Unicode" # tsk/base/tsk_unicode.* CATEGORY="Utils" PKG_NAMES="sleuthkit libtsk libtsk-devel" REQUIRES="" # libgcc1 libstdc++6 libtsk perl-DateTime-TimeZone perl_base libtsk_REQUIRES="" # libgcc1 libsqlite3_0 libstdc++6 zlib0 libtsk_devel_REQUIRES="" # libtsk pkg-config BUILD_REQUIRES=" binutils cygwin-devel gcc-g++ gzip libsqlite3-devel perl_base zlib-devel " # make HOMEPAGE="https://www.sleuthkit.org/sleuthkit/" SRC_URI="https://github.com/sleuthkit/sleuthkit/releases/download/${P}/${P}.tar.gz" libtsk_SUMMARY="${SUMMARY} (runtime)" libtsk_DESCRIPTION="${DESCRIPTION} This package contains the runtime library for sleuthkit." libtsk_devel_SUMMARY="${SUMMARY} (development)" libtsk_devel_DESCRIPTION="${DESCRIPTION} This package contains the development files for libtsk." sleuthkit_CONTENTS=" --exclude=usr/bin/cygtsk-*.dll --exclude=usr/share/doc/${PN}/samples usr/bin usr/share " libtsk_CONTENTS=" usr/bin/cygtsk-*.dll " libtsk_devel_CONTENTS=" usr/include/tsk usr/lib usr/share/doc/${PN}/samples " export SOURCE_DATE_EPOCH=$(date -d "$SOURCE_DATE" +%s) src_compile() { cd ${B} # Some include paths are not correct for builds outside of srcdir lndirs # Prevent fallback to libsqlite3 from source distribution test -f /usr/lib/libsqlite3.dll.a || error "Package libsqlite-devel is required" # _GNU_SOURCE is required for strcasecmp(), vasprintf(), ... # configure sets LIBTSK_LDFLAGS="-no-undefined" only for MinGW cygconf --enable-shared --enable-static \ --with-gnu-ld --with-zlib \ --disable-cppunit --disable-java \ --without-afflib --without-libbfio --without-libewf \ --without-libvhdi --without-libvmdk --without-libvslvm \ CPPFLAGS=-D_GNU_SOURCE \ LIBTSK_LDFLAGS="-no-undefined" # 'LDFLAGS = @LDFLAGS@ -static' is predefined in all Makefile.am # Set to empty as '-shared' would suppress the build of the static lib cygmake LDFLAGS="${LDFLAGS}" } src_install() { cd ${B} cyginstall cd ${S} dodoc docs licenses docinto samples dodoc samples/*.cpp cd ${D}/usr/share/doc/${PN}/licenses rm -fv Apache-LICENSE-2.0.txt GNUv3-COPYING # unused gzip -9nv * }