c352216c63
Variables TERMUX_PKG_PLATFORM_INDEPENDENT TERMUX_DEBUG TERMUX_PKG_HAS_DEBUG TERMUX_PKG_ESSENTIAL TERMUX_SUBPKG_ESSENTIAL TERMUX_PKG_NO_STATICSPLIT TERMUX_PKG_BUILD_IN_SRC TERMUX_PKG_FORCE_CMAKE TERMUX_PKG_HOSTBUILD should not accept arbitrary values for marking them "enabled". Instead they should accept boolean values which makes them easier to handle and also makes their meaning clear. build-package.sh should make decision based on variable's value but not on whether it is set or empty. %ci:no-build
18 lines
810 B
Bash
18 lines
810 B
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/vanhauser-thc/thc-hydra
|
|
TERMUX_PKG_DESCRIPTION="Network logon cracker supporting different services"
|
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
|
TERMUX_PKG_VERSION=9.0
|
|
TERMUX_PKG_SHA256=56672e253c128abaa6fb19e77f6f59ba6a93762a9ba435505a009ef6d58e8d0e
|
|
TERMUX_PKG_SRCURL=https://github.com/vanhauser-thc/thc-hydra/archive/v$TERMUX_PKG_VERSION.tar.gz
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_DEPENDS="openssl, pcre, libssh"
|
|
|
|
termux_step_configure() {
|
|
# Skip the ./configure file (which does not support cross compilation)
|
|
# and configure the build manually.
|
|
CFLAGS+=" -Dindex=strchr -DLIBOPENSSL -DNO_RINDEX -DHAVE_MATH_H -DHAVE_PCRE -DLIBSSH"
|
|
export MANDIR=/share/man/man1
|
|
export XLIBS="-lcrypto -lssl -lpcre -lssh"
|
|
cat Makefile.am | sed 's/^install:.*/install: all/' >> Makefile
|
|
}
|