33 lines
910 B
Bash
33 lines
910 B
Bash
# Template file for 'tinyssh'
|
|
pkgname=tinyssh
|
|
version=20240101
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
make_dirs="/etc/tinyssh 0755 root root"
|
|
depends="ucspi-tcp"
|
|
short_desc="Minimalistic SSH server"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="CC0-1.0"
|
|
homepage="https://tinyssh.org"
|
|
distfiles="https://github.com/janmojzis/tinyssh/archive/${version}.tar.gz"
|
|
checksum=d2cd49d0e5e8bdb808d86f07f946a0cfbf2dc9a449a4b8243a82be267d852b62
|
|
|
|
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() {
|
|
vsv tinysshd
|
|
}
|