termux-packages/packages/dirb/build.sh
Leonid Pliushch b584b15dda
revoke maintainership by Rabby Sheikh
1. No activity.
2. At least one package has inconsistent username specified.
2021-10-10 16:38:48 +03:00

22 lines
853 B
Bash

TERMUX_PKG_HOMEPAGE=http://dirb.sourceforge.net/
TERMUX_PKG_DESCRIPTION="Web Directory Fuzzer."
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2.22
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://sourceforge.net/projects/dirb/files/dirb/${TERMUX_PKG_VERSION}/dirb${TERMUX_PKG_VERSION/./}.tar.gz
TERMUX_PKG_SHA256=f3748ade231ca211a01acbec31cc6a3b576f6c56c906d73329d7dbb79f60fc2c
TERMUX_PKG_DEPENDS="libcurl"
termux_step_post_get_source() {
# dirb222.tar.gz has directory permission problem
chmod +x -R "$TERMUX_PKG_SRCDIR"
}
termux_step_post_make_install() {
mkdir -p "$TERMUX_PREFIX"/share/dirb
cp -rf "$TERMUX_PKG_SRCDIR"/wordlists "$TERMUX_PREFIX"/share/dirb/wordlists
find "$TERMUX_PREFIX"/share/dirb/wordlists -type f | xargs chmod 600
mv -f "$TERMUX_PREFIX"/bin/gendict "$TERMUX_PREFIX"/bin/dirb-gendict
}