mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-03 12:10:50 +02:00
dirsearch: partial fix of https://github.com/maurosoria/dirsearch/issues/176#issuecomment-739140396
This commit is contained in:
parent
ba4568bb69
commit
a2f1a6612f
3 changed files with 8 additions and 58 deletions
|
|
@ -1,3 +1,2 @@
|
|||
DIST dirsearch-0.3.9.tar.gz 566381 BLAKE2B 2f1cd6f0be89fa58a05f0d90c2825cb2e5e9d3c987df15ac95a4c058b1eca165a1bea6deeac9bd435309da732317727d05458f5893d0af2ba857d2c3f5096313 SHA512 c774e939ff1bf9d110bc3b62e344814f4371b9fdf06ccf70ac25866437c262f7aea46d83a3f176a6e736abc949d5cfec49fe3fc4fcb8aa69ffacb83aa62f4b5c
|
||||
DIST dirsearch-0.4.0.tar.gz 608845 BLAKE2B bc357898943dbcf3cdeed3c9385e70b54c78af9e115e17f2a69da38a73e51dc29a1aa968b8dc76969c0c690cec81f1aecec3c3baf40ddc36d7fd62a5bc1f76bd SHA512 155108d5b78dd2e889b5a39957c79b61e92470c29c97c9a236f706e022ec3c315ebcc955e1cbbb059ba7a7042bb907b28b53403d9ba72edfdb504344613bd80f
|
||||
DIST dirsearch-0.4.0_p20201202.tar.gz 637376 BLAKE2B a7ae37dcdc71b2b97f43e44bec618f13d651988f4f30e27e3bc20cf9f4fbf10d5b494c8aa7de6b8202953e0198affe70c7a8199e3c7a65fd9fcdad2e16584212 SHA512 e146305b2a0e70d193db5adef766fe5ac459ab337820be8ccf0a35e1bef4314c81a036703c7d8ffc4b8d499e4f5702346b79aaeb71aa640c13a456ed9b101736
|
||||
|
|
|
|||
|
|
@ -1,51 +0,0 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{5,6,7,8} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit eutils python-single-r1
|
||||
|
||||
DESCRIPTION="A simple command line tool designed to brute force dirs and files in websites"
|
||||
HOMEPAGE="https://github.com/maurosoria/dirsearch"
|
||||
SRC_URI="https://github.com/maurosoria/dirsearch/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
#https://github.com/maurosoria/dirsearch/issues/650
|
||||
#KEYWORDS="amd64 ~arm64 x86"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
DEPEND="${PYTHON_DEPS}"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
#https://github.com/pentoo/pentoo-overlay/issues/512
|
||||
# eapply "${FILESDIR}/${P}_add_homedir_support-r1.patch"
|
||||
|
||||
mv *.md Dockerfile "${T}" || die
|
||||
python_fix_shebang -q "${S}"
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/${PN}"
|
||||
doins -r *
|
||||
|
||||
python_optimize "${D}/usr/share/${PN}"
|
||||
|
||||
make_wrapper $PN \
|
||||
"${PYTHON} /usr/share/${PN}/dirsearch.py"
|
||||
|
||||
dodoc "${T}"/{*.md,Dockerfile}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "\nExample: https://infosectoughguy.blogspot.com/2016/10/lazy-directory-searching-for-pentesters.html\n"
|
||||
}
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{5,6,7,8} )
|
||||
PYTHON_COMPAT=( python3_{6..9} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit eutils python-single-r1
|
||||
|
|
@ -13,8 +13,7 @@ DESCRIPTION="A simple command line tool designed to brute force dirs and files i
|
|||
HOMEPAGE="https://github.com/maurosoria/dirsearch"
|
||||
SRC_URI="https://github.com/maurosoria/dirsearch/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
#https://github.com/maurosoria/dirsearch/issues/650
|
||||
#KEYWORDS="amd64 ~arm64 x86"
|
||||
KEYWORDS="amd64 ~arm64 x86"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
|
|
@ -28,8 +27,11 @@ pkg_setup() {
|
|||
}
|
||||
|
||||
src_prepare() {
|
||||
#https://github.com/pentoo/pentoo-overlay/issues/512
|
||||
# eapply "${FILESDIR}/${P}_add_homedir_support-r1.patch"
|
||||
#use ~/.dirsearch directory
|
||||
#https://github.com/maurosoria/dirsearch/issues/650
|
||||
sed -e "s|save-logs-home = False|save-logs-home = True|g" \
|
||||
sed -e "s|autosave-report = True|autosave-report = False|g" \
|
||||
-i default.conf
|
||||
|
||||
mv *.md Dockerfile "${T}" || die
|
||||
python_fix_shebang -q "${S}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue