Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The purpose of this project is to provide a cross platform library which can parse, modify and abstract ELF, PE and MachO formats. Main features: - Parsing: LIEF can parse ELF, PE, MachO, OAT, DEX, VDEX, ART and provides a user-friendly API to access to format internals. - Modify: LIEF enables to modify some parts of these formats - Abstract: Three formats have common features like sections, symbols, entry point... LIEF factors them. - API: LIEF can be used in C, C++ and Python WWW: https://github.com/lief-project/lief PR: 257041
- Loading branch information
Showing
5 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
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,26 @@ | ||
PORTNAME= lief | ||
DISTVERSION= 0.11.5 | ||
CATEGORIES= devel python | ||
MASTER_SITES= CHEESESHOP | ||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | ||
|
||
MAINTAINER= ports@nicandneal.net | ||
COMMENT= Library to instrument executable formats | ||
WWW= https://github.com/lief-project/lief | ||
|
||
LICENSE= APACHE20 | ||
|
||
# Note: cmake is needed to build, but distutils is used directly. | ||
# If USES= cmake is set, the build will not work. | ||
BUILD_DEPENDS= cmake:devel/cmake | ||
|
||
USES= python zip | ||
USE_PYTHON= concurrent distutils | ||
|
||
PY_VER= ${PYTHON_VER:S/.//} | ||
PLIST_SUB= PY_VER=${PY_VER} | ||
|
||
post-install: | ||
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/lief.cpython-${PY_VER}.so | ||
|
||
.include <bsd.port.mk> |
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,3 @@ | ||
TIMESTAMP = 1626076347 | ||
SHA256 (lief-0.11.5.zip) = 932ba495388fb52b4ba056a0b00abe0bda3567ad3ebc6d726be1e87b8be08b3f | ||
SIZE (lief-0.11.5.zip) = 15699277 |
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,11 @@ | ||
The purpose of this project is to provide a cross platform library which can | ||
parse, modify and abstract ELF, PE and MachO formats. | ||
|
||
Main features: | ||
|
||
- Parsing: LIEF can parse ELF, PE, MachO, OAT, DEX, VDEX, ART and provides a | ||
user-friendly API to access to format internals. | ||
- Modify: LIEF enables to modify some parts of these formats | ||
- Abstract: Three formats have common features like sections, symbols, entry | ||
point... LIEF factors them. | ||
- API: LIEF can be used in C, C++ and Python |
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,4 @@ | ||
bin/elf_reader.py | ||
bin/macho_reader.py | ||
bin/pe_reader.py | ||
%%PYTHON_SITELIBDIR%%/lief.cpython-%%PY_VER%%.so |