mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 00:16:22 +01:00
pdfid-0.2.8.ebuild
This commit is contained in:
parent
b3e8573662
commit
dcb027e5de
3 changed files with 39 additions and 12 deletions
|
|
@ -1 +1,2 @@
|
|||
DIST pdfid_v0_2_7.zip 11773 BLAKE2B 808d73856ed18ca6f37c1ac77fe80fc1689f89fb9722cc7bfdf317477c9d20d6caf632c13c6a737bba4aef81b05427766af70c65b04ff011eca4ad054acb1c29 SHA512 02bb09b7d4541a55300a81f8c640a789b660f4d23933bc4ce3fa4055b85022611290bcee8dbd7842bcd95178b6c65b2e7fe2b99a17ce398c82642cbd1d07a4c5
|
||||
DIST pdfid_v0_2_8.zip 11844 BLAKE2B 0d6912b368d4856a56a18dae0b509173791d6f1d2ec69a89c4609b49b60763af97a2c28eb90ada301852606447a474b577cd28dbbadd1e6a8d42a1a3bbf6347c SHA512 c0e409cf1fd317f9a2910eae6fb11673c07305d41a9012a866d694add614d0a0343740678265642df4db22af6f9374d982d8ea1755376d65568892c5febb9e35
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
diff -ur a/pdfid.py b/pdfid.py
|
||||
--- a/pdfid.py 2019-09-30 20:44:40.000000000 +0300
|
||||
+++ b/pdfid.py 2019-10-03 12:28:14.005831243 +0300
|
||||
@@ -367,7 +367,7 @@
|
||||
def ParseINIFile():
|
||||
oConfigParser = ConfigParser.ConfigParser(allow_no_value=True)
|
||||
oConfigParser.optionxform = str
|
||||
- oConfigParser.read(os.path.join(os.path.dirname(sys.argv[0]), 'pdfid.ini'))
|
||||
+ oConfigParser.read(os.path.join('/etc/pdfid/pdfid.ini'))
|
||||
keywords = []
|
||||
if oConfigParser.has_section('keywords'):
|
||||
for key, value in oConfigParser.items('keywords'):
|
||||
38
app-forensics/pdfid/pdfid-0.2.8.ebuild
Normal file
38
app-forensics/pdfid/pdfid-0.2.8.ebuild
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{9..10} )
|
||||
|
||||
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}"/pdfid-0.2.7_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
|
||||
}
|
||||
Loading…
Reference in a new issue