Skip to contentSkip to conversation

python3-multivolumefile: add recipe

PATCH New Leon Anavi 1 participant 4 messages Nov 2, 2023

lore
Share & tools
lore

Leon Anavi

author
#0 lore raw

PATCH 1/4 python3-multivolumefile: add recipe

Add multivolumefile, a multi volume file wrapper library. Version 0.2.3 changelog:

- implement readall()
- lint with black

This work was sponsored by GOVCERT.LU.

---
 .../python/python3-multivolumefile_0.2.3.bb   | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-multivolumefile_0.2.3.bb
meta-python/recipes-devtools/python/python3-multivolumefile_0.2.3.bb new file +21 -0
new file mode 100644
index 000000000..c82113101
@@ -0,0 +1,21 @@
+SUMMARY = "Multi volume file wrapper library"
+HOMEPAGE = "https://codeberg.org/miurahr/multivolume"
+LICENSE = "LGPL-2.1-or-later"
+SECTION = "devel/python"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=4fbd65380cdd255951079008b364516c"
+
+SRC_URI[sha256sum] = "a0648d0aafbc96e59198d5c17e9acad7eb531abea51035d08ce8060dcad709d6"
+
+inherit python_setuptools_build_meta pypi
+
+DEPENDS += " \
+    ${PYTHON_PN}-setuptools-scm-native \
+    ${PYTHON_PN}-toml-native \
+    ${PYTHON_PN}-wheel-native \
+"
+
+RDEPENDS:${PN} += "\
+    ${PYTHON_PN}-io \
+    ${PYTHON_PN}-core \
+    ${PYTHON_PN}-mmap \
+"
Signature · 1 line
2.39.2
author
#1 lore raw

PATCH 2/4 python3-oletools: add recipe

Add oletools, Python tools to analyze security characteristics of MS Office and OLE files. Version 0.60.1 changelog:

- olevba:
fixed a bug when calling XLMMacroDeobfuscator removed keyword "sample" causing false positives
- oleid: fixed OleID init issue
- oleobj:
added simple detection of CVE-2021-40444 initial stage added detection for customUI onLoad
improved handling of incorrect filenames in OLE package
- rtfobj: fixed code to find URLs in OLE2Link objects for Py3
- ftguess:
added PowerPoint and XPS formats
fixed issue with XPS and malformed documents added XLSB format
- improved logging with common module log_helper

This work was sponsored by GOVCERT.LU.

---
 .../python/python3-oletools_0.60.1.bb                 | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-oletools_0.60.1.bb
meta-python/recipes-devtools/python/python3-oletools_0.60.1.bb new file +11 -0
new file mode 100644
index 000000000..fbb7955d6
@@ -0,0 +1,11 @@
+SUMMARY = "Python tools to analyze security characteristics of MS Office and OLE files"
+HOMEPAGE = "https://github.com/decalage2/olefile"
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=d7dd4b0d1f7153322a546e89b5a0a632"
+
+SRC_URI[sha256sum] = "67a796da4c4b8e2feb9a6b2495bef8798a3323a75512de4e5669d9dc9d1fae31"
+
+inherit pypi setuptools3
+
+PYPI_PACKAGE = "oletools"
+PYPI_PACKAGE_EXT = "zip"
Signature · 1 line
2.39.2
author
#2 lore raw

PATCH 3/4 python3-olefile: add recipe

In reply to Leon Anavi

Add olefile, a package to parse, read and write Microsoft OLE2 files. Version 0.46 changelog:

- OleFileIO can now be used as a context manager (with...as), to close the file automatically (see doc).
- Improved handling of malformed files.
- Fixed several bugs.

This work was sponsored by GOVCERT.LU.

---
 .../python/python3-olefile_0.46.bb              | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-olefile_0.46.bb
meta-python/recipes-devtools/python/python3-olefile_0.46.bb new file +17 -0
new file mode 100644
index 000000000..e29f30f6f
@@ -0,0 +1,17 @@
+SUMMARY = "Python package to parse, read and write Microsoft OLE2 files"
+HOMEPAGE = "https://github.com/decalage2/olefile"
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e21a06208415d5eb2001555d37851362"
+
+SRC_URI[sha256sum] = "133b031eaf8fd2c9399b78b8bc5b8fcbe4c31e85295749bb17a87cba8f3c3964"
+
+inherit pypi setuptools3
+
+PYPI_PACKAGE = "olefile"
+PYPI_PACKAGE_EXT = "zip"
+
+RDEPENDS:${PN} += "\
+    ${PYTHON_PN}-core \
+    ${PYTHON_PN}-datetime \
+    ${PYTHON_PN}-logging \
+"
Signature · 1 line
2.39.2
author
#3 lore raw

PATCH 4/4 python3-pcodedmp: add recipe

In reply to Leon Anavi

Add pcodedmp, a VBA (Visual Basic for Applications; the macro programming language used in Microsoft Office) p-code disassembler version 1.2.6:

- Some cosmetic changes
- win_unicode_console not used when unavailable
- win_unicode_console is now used only on Windows

This work was sponsored by GOVCERT.LU.

---
 .../python/python3-pcodedmp_1.2.6.bb                 | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-pcodedmp_1.2.6.bb
meta-python/recipes-devtools/python/python3-pcodedmp_1.2.6.bb new file +12 -0
new file mode 100644
index 000000000..185597dea
@@ -0,0 +1,12 @@
+SUMMARY = "A VBA p-code disassembler"
+HOMEPAGE = "https://github.com/bontchev/pcodedmp"
+LICENSE = "GPL-3.0-only"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=84dcc94da3adb52b53ae4fa38fe49e5d"
+
+SRC_URI[sha256sum] = "025f8c809a126f45a082ffa820893e6a8d990d9d7ddb68694b5a9f0a6dbcd955"
+
+inherit pypi setuptools3
+
+PYPI_PACKAGE="pcodedmp"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.39.2