pentoo-overlay/app-forensics/plaso/plaso-20220724.ebuild
2023-11-30 11:14:42 +08:00

110 lines
3.6 KiB
Bash

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1
DESCRIPTION="Plaso (log2timeline) is a framework to create super timelines."
HOMEPAGE="https://github.com/log2timeline/plaso"
SRC_URI="https://github.com/log2timeline/plaso/releases/download/${PV}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="redis test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
# Upstream specifies certifi >= 2016.9.26 as a requirement. Gentoo has certifi-system-store packaged as
# dev-python/certifi. This is a replacement package with a) a different versioning scheme and b) a warning
# against production use. We'll try using the existing package for now, knowing that we might have to
# package the original certifi if anything goes wrong.
# Also note that pytsk3 is packaged as app-forensics/pytsk.
DEPEND="
>=dev-python/pip-7.0[${PYTHON_USEDEP}]
>=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
>=dev-python/xlsxwriter-0.9.3
>=dev-python/artifacts-20220219
dev-python/bencode_py
dev-python/certifi
>=dev-python/cffi-1.9.1
>=dev-python/cryptography-2.0.2
>=dev-python/defusedxml-0.5.0
>=dev-python/dfdatetime-20211113
>=app-forensics/dfvfs-20220414
>=app-forensics/dfwinreg-20211207
>=dev-python/dtfabric-20220219
>=dev-python/future-0.16.0
>=app-forensics/libbde-20220121[python]
>=dev-libs/libcreg-20200725[python]
>=app-forensics/libesedb-20150409[python]
>=app-forensics/libevt-20191104[python]
>=app-forensics/libevtx-20210424[python]
>=app-forensics/libewf-20131210
>=app-forensics/libfsapfs-20201107[python]
>=app-forensics/libfsext-20220112[python]
>=app-forensics/libfshfs-20220115[python]
>=app-forensics/libfsntfs-20211229[python]
>=app-forensics/libfsxfs-20220113[python]
>=app-forensics/libfvde-20220121[python]
>=dev-libs/libfwnt-20210717[python]
>=dev-libs/libfwsi-20150606[python]
>=app-forensics/liblnk-20150830[python]
>=app-forensics/libluksde-20220121[python]
>=app-forensics/libmodi-20210405[python]
>=app-forensics/libmsiecf-20150314[python]
>=app-forensics/libolecf-20151223[python]
>=app-forensics/libphdi-20220110[python]
>=app-forensics/libqcow-20201213[python]
>=app-forensics/libregf-20201002[python]
>=app-forensics/libscca-20190605[python]
>=dev-libs/libsigscan-20191221[python]
>=dev-libs/libsmdev-20140529[python]
>=app-forensics/libsmraw-20140612[python]
>=dev-libs/libvhdi-20201014[python]
>=dev-libs/libvmdk-20140421[python]
>=app-forensics/libvsgpt-20211115[python]
>=app-forensics/libvshadow-20160109[python]
>=app-forensics/libvslvm-20160109[python]
>=dev-python/lz4-0.10.0
dev-python/opensearch_py
>=dev-python/pefile-2021.5.24
>=dev-python/psutil-5.4.3
>=dev-python/pyparsing-2.4.2
>=dev-python/python-dateutil-1.5
>=app-forensics/pytsk-20210419
dev-python/pytz
>=dev-python/pyxattr-0.7.2
>=dev-python/pyzmq-2.1.11
>=dev-python/redis-py-3.4
redis? ( <dev-python/redis-py-4.2 )
>=dev-python/requests-2.18.0
>=dev-python/six-1.1.0[${PYTHON_USEDEP}]
>=dev-python/yara-python-3.4.0
${PYTHON_DEPS}
test? (
redis? ( >=dev-python/fakeredis-1.4.1[${PYTHON_USEDEP}] )
>=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
>=dev-python/pbr-4.2.0[${PYTHON_USEDEP}]
>=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}]
)
"
RDEPEND="${DEPEND}"
python_test() {
"${EPYTHON}" run_tests.py -v || die
}
python_install_all() {
distutils-r1_python_install_all
# move some documentation files to the canonical target path
mv "${ED}"/usr/share/doc/"${PN}"/* "${ED}"/usr/share/doc/"${PF}"/ || die
rmdir "${ED}"/usr/share/doc/"${PN}" || die
}