Use termux_error_exit in more cases
[termux-packages] / packages / hydra / build.sh
CommitLineData
236d269a
FF
1TERMUX_PKG_HOMEPAGE=https://github.com/vanhauser-thc/thc-hydra
2TERMUX_PKG_DESCRIPTION="Network logon cracker supporting different services"
3TERMUX_PKG_VERSION=8.4
cc5964a4 4TERMUX_PKG_REVISION=1
236d269a
FF
5TERMUX_PKG_SRCURL=https://github.com/vanhauser-thc/thc-hydra/archive/v${TERMUX_PKG_VERSION}.tar.gz
6TERMUX_PKG_SHA256=b478157618e602e0a8adc412efacc1c2a5d95a8f5bfb30579fbf5997469cd8b4
7TERMUX_PKG_FOLDERNAME=thc-hydra-$TERMUX_PKG_VERSION
8TERMUX_PKG_BUILD_IN_SRC=yes
cc5964a4 9TERMUX_PKG_DEPENDS="openssl, pcre, libssh"
236d269a
FF
10
11termux_step_configure() {
12 # Skip the ./configure file (which does not support cross compilation)
13 # and configure the build manually.
cc5964a4 14 CFLAGS+=" -Dindex=strchr -DLIBOPENSSL -DNO_RINDEX -DHAVE_MATH_H -DHAVE_PCRE -DLIBSSH"
236d269a 15 export MANDIR=/share/man/man1
cc5964a4 16 export XLIBS="-lcrypto -lssl -lpcre -lssh"
236d269a
FF
17 cat Makefile.am | sed 's/^install:.*/install: all/' >> Makefile
18}