pentoo-overlay/net-analyzer/wfuzz/wfuzz-2.1.5.ebuild
2017-04-20 00:51:20 +08:00

42 lines
954 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 python-single-r1 multilib
DESCRIPTION="Wfuzz is a tool designed for bruteforcing Web Applications"
HOMEPAGE="http://www.edge-security.com/wfuzz.php"
SRC_URI="https://github.com/xmendez/wfuzz/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
DEPEND=""
RDEPEND="dev-python/pycurl"
src_install() {
dodoc README
rm README LICENSE
dodir /usr/$(get_libdir)/
# should be as simple as copying everything into the target...
cp -pPR "${S}" "${ED}"/usr/$(get_libdir)/${PN} || die
python_fix_shebang "${ED}"/usr/$(get_libdir)/${PN}
fowners -R root:0 *
dodir /usr/bin/
cat <<-EOF > "${ED}"/usr/bin/${PN}
#!/bin/sh
cd /usr/$(get_libdir)/${PN}
exec ./${PN}.py "\$@"
EOF
fperms +x /usr/bin/${PN}
fperms +x /usr/$(get_libdir)/${PN}/${PN}.py
}