-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update v6 to have Debian Package release
- Loading branch information
1 parent
0a29bf8
commit aaca67a
Showing
10 changed files
with
128 additions
and
81 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
MIT License | ||
|
||
Copyright (c) <year> <copyright holders> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,24 @@ | ||
Incomplete Debian package implementation. | ||
It can be used to generate an easily installable Capstone, but misses a lot of | ||
mandatory things to add it in the Debian repos (`debian/control` is incomplete, no dependencies added etc.). | ||
# Capstone Docker packaging | ||
|
||
You can build the package by dispatching the `Build Debian Package` workflow or executing the commands in the `Dockerfile`. | ||
It assumes the current commit is tagged and `"$(git describe --tags --abbrev=0)"` returns a valid version number. | ||
The package is uploaded as artifact. | ||
This assumes your working directory is in the `packages/deb/` directory. | ||
To build a Debian package for capstone, run the script, where `<tag-name>` is going to be the version | ||
attached to both the `capstone.pc` file and the Debian package itself. The version is expected to be compliant with Debian versioning (a major/minor/patch), e. g. `5.0.4`. Debian versions can also support values to indicate pre-release, e. g. `6.0.0-Alpha1`. | ||
|
||
Note if a value such as `6.0.0-Alpha1` is provided, the major/minor/patch number is extracted for `capstone.pc`, which would have version `6.0.0`, but the Debian package would have the full version name on the control file. | ||
|
||
```bash | ||
./setup.sh <tag-name> | ||
``` | ||
|
||
The output Debian file would be in the form `libcapstone-dev_<tag-version>_amd64.deb`, as to match what would be expected in a standard Debian library package. | ||
|
||
To confirm the necessary libraries and `capstone.pc` is filled correctly, there exists a `check_capstone.sh` script to confirm `libcapstone-dev` was built correctly. | ||
|
||
If you want to check the contents of the Debian package, use the following: | ||
```bash | ||
# Check the DEBIAN/ folder | ||
dpkg-deb -e libcapstone-dev_<tag-version>_amd64.deb ./unpacked | ||
|
||
# Check the content of the package, EXCEPT the DEBIAN/ folder | ||
dpkg-deb -x libcapstone-dev_<tag-version>_amd64.deb ./unpacked | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,25 @@ | ||
Package: capstone | ||
Package: libcapstone-dev | ||
Source: capstone | ||
Version: <version-placeholder> | ||
Architecture: all | ||
Architecture: amd64 | ||
Maintainer: Rot127 <unisono@quyllur.org> | ||
Description: Capstone is a lightweight multi-platform, multi-architecture disassembly framework. | ||
Capstone supports the following frameworks; | ||
Alpha, BPF, Ethereum VM, HPPA, LoongArch, M68K, M680X, Mips, MOS65XX, PPC, RISC-V(rv32G/rv64G), | ||
SH, Sparc, SystemZ, TMS320C64X, TriCore, Webassembly, XCore and X86. | ||
Original-Maintainer: Debian Security Tools <team+pkg-security@tracker.debian.org> | ||
Installed-Size: <size-in-kb> | ||
Depends: libc6 (>= 2.2.5) | ||
Section: libdevel | ||
Priority: optional | ||
Multi-Arch: same | ||
Homepage: https://www.capstone-engine.org/ | ||
Description: lightweight multi-architecture disassembly framework - devel files | ||
Capstone is a lightweight multi-platform, multi-architecture disassembly | ||
framework. These are the development headers and libraries. | ||
Features: | ||
- Support hardware architectures: AArch64, ARM, Alpha, BPF, EVM, HPPA, LongArch, M680X, M68K, MOS65XX, Mips, PowerPC, RISCV, SH, Sparc, SystemZ, TMS320C64x, TriCore, WASM, x86, XCore, Xtensa. | ||
- Clean/simple/lightweight/intuitive architecture-neutral API. | ||
- Provide details on disassembled instructions (called "decomposer" by some | ||
others). | ||
- Provide some semantics of the disassembled instruction, such as list of | ||
implicit registers read & written. | ||
- Thread-safe by design. | ||
- Special support for embedding into firmware or OS kernel. | ||
- Distributed under the open source BSD license. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters