pentoo-overlay/app-exploits/weevely/weevely-3.4.ebuild
2017-08-15 07:42:37 +08:00

42 lines
862 B
Bash

# Copyright 1999-2017 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="~x86 ~amd64"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}
dev-python/prettytable
dev-python/mako
dev-python/pyyaml
dev-python/python-dateutil
dev-python/PySocks"
RESTRICT="mirror"
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 /usr/share/${PN}/${PN}.py /usr/bin/${PN}
}