mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-05 02:50:26 +02:00
the-backdoor-factory: EAPI bump, fix metadata.missing
This commit is contained in:
parent
d2e7e424c5
commit
9733f65fe8
3 changed files with 40 additions and 24 deletions
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
/usr/share/backdoor-factory/backdoor.py "$@"
|
||||
8
app-exploits/the-backdoor-factory/metadata.xml
Normal file
8
app-exploits/the-backdoor-factory/metadata.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
|
|
@ -11,41 +11,52 @@ DESCRIPTION="BDF allows to patch executable binaries with user desired shellcode
|
|||
HOMEPAGE="https://github.com/secretsquirrel/the-backdoor-factory"
|
||||
SRC_URI="https://github.com/secretsquirrel/the-backdoor-factory/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
LICENSE="BSD-4"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
DEPEND="${PYTHON_DEPS}"
|
||||
RDEPEND="${DEPEND}
|
||||
app-crypt/osslsigncode
|
||||
dev-libs/capstone[python,${PYTHON_USEDEP}]
|
||||
!!dev-libs/capstone-bindings
|
||||
app-crypt/osslsigncode
|
||||
dev-python/pefile"
|
||||
dev-python/pefile[${PYTHON_USEDEP}]"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare(){
|
||||
epatch "${FILESDIR}"/pebin.patch
|
||||
rm -r osslsigncode
|
||||
rm {update.sh,install.sh}
|
||||
eapply "${FILESDIR}"/pebin.patch
|
||||
|
||||
# cleanup
|
||||
rm -r osslsigncode || die
|
||||
rm {update.sh,install.sh} || die
|
||||
|
||||
# use built-in certs
|
||||
cp "${FILESDIR}"/certs/* ./certs/
|
||||
eapply_user
|
||||
|
||||
python_fix_shebang "${S}"
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd ./aPLib/example/
|
||||
gcc -c -I../lib/elf -m32 -Wall -O2 -s -o appack.o appack.c -v
|
||||
gcc -m32 -Wall -O2 -s -o appack appack.o ../lib/elf/aplib.a -v
|
||||
cd ../..
|
||||
pushd aPLib/example >/dev/null || die
|
||||
$(tc-getCC) -c -I../lib/elf -m32 -Wall -o appack.o appack.c -v || die
|
||||
$(tc-getCC) -m32 -Wall -o appack appack.o ../lib/elf/aplib.a -v || die
|
||||
popd >/dev/null || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/${PN}
|
||||
doins -r "${S}"/*
|
||||
insinto "/usr/share/${PN}"
|
||||
doins -r *
|
||||
|
||||
dobin ./aPLib/example/appack
|
||||
python_optimize "${D}/usr/share/${PN}"
|
||||
|
||||
python_fix_shebang "${ED}"/usr/share/${PN}
|
||||
dobin aPLib/example/appack
|
||||
make_wrapper $PN \
|
||||
"${PYTHON} /usr/share/${PN}/backdoor.py"
|
||||
|
||||
fperms +x /usr/share/${PN}/backdoor.py
|
||||
dosym "${EPREFIX}"/usr/share/${PN}/backdoor.py /usr/bin/${PN}
|
||||
dodoc README.md
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue