lief-bin: remove, we have a proper src ebuild

This commit is contained in:
blshkv 2020-01-07 18:00:41 +08:00
parent 2bc807ac95
commit 3c88715b70
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
4 changed files with 0 additions and 66 deletions

View file

@ -1,3 +0,0 @@
DIST lief-0.9.0-py2.7-linux.egg 3819709 BLAKE2B e5582760a1d1e235d838a58287ca46bfd649305c5887e86edb017d184a8be08ad379198d01568d409e68dd01f8c2a1bd7c8eb28d0a9590e90da4d79ce88108ab SHA512 9aa66cb1b1d698e7942552be39de1f26e58cc2e68ff2e6a7ec5a5f00cf6d8959ef1ca8667b0a0043d84cbf4335c955413c0539a27cd52277a9b80f5010329e63
DIST lief-0.9.0-py3.6-linux.egg 3611492 BLAKE2B 3dddb6de0956f676f581bd2328fb6c6cfc8aab2b3ecde1dfac7fb5e13ef009bf1e88be628a76e87194b33e30008034e52bfa194cd610e53594d4905ad9659b47 SHA512 b53d166ca49995e87d0566af64fa0d738c85bbc06ff71fd4564629a7af3045f2990b217dffbe026c6ea3b48aedfb4843ba7bc515219649d5b9b610dfd5ca70e1
DIST lief-0.9.0.zip 5699 BLAKE2B 9cf2deeb0e73eaecf8c4c811936bf0b4c1102584f4e39824040197a6d9226402c5a89050c3e283bc40076fd8d67b17e6afadf8f74ce93f807b8845692a603ac1 SHA512 2f1eed1f359a9c898a031d622029958e5b91cd947868649ffe599ec80e0309c7579fb402247f2d31cd913f366deccc30cb4690f3ca75a692ee7f1efc50ce7d1a

View file

@ -1,12 +0,0 @@
#!/usr/bin/env python
import lief
import sys
if len(sys.argv) < 3:
print("Run: lief_inject <nativelib>.so <libfrida-gadget>.so ")
sys.exit(1)
libnative = lief.parse(sys.argv[1])
libnative.add_library(sys.argv[2]) # Injection!
libnative.write(sys.argv[2])

View file

@ -1,40 +0,0 @@
# Copyright 1999-2019 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 python3_{5,6} )
inherit distutils-r1
MY_PN=${PN/-bin/}
MY_P=${MY_PN}-${PV}
DESCRIPTION="Library to instrument executable formats"
HOMEPAGE="https://lief.quarkslab.com/"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip
https://github.com/lief-project/LIEF/releases/download/${PV}/${MY_P}-py2.7-linux.egg
https://github.com/lief-project/LIEF/releases/download/${PV}/${MY_P}-py3.6-linux.egg"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
QA_FLAGS_IGNORED="usr/lib.*/python.*/site-packages/_pylief.*\.so"
RDEPEND=""
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"
S=${WORKDIR}/${MY_P}
src_prepare() {
#copy symlinks to homedir for offline installation
cp -s "${DISTDIR}"/${MY_P}-py2.7-linux.egg "${HOME}"
cp -s "${DISTDIR}"/${MY_P}-py3.6-linux.egg "${HOME}"
default
}
src_install() {
distutils-r1_src_install
dobin "${FILESDIR}/lief_inject.py"
}

View file

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>blshkv@pentoo.org</email>
</maintainer>
<upstream>
<remote-id type="github">lief-project/LIEF</remote-id>
<remote-id type="pypi">lief</remote-id>
</upstream>
</pkgmetadata>