wfuzz: python et al fixes

This commit is contained in:
Zero_Chaos 2014-02-11 03:44:11 +00:00
parent d03ad4a2f1
commit fea4f85a35
4 changed files with 20 additions and 59 deletions

View file

@ -1,5 +1,2 @@
AUX wfuzz 49 RMD160 bb61dc9159dcf71c789cbc1ded67f8fa4de79cd8 SHA1 89a9b20bba23c64f12638b6ee65bc798ed44ff12 SHA256 c3f327c9caca48f84df5af6b28c7849998a8e4fbbccb7855120020f389136749
DIST wfuzz-1.4c.tar 1198080 RMD160 9a34dca5b3a0902905362559abb4573df5011624 SHA1 fb5f9623d5a2d4e755ae66c15be512722a7abed0 SHA256 d5f3edd515a402657707212fb11d7ca084e1baee096bebb8c96a026a62e440da
DIST wfuzz-2.0.tgz 3222705 RMD160 0cb7354b2176fa981b8fab4a23031b0c79b80250 SHA1 8b82a2796579626267ba7bf59230eecfaf38f08a SHA256 5d5c73ea563b07937be79b851fbdd1288f4e2fa205b520c4cfe00826a6fb41ad
EBUILD wfuzz-1.4c.ebuild 730 RMD160 dd4be3a8775dcb47cf582474bf04b82f3335aac7 SHA1 c76ae0d89df55f5c9d9d924b19db9e098a6cbe22 SHA256 7d82eda905390c448814011b2b3c6f2a7170f31659c00b27252fc80dde1d4134
EBUILD wfuzz-2.0.ebuild 757 RMD160 b434d6da6a216a4e25ff929b5ab53199e6798045 SHA1 ea46de75a12282fb07abc796ca270fe239a6adc7 SHA256 4a1019bd156d2963d917df0ddd1b07c2e4263316cf125414f73161510ab284df
DIST wfuzz-2.0.tgz 3222705 SHA256 5d5c73ea563b07937be79b851fbdd1288f4e2fa205b520c4cfe00826a6fb41ad SHA512 bbcfbc7dc501f8b94ff2ff10d130026d0e3f121899d96d23bb2cc435aadb33a187d772cf56505e5e54ac38db8be5935afc3d0c43086950f851936036dae4ef1d WHIRLPOOL f6634d43cd11cef067189600497120000905d7f0235ac2c3a0d6a59f2a8708e7d9c676a53433fe0347cd1bb276934a2524ac0bb1500e0176ae2f46cb6ab8adac
EBUILD wfuzz-2.0-r1.ebuild 979 SHA256 c84ab03130ff60aeb7442ba34ed72944d95bea5443d5d3ece9ddf097b62e07d6 SHA512 db0c65e216502051b80641f5373e7f92f769092285b21307e969792de329424868cf4b9ec1f6b45dae7ad0be23d82f5ec896d07b5bebe88f1709bb4757128edb WHIRLPOOL ffbb195499f4bd155ba8e13319eb6fccb18c497836bcd39ee1e9e63c091a0f0ffaf32870704c906b884bc4753181ca432b69c1bdaadfc579cb21d244a7b45877

View file

@ -1,4 +0,0 @@
#!/bin/sh
cd /usr/lib/wfuzz/
python wfuzz.py $*

View file

@ -1,38 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
DESCRIPTION="Wfuzz is a tool designed for bruteforcing Web Applications"
HOMEPAGE="http://www.edge-security.com/wfuzz.php"
SRC_URI="http://www.edge-security.com/soft/${P}.tar"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
DEPEND=""
RDEPEND="dev-python/pycurl"
S=${WORKDIR}/${PN}
src_compile() {
einfo "Nothing to compile"
}
src_install() {
dodir /usr/lib/
dodir /usr/bin/
dodoc README
rm COPYING README LICENSES
# should be as simple as copying everything into the target...
cp -pPR "${S}" "${D}"usr/lib/wfuzz || die
dobin "${FILESDIR}"/wfuzz
chown -R root:0 "${D}"
}

View file

@ -2,7 +2,10 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
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"
@ -16,24 +19,27 @@ IUSE=""
DEPEND=""
RDEPEND="dev-python/pycurl"
#S=${WORKDIR}/${PN}
S=${WORKDIR}/wfuzz-read-only
src_compile() {
einfo "Nothing to compile"
}
S="${WORKDIR}"/wfuzz-read-only
src_install() {
dodir /usr/lib/
dodir /usr/bin/
dodoc README
rm COPYING README LICENSES
dodir /usr/$(get_libdir)/
# should be as simple as copying everything into the target...
cp -pPR "${S}" "${D}"usr/lib/wfuzz || die
dobin "${FILESDIR}"/wfuzz
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
}