pentoo-overlay/net-analyzer/wfuzz/wfuzz-2.1.3.ebuild
2015-05-19 14:04:34 +00:00

43 lines
966 B
Bash

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
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/releases/download/v${PV}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
DEPEND=""
RDEPEND="dev-python/pycurl"
src_install() {
dodoc README
rm README LICENSES
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
}