void-packages/srcpkgs/tinyssh/template
Christopher Brannon f3cdb76b07 tinyssh: update to 20220305.
This release contains a fix for
https://github.com/janmojzis/tinyssh/issues/63
2022-03-14 18:01:49 +01:00

33 lines
947 B
Bash

# Template file for 'tinyssh'
pkgname=tinyssh
version=20220305
revision=1
build_style=gnu-makefile
make_dirs="/etc/tinyssh 0755 root root"
depends="ucspi-tcp"
short_desc="Minimalistic SSH server"
maintainer="Christopher Brannon <chris@the-brannons.com>"
license="Public Domain"
homepage="https://tinyssh.org"
distfiles="https://github.com/janmojzis/tinyssh/archive/${version}.tar.gz"
checksum=26e1f14ee865fc48c173f51efa03aeeb72c44f102a0084ff267693406bd7aebe
if [ -n "${CROSS_BUILD}" ] ; then
make_build_target=cross-compile
fi
pre_build() {
echo '/usr/bin' > conf-bin
# Some of the tinyssh tests really shouldn't be run under xbps-src
# or on builders, so comment them all out.
# Build system needs a way to disable tests. Here's a dirty hack.
echo 'int main(void) { return 0; }' > cmbbogustest.c
for i in tinyssh-tests/*test.c crypto-tests/*test.c; do
cp cmbbogustest.c "$i"
done
}
post_install() {
vlicense LICENCE
vsv tinysshd
}