# Template file for 'dropbear'
pkgname=dropbear
version=2024.85
revision=1
build_style=gnu-configure
configure_args="--enable-zlib --disable-bundled-libtom"
makedepends="zlib-devel libtommath-devel libtomcrypt-devel"
checkdepends="python3-pytest python3-parsing python3-psutil openssh"
short_desc="Small SSH server and client"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://matt.ucc.asn.au/dropbear/dropbear.html"
changelog="https://matt.ucc.asn.au/dropbear/CHANGES"
distfiles="https://matt.ucc.asn.au/${pkgname}/releases/${pkgname}-${version}.tar.bz2"
checksum=86b036c433a69d89ce51ebae335d65c47738ccf90d13e5eb0fea832e556da502
make_dirs="/etc/dropbear 0755 root root"

if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
	makedepends+=" libxcrypt-devel"
fi

# These tests don't work from within xbps-src
# and probably should not be run from there
pre_check() {
	rm test/test_aslr.py
	rm test/test_channels.py
}

post_install() {
	vsv dropbear
	vlicense LICENSE
}
