mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-24 15:51:03 +02:00
weevely: EAPI bump, add *9999 and fix metadata.missing
This commit is contained in:
parent
59cdb0d4dc
commit
fe3473eb03
3 changed files with 76 additions and 43 deletions
8
app-exploits/weevely/metadata.xml
Normal file
8
app-exploits/weevely/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,43 +0,0 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit eutils python-single-r1
|
||||
|
||||
DESCRIPTION="Weevely is a stealth PHP web shell that simulate telnet-like console"
|
||||
HOMEPAGE="https://github.com/epinna/weevely3"
|
||||
SRC_URI="https://github.com/epinna/weevely3/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}
|
||||
dev-python/prettytable[${PYTHON_USEDEP}]
|
||||
dev-python/mako[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||
dev-python/PySocks[${PYTHON_USEDEP}]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
DOCS=( README.md )
|
||||
|
||||
S="${WORKDIR}/weevely3-${PV}"
|
||||
|
||||
src_install() {
|
||||
rm LICENSE
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
doins -r "${S}"/*
|
||||
|
||||
python_fix_shebang "${ED}"/usr/share/${PN}
|
||||
|
||||
fperms +x /usr/share/${PN}/${PN}.py
|
||||
dosym "${EPREFIX}"/usr/share/${PN}/${PN}.py /usr/bin/${PN}
|
||||
}
|
||||
1
app-exploits/weevely/weevely-3.7.0.ebuild
Symbolic link
1
app-exploits/weevely/weevely-3.7.0.ebuild
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
./weevely-9999.ebuild
|
||||
67
app-exploits/weevely/weevely-9999.ebuild
Normal file
67
app-exploits/weevely/weevely-9999.ebuild
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit eutils python-single-r1
|
||||
|
||||
DESCRIPTION="Weevely is a stealth PHP web shell that simulate telnet-like console"
|
||||
HOMEPAGE="https://github.com/epinna/weevely3"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/epinna/weevely3"
|
||||
else
|
||||
SRC_URI="https://github.com/epinna/weevely3/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
S="${WORKDIR}/weevely3-${PV}"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
|
||||
DEPEND="${PYTHON_DEPS}"
|
||||
RDEPEND="${DEPEND}
|
||||
dev-python/prettytable[${PYTHON_USEDEP}]
|
||||
dev-python/mako[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||
dev-python/PySocks[${PYTHON_USEDEP}]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# cleanup
|
||||
rm -fr tests/ LICENSE || die
|
||||
|
||||
python_fix_shebang "${S}"
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/${PN}"
|
||||
doins -r .
|
||||
|
||||
python_optimize "${D}/usr/share/${PN}"
|
||||
|
||||
make_wrapper $PN \
|
||||
"${PYTHON} /usr/share/${PN}/${PN}.py"
|
||||
|
||||
doman weevely.1
|
||||
dodoc README.md CHANGELOG.md
|
||||
}
|
||||
|
||||
# TODO: tests network is required
|
||||
#src_test() {
|
||||
# ${PYTHON} -m unittest discover tests/ "test_*.py" || die
|
||||
#}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "\nSee documentation: https://github.com/epinna/weevely3/wiki/Getting-Started\n"
|
||||
}
|
||||
Loading…
Reference in a new issue