termux-packages/root-packages/hping3/build.sh
2022-04-18 14:32:03 +05:30

18 lines
641 B
Bash

TERMUX_PKG_HOMEPAGE=http://www.hping.org/
TERMUX_PKG_DESCRIPTION="hping is a command-line oriented TCP/IP packet assembler/analyzer."
# Same versioning as archlinux:
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=3.0.0
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=http://www.hping.org/hping3-20051105.tar.gz
TERMUX_PKG_SHA256=f5a671a62a11dc8114fa98eade19542ed1c3aa3c832b0e572ca0eb1a5a4faee8
TERMUX_PKG_DEPENDS="libandroid-shmem, libpcap, tcl"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_post_configure () {
LDFLAGS+=" -Wl,-z,muldefs"
export LDFLAGS+=" -landroid-shmem"
mkdir -p ${TERMUX_PREFIX}/share/man/man8
}