From 417d1c94e50acc24fde30f6060fc716aaa9acec9 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Thu, 13 Nov 2025 21:17:59 -0800 Subject: [PATCH] add: binsider (#7349) (#7361) (cherry picked from commit 905764c5db7ce43659ba7946afce49c4ea9a13f4) Signed-off-by: Owen-sz Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/tools/binsider/anda.hcl | 5 ++++ anda/tools/binsider/binsider.spec | 41 +++++++++++++++++++++++++++++++ anda/tools/binsider/update.rhai | 1 + 3 files changed, 47 insertions(+) create mode 100644 anda/tools/binsider/anda.hcl create mode 100644 anda/tools/binsider/binsider.spec create mode 100644 anda/tools/binsider/update.rhai diff --git a/anda/tools/binsider/anda.hcl b/anda/tools/binsider/anda.hcl new file mode 100644 index 0000000000..985bbd2619 --- /dev/null +++ b/anda/tools/binsider/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "binsider.spec" + } +} diff --git a/anda/tools/binsider/binsider.spec b/anda/tools/binsider/binsider.spec new file mode 100644 index 0000000000..808e194a74 --- /dev/null +++ b/anda/tools/binsider/binsider.spec @@ -0,0 +1,41 @@ +Name: binsider +Version: 0.2.1 +Release: 1%?dist +Summary: Analyze ELF binaries like a boss πŸ˜ΌπŸ•΅οΈβ€β™‚οΈ +License: Apache-2.0 AND MIT +URL: https://github.com/orhun/binsider +Source0: %url/archive/refs/tags/v%{version}.tar.gz + +BuildRequires: anda-srpm-macros +BuildRequires: cargo-rpm-macros +BuildRequires: gcc +BuildRequires: cargo +BuildRequires: mold + +Packager: Owen Zimmerman + +%description +Binsider can perform static and dynamic analysis, inspect strings, examine +linked libraries, and perform hexdumps, within a terminal user interface. + +%prep +%autosetup -n %{name}-%{version} +%cargo_prep_online + +%build +%cargo_build + +%install +install -Dm 755 target/rpm/binsider %{buildroot}%{_bindir}/binsider +%cargo_license_summary_online +%{cargo_license_online -a} > LICENSE.dependencies + +%files +%doc README.md CONTRIBUTING.md CHANGELOG.md CODE_OF_CONDUCT.md RELEASE.md SECURITY.md +%license LICENSE-APACHE LICENSE-MIT +%license LICENSE.dependencies +%{_bindir}/binsider + +%changelog +* Thu Nov 13 2025 Owen Zimmerman +- Initial commit diff --git a/anda/tools/binsider/update.rhai b/anda/tools/binsider/update.rhai new file mode 100644 index 0000000000..668c74c991 --- /dev/null +++ b/anda/tools/binsider/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("orhun/binsider"));