Remove snapcraft files from dist

This commit is contained in:
Pau Rodriguez-Estivill 2023-03-14 20:21:32 +01:00 committed by pancake
parent e1e8cdf16a
commit 3d033190ae
2 changed files with 2 additions and 82 deletions

View File

@ -1,82 +0,0 @@
name: radare2
version: '4.5.0'
base: core18
summary: Radare2 reverse engineering framework and tool
description: |
Radare2 (also known as r2) is a complete framework for reverse-engineering
and analyzing binaries; composed of a set of small utilities
that can be used together or independently from the command line.
Built around a disassembler for computer software which generates
assembly language source code from machine-executable code,
it supports a variety of executable formats for different processors
and operating systems.
grade: devel # Development version, can only publish to beta/candidate channels.
confinement: devmode # Unrestricted access, only to beta/candidate channels.
# radare2 requires in most cases privileged access to resources.
# The following "plugs" are thus superfluous because the "devmode" confinement
# gives full access to the system as if it were a DEB/RPM package.
# With the following plugs though, and the "strict" confinement, radare2
# would be able to do things like editing an executable file in the $HOME folder.
apps:
radare2:
command: usr/bin/radare2
plugs: [home]
r2pm:
command: usr/bin/r2pm
plugs: [home]
r2agent:
command: usr/bin/r2agent
plugs: [home, network-bind]
rafind2:
command: usr/bin/rafind2
plugs: [home]
rahash2:
command: usr/bin/rahash2
plugs: [home]
rasm2:
command: usr/bin/rasm2
plugs: [home]
rabin2:
command: usr/bin/rabin2
plugs: [home]
radiff2:
command: usr/bin/radiff2
plugs: [home]
ragg2:
command: usr/bin/ragg2
plugs: [home]
rarun2:
command: usr/bin/rarun2
plugs: [home]
rax2:
command: usr/bin/rax2
plugs: [home]
rasign2:
command: usr/bin/rasign2
plugs: [home]
parts:
radare2:
source: https://github.com/radareorg/radare2.git
source-tag: '4.5.0'
plugin: meson
meson-parameters: [--prefix=/usr]
override-build: |
pip3 install --system meson
snapcraftctl build
build-packages:
- python3-pip
- python3-setuptools
- libmagic-dev
- pkg-config
- libzip-dev
- liblz4-dev
- libssl-dev
- libbsd-dev
- libcapstone-dev
- libuv1-dev
stage-packages:
- libuv1

View File

@ -12,6 +12,8 @@ Currently, you need to prepend `radare2.` to each command you want to run. For e
To find information about this snap package, run `snap info radare2`. See the section below on this.
To review the snap build reciepe this can be found in [this separate repository](https://github.com/radareorg/radare2-snap).
Installing radare2
-----------------
This command installs the `radare2` snap package using the _classic_ security confinement type. The _classic_ security confinement disables some restrictions that are applied to typical snap packages. _classic_ makes a package to work similar to APT and RPM packages.