From 5ac0c3ee07a42965a4a9da1cd66fa47c32f80588 Mon Sep 17 00:00:00 2001 From: "Rick Farina (Zero_Chaos)" Date: Sun, 18 May 2025 16:19:12 -0400 Subject: [PATCH] pdfid: fix download, minor qa --- .../pdf-parser/pdf-parser-0.7.6.ebuild | 46 ------------------- app-forensics/pdfid/Manifest | 1 - app-forensics/pdfid/pdfid-0.2.7.ebuild | 38 --------------- app-forensics/pdfid/pdfid-0.2.8.ebuild | 16 +++---- 4 files changed, 7 insertions(+), 94 deletions(-) delete mode 100644 app-forensics/pdf-parser/pdf-parser-0.7.6.ebuild delete mode 100644 app-forensics/pdfid/pdfid-0.2.7.ebuild diff --git a/app-forensics/pdf-parser/pdf-parser-0.7.6.ebuild b/app-forensics/pdf-parser/pdf-parser-0.7.6.ebuild deleted file mode 100644 index 00b872c2c..000000000 --- a/app-forensics/pdf-parser/pdf-parser-0.7.6.ebuild +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{11..13} ) - -inherit python-r1 unpacker - -DESCRIPTION="This tool will parse a PDF document to identify the fundamental elements used" -HOMEPAGE="https://blog.didierstevens.com/programs/pdf-tools/" - -MY_P="${PN}_V$(ver_rs 1- '_')" -SRC_URI="https://www.didierstevens.com/files/software/${MY_P}.zip" - -LICENSE="public-domain" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" -IUSE="unicode yara" - -DEPEND="${PYTHON_DEPS} - $(unpacker_src_uri_depends)" - -RDEPEND="${DEPEND} - yara? ( dev-python/yara-python[${PYTHON_USEDEP}] )" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -S="${WORKDIR}" - -src_prepare() { - # Enable check maximum version of the python3 - sed -e 's/TestPythonVersion(enforceMaximumVersion=True)/# REM/' \ - -i pdf-parser.py || die - - # Fix encoding errors when reading files - use unicode && eapply "${FILESDIR}/0.7.4_define_encoding_format.patch" - default -} - -src_install() { - python_foreach_impl python_newscript pdf-parser.py pdf-parser -} - -pkg_postinst() { - einfo "\nSee more: https://blog.didierstevens.com/2008/04/09/quickpost-about-the-physical-and-logical-structure-of-pdf-files/\n" -} diff --git a/app-forensics/pdfid/Manifest b/app-forensics/pdfid/Manifest index 077383796..b28c4c071 100644 --- a/app-forensics/pdfid/Manifest +++ b/app-forensics/pdfid/Manifest @@ -1,2 +1 @@ -DIST pdfid_v0_2_7.zip 11773 BLAKE2B 808d73856ed18ca6f37c1ac77fe80fc1689f89fb9722cc7bfdf317477c9d20d6caf632c13c6a737bba4aef81b05427766af70c65b04ff011eca4ad054acb1c29 SHA512 02bb09b7d4541a55300a81f8c640a789b660f4d23933bc4ce3fa4055b85022611290bcee8dbd7842bcd95178b6c65b2e7fe2b99a17ce398c82642cbd1d07a4c5 DIST pdfid_v0_2_8.zip 11844 BLAKE2B 0d6912b368d4856a56a18dae0b509173791d6f1d2ec69a89c4609b49b60763af97a2c28eb90ada301852606447a474b577cd28dbbadd1e6a8d42a1a3bbf6347c SHA512 c0e409cf1fd317f9a2910eae6fb11673c07305d41a9012a866d694add614d0a0343740678265642df4db22af6f9374d982d8ea1755376d65568892c5febb9e35 diff --git a/app-forensics/pdfid/pdfid-0.2.7.ebuild b/app-forensics/pdfid/pdfid-0.2.7.ebuild deleted file mode 100644 index bc3fd0c85..000000000 --- a/app-forensics/pdfid/pdfid-0.2.7.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{11..13} ) - -inherit python-r1 unpacker - -DESCRIPTION="This tool will scan a PDF document looking for certain keyword" -HOMEPAGE="https://blog.didierstevens.com/programs/pdf-tools/" - -MY_P="${PN}_v$(ver_rs 1- '_')" -SRC_URI="https://www.didierstevens.com/files/software/${MY_P}.zip" - -LICENSE="public-domain" -SLOT="0" -KEYWORDS="amd64 ~arm x86" -IUSE="" - -DEPEND="${PYTHON_DEPS} - $(unpacker_src_uri_depends)" - -RDEPEND="${DEPEND}" - -PATCHES=( "${FILESDIR}"/${P}_pentoo.patch ) - -S="${WORKDIR}" - -src_install() { - insinto "/etc/${PN}" - doins pdfid.ini - - insinto "/usr/share/${PN}" - doins plugin_* - - python_foreach_impl python_newscript pdfid.py pdfid -} diff --git a/app-forensics/pdfid/pdfid-0.2.8.ebuild b/app-forensics/pdfid/pdfid-0.2.8.ebuild index e3d876e03..ccd8feb6c 100644 --- a/app-forensics/pdfid/pdfid-0.2.8.ebuild +++ b/app-forensics/pdfid/pdfid-0.2.8.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( python3_{11..13} ) +PYTHON_COMPAT=( python3_{11..14} ) inherit python-r1 unpacker @@ -11,22 +11,20 @@ DESCRIPTION="This tool will scan a PDF document looking for certain keyword" HOMEPAGE="https://blog.didierstevens.com/programs/pdf-tools/" MY_P="${PN}_v$(ver_rs 1- '_')" -SRC_URI="https://www.didierstevens.com/files/software/${MY_P}.zip" +SRC_URI="https://didierstevens.com/files/software/${MY_P}.zip" +S="${WORKDIR}" LICENSE="public-domain" SLOT="0" KEYWORDS="amd64 ~arm x86" -IUSE="" -DEPEND="${PYTHON_DEPS} +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RDEPEND="${PYTHON_DEPS}" +DEPEND="${RDEPEND} $(unpacker_src_uri_depends)" -RDEPEND="${DEPEND}" - PATCHES=( "${FILESDIR}"/pdfid-0.2.7_pentoo.patch ) -S="${WORKDIR}" - src_install() { insinto "/etc/${PN}" doins pdfid.ini