added lief installer

This commit is contained in:
Michael Rodler 2017-04-05 11:54:11 +02:00
parent d583267a15
commit 6778ebd3c7
3 changed files with 17 additions and 0 deletions

View file

@ -100,6 +100,7 @@ only the python bindings for these libraries are installed.
| binary | [capstone](http://www.capstone-engine.org) | Multi-architecture disassembly framework. | <!--tool--><!--test-->
| binary | [keystone](http://www.keystone-engine.org) | Lightweight multi-architecture assembler framework. | <!--tool--><!--test-->
| binary | [unicorn](http://www.unicorn-engine.org) | Multi-architecture CPU emulator framework. | <!--tool--><!--test-->
| binary | [lief](https://lief.quarkslab.com/) | Library to Instrument Executable Formats. | <!--tool--><!--test-->
There are also some installers for non-CTF stuff to break the monotony!

13
lief/install Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash -ex
git clone --depth=1 https://github.com/lief-project/LIEF lief \
|| cd lief && git pull && cd ..
source ctf-tools-venv-activate
rm -rf build || true
mkdir build
cd build
cmake -DLIEF_PYTHON_API=on -DPYTHON_VERSION=2.7 -DCMAKE_BUILD_TYPE=Release ../lief/
cmake --build . --target LIB_LIEF_STATIC --config Release
cmake --build . --target LIB_LIEF_SHARED --config Release # for the shared one
cmake --build . --target pyLIEF --config Release
pip install api/python/

3
lief/install-root-debian Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash -ex
apt-get -y install cmake python2-dev