From 6708ef9cf89d5042bc8126cc1f29622108768763 Mon Sep 17 00:00:00 2001 From: Volker Wegert Date: Sat, 3 Dec 2022 06:14:01 +0100 Subject: [PATCH] re-applied changes to app-forensics/plaso --- app-forensics/plaso/Manifest | 2 + app-forensics/plaso/metadata.xml | 11 +++ app-forensics/plaso/plaso-20220724.ebuild | 110 +++++++++++++++++++++ app-forensics/plaso/plaso-20220930.ebuild | 111 ++++++++++++++++++++++ 4 files changed, 234 insertions(+) create mode 100644 app-forensics/plaso/Manifest create mode 100644 app-forensics/plaso/metadata.xml create mode 100644 app-forensics/plaso/plaso-20220724.ebuild create mode 100644 app-forensics/plaso/plaso-20220930.ebuild diff --git a/app-forensics/plaso/Manifest b/app-forensics/plaso/Manifest new file mode 100644 index 000000000..10db417fb --- /dev/null +++ b/app-forensics/plaso/Manifest @@ -0,0 +1,2 @@ +DIST plaso-20220724.tar.gz 148271197 BLAKE2B 2b69d1c5758bbc866d72f9b273d33288cf6d768957bb1a98c4c9a59e3a24b639eb040ba42c127b1d790be5d7b463cce8a23c4628236530b69aeb4dd7a9c8e48c SHA512 8724677c4ceb1aae0011fd3c652fab41668eb5ece2d30acaba8820f11ae4f18b075486c22fbfb00cdd4ffdc5f39af4def67d295a412b57c29e8c7d16d4bdcdd8 +DIST plaso-20220930.tar.gz 148351906 BLAKE2B 7623d72a0049a8867f62c25c63f56634599830db140cc1d394916731f7bd660790f476b8d06edd87fe3057afeed628eb95a8e82a8f1e2c2ed8e717f2767fd3df SHA512 d3852ce7f3f917f9efe9da5251c8bc6bf13c462a2736f54fa8ed5dc61d1b62b7b1d8373048fcb04259165feda0b675ad166f1cb981c9405286ddef3c02dfa91c diff --git a/app-forensics/plaso/metadata.xml b/app-forensics/plaso/metadata.xml new file mode 100644 index 000000000..080739de7 --- /dev/null +++ b/app-forensics/plaso/metadata.xml @@ -0,0 +1,11 @@ + + + + + unknown@pentoo.ch + Pentoo Maintainers + + + Enable Redis support (caution: requires ancient package versions!) + + diff --git a/app-forensics/plaso/plaso-20220724.ebuild b/app-forensics/plaso/plaso-20220724.ebuild new file mode 100644 index 000000000..ece803fba --- /dev/null +++ b/app-forensics/plaso/plaso-20220724.ebuild @@ -0,0 +1,110 @@ +# 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..11} ) + +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/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 +} diff --git a/app-forensics/plaso/plaso-20220930.ebuild b/app-forensics/plaso/plaso-20220930.ebuild new file mode 100644 index 000000000..ddc19f68f --- /dev/null +++ b/app-forensics/plaso/plaso-20220930.ebuild @@ -0,0 +1,111 @@ +# 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..11} ) + +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-20220925 + >=app-forensics/dfvfs-20220917 + >=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-20220806[python] + >=app-forensics/libevt-20191104[python] + >=app-forensics/libevtx-20220724[python] + >=app-forensics/libewf-20131210 + >=app-forensics/libfsapfs-20201107[python] + >=app-forensics/libfsext-20220112[python] + >=app-forensics/libfsfat-20220816[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/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 +}