pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Add py-sqlelf: explore ELF objects through the power of SQL.



Module Name:	pkgsrc-wip
Committed By:	Amitai Schleier <schmonz-web-git%schmonz.com@localhost>
Pushed By:	schmonz
Date:		Tue Mar 19 16:50:00 2024 -0400
Changeset:	d2384fe9c2593531b281e857782211dc14f3cbd1

Added Files:
	py-sqlelf/DESCR
	py-sqlelf/Makefile
	py-sqlelf/PLIST
	py-sqlelf/distinfo

Log Message:
Add py-sqlelf: explore ELF objects through the power of SQL.

Might work, given Python bindings from lief and some TOOL_DEPENDS.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d2384fe9c2593531b281e857782211dc14f3cbd1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-sqlelf/DESCR    | 10 ++++++++++
 py-sqlelf/Makefile | 28 ++++++++++++++++++++++++++++
 py-sqlelf/PLIST    |  4 ++++
 py-sqlelf/distinfo |  5 +++++
 4 files changed, 47 insertions(+)

diffs:
diff --git a/py-sqlelf/DESCR b/py-sqlelf/DESCR
new file mode 100644
index 0000000000..c7cb894f57
--- /dev/null
+++ b/py-sqlelf/DESCR
@@ -0,0 +1,10 @@
+A tool that utilizes SQLite's virtual table functionality to allow you
+to explore Linux ELF objects through SQL.
+
+Traditionally exploring an ELF file was limited to tools such as objdump
+or readelf. While these tools are full featured in their parsing
+capability, the output format and ability to ask exploratory questions
+is limited.
+
+SQL is the lingua franca for asking questions in a declarative manner.
+Let's enhance our ability to introspect binaries!
diff --git a/py-sqlelf/Makefile b/py-sqlelf/Makefile
new file mode 100644
index 0000000000..7f16004f53
--- /dev/null
+++ b/py-sqlelf/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD$
+
+DISTNAME=		sqlelf-0.4
+PKGNAME=		${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=		devel
+MASTER_SITES=		${MASTER_SITE_GITHUB:=fzakaria/}
+GITHUB_RELEASE=		v${PKGVERSION_NOREV}
+
+MAINTAINER=		pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=		https://github.com/fzakaria/sqlelf/
+COMMENT=		Explore ELF objects through the power of SQL
+LICENSE=		mit
+
+PYTHON_VERSIONS_ACCEPTED= 311 310
+USE_LANGUAGES=		c c++
+
+# TOOL_DEPENDS:
+# setuptools
+# setuptools-scm[toml]
+# setuptools.build_meta
+
+DEPENDS+=		${PYPKGPREFIX}-apsw>=3.43.1.0:../../databases/py-apsw
+DEPENDS+=		${PYPKGPREFIX}-capstone>=5.0.1:../../devel/py-capstone
+DEPENDS+=		${PYPKGPREFIX}-lief>=0.14.0:../../wip/lief
+DEPENDS+=		${PYPKGPREFIX}-sh>=2.0.6:../../sysutils/py-sh
+
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-sqlelf/PLIST b/py-sqlelf/PLIST
new file mode 100644
index 0000000000..66e6bf5143
--- /dev/null
+++ b/py-sqlelf/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+@comment TODO: to fill this file with the file listing:
+@comment TODO: 1. run "/opt/pkg/bin/bmake package"
+@comment TODO: 2. run "/opt/pkg/bin/bmake print-PLIST"
diff --git a/py-sqlelf/distinfo b/py-sqlelf/distinfo
new file mode 100644
index 0000000000..e2b28e0af9
--- /dev/null
+++ b/py-sqlelf/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (sqlelf-0.4.tar.gz) = c43f530626a5fde3214a799efc5d8434d9b5439d274735a0630682fb273af7dc
+SHA512 (sqlelf-0.4.tar.gz) = 038ba58b68fbda2fe9fc36c76aafd10c9d45c6ac3f2d3113ad965f7d60e681af1e3b560f6d7c79f37f5223a5bd045b0b24c70b7967e429612ed39a039ea2f205
+Size (sqlelf-0.4.tar.gz) = 180009 bytes


Home | Main Index | Thread Index | Old Index